Is it possible to get your own device token from my own iPhone? I need it because I want to test Push-Notifications…
Thanks
Is it possible to get your own device token from my own iPhone? I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to use the
-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;method. Below is an example that will output your devices token as well as set it to a string.But, you should really be doing this already though so that you know where to send the notifications for your users, aren’t you?
Edit after further clarification comment:
You weren’t very specific at all in your question. To answer your more detailed question, you can’t display it. As it is unique for each device AND each app. So your token for AppA is not the same as AppB.