2

I am tring to get device token and I dont want to use Update function.

Right now I am using following function:

if (!tokenSent) {
    token =UnityEngine.iOS.NotificationServices.deviceToken;
    if (token != null) {
        // send token to a provider
        print ("My device Token");
        hexToken= "%" + System.BitConverter.ToString(token).Replace('-', '%');
        tokenSent = true;
    }
}
Barış Çırıka
  • 1,570
  • 1
  • 15
  • 24
vanshika
  • 411
  • 1
  • 6
  • 20

0 Answers0