We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would be good to know the method name that is deprecated and is in use.
Previous version 5.0.6 works fine.
Release 5.0.10
OneSignal: This method has been deprecated. Use getIdAsync instead for getting push subscription id.
The text was updated successfully, but these errors were encountered:
Hi @Romick2005 good call, we will update the log to include the method name.
In Release 5.1.0, the SDK added the method await OneSignal.User.pushSubscription.getIdAsync() as a more accurate getter for the push subscription ID.
await OneSignal.User.pushSubscription.getIdAsync()
The previous getter was OneSignal.User.pushSubscription.getPushSubscriptionId(), which is still fully supported and behaves same as before.
OneSignal.User.pushSubscription.getPushSubscriptionId()
The new async getter will return more accurate data during early app startup, compare to getPushSubscriptionId() which may return undefined.
getPushSubscriptionId()
undefined
Sorry, something went wrong.
The same problem
Replacements: getPushSubscriptionId -> getIdAsync getPushSubscriptionToken -> getTokenAsync getOptedIn -> getOptedInAsync hasPermission -> getPermissionAsync
Thank you, problem has been resolved
Thank you flagging! The warnings have been updated and will be included in our next React Native release.
No branches or pull requests
What happened?
Would be good to know the method name that is deprecated and is in use.
Steps to reproduce?
What did you expect to happen?
React Native OneSignal SDK version
Release 5.0.10
Which platform(s) are affected?
Relevant log output
OneSignal: This method has been deprecated. Use getIdAsync instead for getting push subscription id.
Code of Conduct
The text was updated successfully, but these errors were encountered: