OneSignal / OneSignal-Xamarin-SDK

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

Cannot Get UserId #210

Closed Hackmodford closed 4 years ago

Hackmodford commented 4 years ago

I'm trying to get the OneSignal UserId in a Xamarin app.

It looked like there was no way to do this in the shared code via com.OneSignal so I began creating platformServices for iOS and Android. In Android, I am able to get the information via com.OneSignal.Android but in iOS com.OneSignal.iOS does not seem to have a way to get the user id.

Is there something I am missing?

Hackmodford commented 4 years ago

Found out how to do it here. https://documentation.onesignal.com/docs/xamarin-sdk#idsavailable