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
3
votes
1 answer

How to access certificate from eToken in java

I want to read certificate from eToken when it plugged-in, when I store that certificate on local machine I can read it through my java application but, I don't know how to read it from eToken. RSAPublicKey pub; String fileName =…
Pravin
  • 195
  • 1
  • 4
  • 15
3
votes
1 answer

Why isn't a device token being generated?

I'm trying to use react-native-push-notifications, and I've been stuck on this for a good few days now, and I just can't find a way to get it to work. I know it's been brought up a few times over the years, with varying degrees of success, and I've…
3
votes
1 answer

Differences between GCM and FCM devicetokens in format

I have an app running which has thousands of GCM-devicetokens. I want to upgrade to FCM, but the problem is that I cannot send notifications to GCM devicetoken with the FCM server. So for those users that has not updated the app I'll have to send…
3
votes
2 answers

Another way to get push device token ios?

I wonder, is there another way to get the push device token without the delegate method: - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(nonnull NSData *)deviceToken because I used OneSignal, and…
3
votes
4 answers

How to pass NSData parameter to objective c method called in swift 3?

I have Objective-C method - (void)updateRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; I was calling successfully in swift 2.3 func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken:…
New iOS Dev
  • 1,937
  • 7
  • 33
  • 67
3
votes
4 answers

Is the device token changes if Uninstall/reinstall App for same device

Im getting multiple notifications for same app.. if It changes how to delete the old one form our server.. Here is my observation in iOS 9 device 1.There are two fields in DB APPId and Device token If I unstalled the app and installed it again in…
siva krishna
  • 1,149
  • 2
  • 15
  • 23
3
votes
4 answers

Device token not generating for some devices?

I notice some devices doesn't generate device token for push notification. I have been using the following code to generate device token and implemented the didRegisterForRemoteNotificationsWithDeviceToken method var types:…
user4790024
3
votes
5 answers

How to pass the device token from AppDelegate to UIViewController

Hi in my application I'm fetching the device token and I'm passing to my server to send the notification now I want to send the individual notification for the i need to fetch the device token form my UIViewController Please tell is there any…
Shanthanu
  • 421
  • 1
  • 9
  • 31
3
votes
0 answers

didRegisterForRemoteNotificationsWithDeviceToken Method not calling in iOS7

I am using apple push notifications in my applications,requesting for the device token with [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound |…
Madhu
  • 994
  • 1
  • 12
  • 33
3
votes
1 answer

Device Token Received even after iPhone is not connected to Internet

I was testing my iOS app I found one interesting thing that even my phone is in airplane mode and I have also switched off WIFI, my app is able to receive the the Device Token after registering for push notification. I have also tried even after…
Mayank
  • 1,099
  • 4
  • 17
  • 44
3
votes
1 answer

Does the enhanced push format prevent from getting disconnected by apple?

When pushing to all my devices (18k) via enhanced push notification, I have to run the feedback-service and remove the invalid tokens to prevent apple disconnecting my stream. When testing, I noticed that although the first token was invalid (told…
3
votes
1 answer

Does the error-response from apple recognize invalid tokens?

I'm trying to get some error-response from Apple. Thought it could be a nice way to check if the message was delivered to the actual dev_token. I read about it in the documentation, it says: With this format, if APNs encounters an unintelligible…
David Balan
  • 121
  • 3
2
votes
1 answer

application:didRegisterForRemoteNotificationsWithDeviceToken: Not Firing When Using Developer Provisioning Profile

In Ad Hoc builds I see the application:didRegisterForRemoteNotificationsWithDeviceToken: event called but not when I use a DEBUG build using a developer provisioning profile. The Ad Hoc and Developer Provisioning Profile are using the same App…
Sam
  • 26,946
  • 12
  • 75
  • 101
2
votes
1 answer

How to determine Push notification status programmatically?

In my app, for first time push notification registration, I call didRegisterForRemoteNotificationsWithDeviceToken and save the device token in persistence as well as update my server list for device token. Now afterwards if somebody turns the push…
DonDyck
  • 1,451
  • 5
  • 20
  • 35
2
votes
3 answers

MDM JavaPNS - Convert Device Token to Hexa value. (32 byte binary value to 64 char Hex value)

I'm working on iOS MDM. During enrollment i got deviceToken, PushMagic and unlockToken. Plan to use javapns. It expect 64 hex value. This is my original Device Token format. It is 32 byte binary value and base64…