Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix logout() when push sub doesn't exists
A push subscription only exists if the end-user accepted notifications at some point. OneSignal.logout() made this bad assumption it always existed. The fix is to check this and create a local only user instead of making a call to OneSignal if there isn't a push subscription.
- Loading branch information