[Feedback]: OneSignal.User.pushSubscription.id
MajdSallora opened this issue · 2 comments
MajdSallora commented
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
- I agree to follow this project's Code of Conduct
RuberDucky commented
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
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