before push notifications and chat