Closed narayanan-ka closed 10 months ago
@narayanan-ka Here is our migration guide for the new major version. You can find additional information here.
getDeviceState
is no longer a function in the SDK. If you would like to know if the subscription is subscribed you can use OneSignal.User.pushSubscription.optedIn
or use an observer to be notified when it changes.
Closing due to no response, please reach out if you have any additional questions or help needed!
How can we help?
I migrated to onesignal_flutter: ^5.0.3 and I'm getting an error Undefined class 'OSDeviceState'.
Here is my code for the same :
Could you let me know how do I fix the above since I cant find the OSDeviceState anywhere in the new package of onesignal. Here is my question on stack overflow for the same issue for reference. https://stackoverflow.com/questions/77379712/onesignal-flutter-sdk-setup-undefined-class-osdevicestate
Code of Conduct