Open ChoyWingLun opened 1 year ago
@ChoyWingLun PushSubscriptionState.userId
might be null
as the SDK may have not gotten the id yet. However you can use PushSubscriptionStateChanged
to get this value when it becomes available.
If you still don't get the value you will need to check the Android logcat for any errors to find out the reason for why it didn't get an id.
What happened?
I am testing on my android phone and sometimes I found that OneSignal.Default.PushSubscriptionState.userId return null and I am not able to add tags to my subscription.
Steps to reproduce?
What did you expect to happen?
Return userId to me so that I can add my tag to the subscription.
OneSignal Xamarin SDK version
Release 4.1.3
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct