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
1
vote
4 answers

Does every apps in iOS has the same deviceToken?

After google the question, it makes me confused. Does every app in iOS has the same DeviceToken? Here is the Apple Document about the issue. A device token is an opaque NSData instance that contains a unique identifier assigned by Apple to a…
Ran
  • 303
  • 1
  • 3
  • 15
1
vote
0 answers

delphi get iOS deviceToken

Delphi 10 Seattle iOS failed to get DeviceToken, iOS Version 10.1. the code: implementation {$R *.fmx} procedure TForm1.PushEvents1DeviceRegistered(Sender: TObject); begin Memo1.Lines.Add('Device Registered'); …
Tony.zhang
  • 11
  • 2
1
vote
2 answers

Swift: why does device change every time a new app version is built/installed?

As many of you know, in order to give support for push notifications in my app I need two things to be stored in MySQL: device id device token which I respectively get with: let device =…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
1
vote
0 answers

Update device token in iOS app for remoteNotifications

I have been developing an iOS app, which is sending remote notifications. For that I am saving the device token on our server. When the user logs in to our app, the device token saves on our server and remote notifications work fine. But after some…
Ravi Kumar
  • 313
  • 2
  • 13
1
vote
1 answer

Android - Parse deviceToken different from deviceToken in .getInstallationId();

I want to save the deviceToken I have in Parse to a User in my database with my Rest Api. However when I try to get the deviceToken within my Android code it looks like this: 0d0082b0-2ba7-41de-835b-3e01v8d5c6ae But in the Parse.com -> Core it looks…
Christer
  • 2,746
  • 3
  • 31
  • 50
1
vote
2 answers

iOS: How to identify device token string if it's development or production?

I have problem on Apple push notification in my backend. All my device tokens were stored in my database either development and production. During I push message to APNs, I got invalid device token message and the connection is closed. The push…
1
vote
1 answer

How can I refresh nsuserdefaults value after restore iphone via itunes?

I store the device token value with NSUserdefaults, and then, send this value to my server. My app checks if this value exists or not. If the value doesn't exist, my app tries to call the registerdevicetoken method. But I found out an issue. If a…
o242
  • 51
  • 1
  • 7
1
vote
1 answer

Receiving APNS device token > 32 bytes

One of our clients has reported that they are receiving APNS device tokens longer than 32 bytes. Apple states in their official documentation that device tokens are 32 bytes, and this causes several issues with the App (we provide them a SDK) and…
1
vote
1 answer

Multiple device tokens for single bundleId in development mode iOS 9.1

I am using Xcode 7.1.1 and iOS 9.1. I am facing this weird issue. I have to implement push notifications in the app. I have successfully created the certificates and provisioning profiles with push notifications enabled for development mode. I have…
Rajan Maheshwari
  • 14,465
  • 6
  • 64
  • 98
1
vote
2 answers

Urban Airship: Generate channel ID during the first run of the iOS app

I have registered with Urban Airship, obtained the app key, secret and master secret. I have integrated their library as well. -(void)setupUrbanAirship { UAConfig *config = [UAConfig defaultConfig]; config.detectProvisioningMode = YES; …
Nitin
  • 63
  • 7
1
vote
1 answer

How to find which APNS tokens are invalid or not?

I am going to build a push notification application. I am successful to send push notifications to iOS devices. However, sometimes a device token becomes invalid, and I do not know why. I want to know how to find that a given device token is…
1
vote
1 answer

Where is record device token?

I am trying to send Push Notification to all my test flight users. However, i don't know how i have to proceed. I followed the raywenderlich tutorial (here) in the php file : // Put your device token here (without spaces): $deviceToken =…
Logan Gallois
  • 594
  • 5
  • 27
1
vote
0 answers

About iOS app, Will the device token for push notification change after transfer account?

I am going to transfer my iOS app from an account to another one. Regarding to above process, I have a question. Will the device token for push notification change after transfer?
supermonkey
  • 631
  • 11
  • 25
1
vote
0 answers

pushType=gcm deviceToken=Undefined

We have a problem with push notification on Android devices, When pushType is gcm and deviceToken be undifined, we can't send notification to these devices. Some our users have this problem. (about 10%) How we can resolve this problem? (without…
1
vote
2 answers

Get Android device token

I am integrating Pushwoosh API for push notifications for which I require deviceToken. How do I get it : I am getting empty string using this : String deviceToken=GCMRegistrar.getRegistrationId(getApplicationContext()); These are the…
Nitish
  • 13,845
  • 28
  • 135
  • 263