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
9
votes
2 answers

Parse - Installation table not setting deviceToken nor pushType

I had an app working on Parse, with the notifications working fine. I changed app packaging and I create a new app on Parse. With the new app, deviceToken and pushType columns remain always empty on table _Installation, so pushes doesn't work even…
9
votes
4 answers

iOS APNS: sending the device token to the provider in string format

I need to send the APNS device token of my iOS app to my provider by calling a service that expects JSON data in my request. I'm reading Apple's Local and Push Notification Programming Guide and it only says that the…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
8
votes
7 answers

how to make iPhone app asks to register device for push notification multiple times

I have used the following code to register my app to receive push notification, and I got the alert that asks me to register for push notification and I accidentally press cancel. Now I want to have the alert again so I can fire the delegate method…
Sarah
  • 1,595
  • 3
  • 25
  • 34
7
votes
2 answers

Does push notification token changes after application update?

I am asking about two situations: 1) After we do a regular update from the App Store 2) After we simulate an update, by downloading a current version from a Store and installing & running a new version from within Xcode, does push notification token…
Whirlwind
  • 14,286
  • 11
  • 68
  • 157
7
votes
5 answers

How to identify if device token is for android or iOS?

I store Android and iOS device tokens in DB. Following are few examples of device tokens getting saved in the DB. 359092050465370 654C4DB3-3F68-4969-8ED2-80EA16B46EB0 294913EC-6100-42E8-8C2D-E9F68F286ADE How to differentiate whether a particular…
user3035658
  • 71
  • 1
  • 1
  • 2
7
votes
1 answer

PHP Warning: pack(): Type H: illegal hex digit r error

Possible Duplicate: pack() in php. Illegal hex digit warning I am utilizing apple's push notification service and in order to send the notification, you have to build the message in binary. I got the following errors for the line below: Warning:…
6
votes
1 answer

Swift iOS 13, Not getting APNS Device token while using Mobile Network (4g/3g)

I was trying to get APNS push token. func configPushNotifications(_ application: UIApplication) { application.registerForRemoteNotifications() } But I didn't received any Token from AppDelegate if I am using My Phone Sim Internet (4g/3g).…
6
votes
3 answers

didRegisterForRemoteNotificationsWithDeviceToken is not called on ios10

I have 2 iphones: 1 - with ios 10 and 2 - with ios 9 While trying the 1st iphone: didRegisterForRemoteNotificationsWithDeviceToken method is not called when user clicks "allow" on the alert Though, the method didRegisterUserNotificationSettings IS…
Tung Fam
  • 7,899
  • 4
  • 56
  • 63
6
votes
3 answers

Is there a way to force your iOS push notification deviceToken to change?

Apples docs are a bit vague on when a device's deviceToken can change. It pays to code defensively, and to test that code. I've written my app so that at startup it registers for push notifications and handles the…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
5
votes
0 answers

Send a notification in app to another user using Firebase Messaging given user's device token in Flutter

I came across Firebase Messaging, and after reading through the guide, they have posted here: https://firebase.google.com/docs/cloud-messaging/flutter/client, I was able to get a user's device token. However, the tutorial only presents an example of…
5
votes
4 answers

does app give different device token on re-installing again

I remember, the device token never changes upon re-installing for iPhone. However these days (especially on iOS 9), I noticed that device token is changing if I re-install the app. Is this setting is done by Apple or I am missing anything? I have to…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
5
votes
0 answers

Parse.com deviceToken and PFInstallation not saved

I am encountering a weird behavior of the PFInstallation of my iOS App. On every app launch I am registering the device to receive push notifications and calling the below code on the method…
Diego
  • 366
  • 3
  • 18
5
votes
1 answer

iOS Parse Push Notification Push sent 0 from Parse Website

I am unable to receive push notifications from parse website, it says sent to 2 devices but pushes sent is coming out to be 0, I can see my devices with id and all, in the installation class of parse core. I even used…
Umar Farooque
  • 2,049
  • 21
  • 32
5
votes
2 answers

How to get device token id of windows phone for push notification?

I am creating a windows phone 8 app in phone gap + mobile jquery using visual studio 2012. I want to get the device token id from the device for push notifications. Can anyone guide me as to how can I get device token id of windows phone 8?
5
votes
2 answers

Get production APNS token

In development everything works fine: my app (built with Phonegap) sends the device token to the server my server sends the notification to the Apple servers I receive the notification on my iPhone But, when I switched to production (enabled push…
collimarco
  • 34,231
  • 36
  • 108
  • 142
1
2
3
14 15