Good afternoon. I'm Brazilian so excuse me for any English errors!
I'm sending push notifications to my own device. I can get my deviceToken in my AppDelegate.m
:
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken {
NSLog(@"Device Token Global : %@", deviceToken);
}
But I have a class called LoginViewController.m
where I perform a login and POST the deviceToken
to a webservice (which inserts it into a mySQL table). How can I get this deviceToken
as a string in my LoginViewController.m class?