-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: playerId sometimes for some users is empty #2232
Comments
Same issue, any solution? |
Hi @tosuccesspractice and @saadbzu, Were you able to resolve? If not, can you share VERBOSE level logs starting from initialization? I recommend setting Something may have gone wrong with server requests. |
I got the same issue, i have been trying to find the solution but nothing happed, did you get any solution? |
Hi @nan-li Here is the complete log 2025-03-04 05:20:10.513 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] initWithContext(context: xxxx.xxxx.xxxxx.MyApplication@b93a2, appId: null) 2025-03-04 05:20:10.628 28820-28124 OneSignal xxxx.xxxx.xxxxx D [Thread-4] Already instantiated: com.onesignal.core.internal.operations.impl.OperationRepo@f70bcef 2025-03-04 05:20:10.905 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] ApplicationService.onActivityStarted(0,APP_CLOSE): xxxx.xxxx.xxxxx.SplashScreen@9df06fd 2025-03-04 05:20:11.088 28820-28129 OneSignal xxxx.xxxx.xxxxx D [DefaultDispatcher-worker-3] initWithContext(context: xxxx.xxxx.xxxxx.MyApplication@b93a2, appId: null) 2025-03-04 05:20:11.115 28820-28189 OneSignal xxxx.xxxx.xxxxx I [Thread-19] Device registered, push token = eE1k7q6QQAeAa113TfZ8wh:APA91bF5aUF6XxzycVbG_mVuxffA3Ycn39wK7cKIYWkDIUk7bIigUzRoEObuIKAOC9mctqyqHQ-KbOcKVAdyqb1uNP2T-fFFjqcKueHoGQ98mwPfSu43hLw 2025-03-04 05:20:11.264 28820-28128 OneSignal xxxx.xxxx.xxxxx D [DefaultDispatcher-worker-2] HttpClient: Got Response = PATCH https://api.onesignal.com/apps/7d65eeb3-7daa-4f38-962d-5bd901a2c265/users/by/onesignal_id/3e3fff58-f73f-4bea-9547-5fac2f5babf1 - STATUS: 202 - Body: {"properties":{"country":"MA","last_active":1741062001,"ip":"41.248.74.49"},"ryw_token":"10000000000818383221","ryw_delay":500} 2025-03-04 05:20:11.777 28820-28127 OneSignal xxxx.xxxx.xxxxx D [DefaultDispatcher-worker-1] HttpClient: Request Sent = GET https://api.onesignal.com/apps/7d65eeb3-7daa-4f38-962d-5bd901a2c265/subscriptions/6b7a39ec-2380-4229-a4e3-d5f66d23b9bd/iams - Body: null - Headers: Accept=[application/vnd.onesignal.v1+json], OneSignal-Install-Id=[7dbf25ca-305b-46ca-8c24-b13f449c3c67], OneSignal-Subscription-Id=[6b7a39ec-2380-4229-a4e3-d5f66d23b9bd], SDK-Version=[onesignal/android/050125] 2025-03-04 05:20:13.705 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] Retrieving service interface com.onesignal.user.IUserManager 2025-03-04 05:20:13.999 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] ApplicationService.onActivityPaused(1,APP_OPEN): xxxx.xxxx.xxxxx.SplashScreen@9df06fd 2025-03-04 05:20:14.021 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] ApplicationService.onActivityCreated(1,APP_OPEN): xxxx.xxxx.xxxxx.Main@6cfb20d 2025-03-04 05:20:14.062 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] Retrieving service interface com.onesignal.notifications.INotificationsManager 2025-03-04 05:20:14.066 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] ApplicationService.onActivityStarted(1,APP_OPEN): xxxx.xxxx.xxxxx.Main@6cfb20d 2025-03-04 05:20:15.325 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] ApplicationService.onActivityStopped(2,APP_OPEN): xxxx.xxxx.xxxxx.SplashScreen@9df06fd 2025-03-04 05:20:16.475 28820-28140 OneSignal xxxx.xxxx.xxxxx D [OpRepo] processQueueForever:ops: 2025-03-04 05:20:17.714 28820-28820 OneSignal xxxx.xxxx.xxxxx D [main] ApplicationService.onActivityStopped(1,APP_OPEN): xxxx.xxxx.xxxxx.Main@6cfb20d
2025-03-04 05:21:16.531 28820-28140 OneSignal xxxx.xxxx.xxxxx D [OpRepo] OperationRepo: execute response = FAIL_RETRY |
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: