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
Basically, OneSignalId is empty when I call OneSignal.User.onesignalId. This is what I see in logs from OneSignal: [DefaultDispatcher-worker-4] OperationRepo.enqueue(operation: {"name":"update-subscription","appId":"****,"onesignalId":"local-****","subscriptionId":"****","type":"PUSH","enabled":true,"address":"****","status":"SUBSCRIBED"}, flush: false)
Is that normal that OneSignalId starts with 'local'?
And also, when I search user with subscriptionId provided it is different user, because I have login in my app, and when user is changed I login user with different externalId but in this case it is changed, but OneSignal.User.onesignalId gives me empty string. And it stays the same.
(externalId is the user who logined in last)
What should I do?
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Hi @ilhomsoliev that is correct--if a onesignal_id starts with local- it is basically no onesignal ID / missing onesignal ID.
There are various reasons why the OneSignal Id could be in this state. Would you be able to send over the full logs form the device so we can pinpoint the issue?
Hi @ilhomsoliev, in your case, I would recommend using OneSignal.getUser().addObserver to listen for onesignalId when it becomes available. Note that the IDs might not be updated immediately after you log in/out due to network delays. By using the observer, you can retrieve the most recent ID when it becomes available.
How can we help?
Basically, OneSignalId is empty when I call
OneSignal.User.onesignalId
. This is what I see in logs from OneSignal:[DefaultDispatcher-worker-4] OperationRepo.enqueue(operation: {"name":"update-subscription","appId":"****,"onesignalId":"local-****","subscriptionId":"****","type":"PUSH","enabled":true,"address":"****","status":"SUBSCRIBED"}, flush: false)
Is that normal that OneSignalId starts with 'local'?
And also, when I search user with subscriptionId provided it is different user, because I have login in my app, and when user is changed I login user with different externalId but in this case it is changed, but
OneSignal.User.onesignalId
gives me empty string. And it stays the same.(externalId is the user who logined in last)
What should I do?
Code of Conduct
The text was updated successfully, but these errors were encountered: