OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 214 forks source link

[Feedback]: OneSignal.User.pushSubscription.id #891

Open MajdSallora opened 6 months ago

MajdSallora commented 6 months ago

What's on your mind?

Hello some user in restricted country so one signal not working the problem is one i call OneSignal.User.pushSubscription.id it return empty string because the variable defined (String?) i thought it will return null and caused issue to me hope to fix it make it null

Code of Conduct

RuberDucky commented 6 months ago

Did you init the OneSignal Properly? and if yes, then try to put the id code in a function and then use that function in init of the page where you want to set the id

MajdSallora commented 6 months ago

Every thing work corrctly its not about init its about restricted country The main issue this OneSignal.User.pushSubscription.id Should return null not empty string "" in case there is error