You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
playerId is empty for some users when i retrieve it with OneSignal.getUser().getPushSubscription().getId() to send it to my backend i also tried to get it after X minutes after launching the application
Steps to reproduce?
Install on Android application implementation 'com.onesignal:OneSignal:[5.0.0, 5.99.99]'
Initialize OneSignal on myApplication like that :
OneSignal.initWithContext(this); String ONESIGNAL_APP_ID = "XXXXXX"; OneSignal.initWithContext(this, ONESIGNAL_APP_ID);
And later when trying to get the playerId :
OneSignal.getUser().getPushSubscription().getId() it's empty
the problem is also reproduced when notification for the application first is disabled and when notification become enabled, OneSignal.getUser().getPushSubscription().getId() return always empty
i try using OneSignal.getUser().getPushSubscription().optIn(); and that change nothing to the problem
What did you expect to happen?
I except getting playerId value
OneSignal Android SDK version
5.0.0
Android version
15, 14, 13
Specific Android models
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
playerId is empty for some users when i retrieve it with OneSignal.getUser().getPushSubscription().getId() to send it to my backend i also tried to get it after X minutes after launching the application
Steps to reproduce?
What did you expect to happen?
I except getting playerId value
OneSignal Android SDK version
5.0.0
Android version
15, 14, 13
Specific Android models
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: