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
Hi @lyfer-bob and @salamohamad, if you are looking for the push subscription ID (most equivalent to the player ID in v3.x.x), it can be retrieved via var id = OneSignal.User.pushSubscription.id.
If you are looking for the user-level onesignalId, it will be available in a future release.
Just an update that onesignalId is now also available on the Flutter SDK.
Please upgrade to the latest Flutter SDK to use the new methods, User.getExternalId and User.getOnesignalId. Please refer to our migration guide for full details!
How can we help?
in old version i can get by
var status = await OneSignal.shared.getDeviceState(); var playerId = status!.userId;
but in this version can't call
getDeviceState()
.Code of Conduct
The text was updated successfully, but these errors were encountered: