Questions tagged [devicetoken]

A 32-byte binary identifier (often represented as a 64 character HEX String) used to identify an iOS device for the purpose of sending it Apple Push Notifications.

A 32-byte binary identifier (often represented as a 64 character HEX String) used to identify an iOS device for the purpose of sending it Apple Push Notifications.

In pre-iOS7 devices, all the applications on a single device would get the same device token when registering to Apple Push Notifications. Starting in iOS7, each application installed on the same device gets a unique device token.

212 questions
77
votes
6 answers

Is the APN Device Token unique to each individual app?

I have two apps on the iTunes store - both implement push notifications. While I was testing sending notifications to these production apps, I noticed that a push intended for app A was titled and opened app B. Both of these apps are installed on…
Mups
  • 2,150
  • 1
  • 15
  • 9
26
votes
9 answers

Getting Remote Notification Device Token in Swift 4?

I am using this code to get the Notification Center Device token. It was working in Swift 3 but not working in Swift 4. What changed? if #available(iOS 10.0, *) { let center = UNUserNotificationCenter.current() …
Sandip Gill
  • 1,060
  • 1
  • 11
  • 22
21
votes
10 answers

PARSE: Push Notifications "deviceToken" undefined

This is the situation in my Installation page on Parse Console: As you see some devices have the "deviceToken" and some do not have the "deviceToken". This is not good because every device should have the deviceToken in order to work. How is this…
20
votes
2 answers

Is the device token as unique as the device ID?

If we reset an iPhone, the device ID remains the same. Is it the same for the device token?
Nielsou Hacken-Bergen
  • 2,606
  • 6
  • 27
  • 37
17
votes
7 answers

iPhone registerForRemoteNotificationTypes does not generate an error but does not fire delegate that gives device token

I am developing an iPhone app that needs push notification. I followed the instructions for creating the certifications and modifying the app ID. I am not totally sure I did this correctly, but I did follow the directions. Any idea how I can check…
16
votes
3 answers

ios 7 device token is different for same device

I have two applications in one device. For iOS 7 both applications are sending different device tokens but for iOS 6 both apps are sending same device token. As per my understanding device token has to be same for all the application in one device.…
Paragon
  • 982
  • 2
  • 10
  • 37
15
votes
7 answers

Android Parse Push notification device registration only one time on one device

Every one I am using the parse service for push notification in my app. but it register all time when i re-install the app in one device.Then problem is that,one device receive multiple notifications on each. I have done some code for registration…
14
votes
1 answer

Does a iOS Push notification device token change?

Is there any possibilities for a device token to change after the app is installed and registered for the notification in any kind of scenarios. Scenarios like: App update iOS update or in any other random scenario's.
Jayanth Gowda
  • 179
  • 1
  • 1
  • 5
11
votes
3 answers

Saving the DeviceToken for Later Use in Apple Push Notification Services

In my iPhone app I am getting the device token from Apple which I am assigning a public property inside the Delegate file as shown below: - (void)application:(UIApplication*)application…
azamsharp
  • 19,710
  • 36
  • 144
  • 222
11
votes
1 answer

Notification error: APN invalid token

I stopped receiving the push notifications after the certificate got expired and new certificate has been created. I've updated the p12 certificate on the server. I'm using Pusher application to debug the issue further and I tried importing the p12…
Sunny Drall
  • 844
  • 9
  • 20
11
votes
1 answer

Is it possible to get the device token even if Push Notification is not enabled?

I need to get the device token because I will use it for autologin. However, if the user did not allow Push Notifications from my App in his/her device, I will not be able to get the device token. I want to know if it's possible to get and store the…
caribbean
  • 748
  • 1
  • 9
  • 29
10
votes
2 answers

send device token to server

I have read a lot of tutorials for this and i just wanted ti know if this is right way to do this - (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken { NSLog(@"My token is: %@",…
Spire
  • 1,055
  • 2
  • 17
  • 47
10
votes
2 answers

Testing Apple Push Notifications Feedback - no items received

How to test feedback.sandbox.push.apple.com? Everything goes right, but I receive empty list. How to make it consider the device token as inactive? I installed the application to iPhone using Xcode, received some push notifications, then removed it…
Vi.
  • 37,014
  • 18
  • 93
  • 148
9
votes
4 answers

Determine if device token is sandbox or distribution

Is there a way to determine if a device token is sandbox or distribution? We are testing and the application is sometimes signed with a development certificate and others are signed with an ad hoc certificate(distribution certificate). This is…
Nick
  • 1,194
  • 1
  • 10
  • 18
9
votes
1 answer

How to manage iOS apns token changes

I had an issue where a user started receiving double notifications after uninstalling and reinstalling my app, as the device sent to my server 2 different APNS tokens - one from the first installation and the other after reinstalling the app. Since…
Kuf
  • 17,318
  • 6
  • 67
  • 91
1
2 3
14 15