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

How to get device tokens

I have an app for iOS and I want to integrate there push notifications. I have seen a tutorial on youtube and everything is OK, but recently I'm using a development certificate (for testing - not for AppStore use) and I have PHP script on my server.…
stepik21
  • 2,610
  • 3
  • 22
  • 32
5
votes
2 answers

Apple Push Notification Registration & Device Token Receive clarification?

I am working on an iPhone app with Apple Push Notification integration. I have some doubts on this. If the user clicked "Dont Allow" button in the APNS registration alert, will our code still receives the Device Token from APNS? I have tested that…
Gopinath
  • 5,392
  • 21
  • 64
  • 97
4
votes
3 answers

Device token in push notification

I want to send push notification to certain users only. From what I have gone through in Apple docs. The code to register for push notification is this - (void)applicationDidFinishLaunching:(UIApplication *)app { // other setup tasks here.... …
Shubhank
  • 21,721
  • 8
  • 65
  • 83
4
votes
1 answer

device tokens for Apple Push Notifications provider

If I'm an Apple Push Notification "provider" for multiple iOS apps can I use the same device token for multiple apps? I'm aware that I need unique SSL certificates for each app. However I'm confused about the device tokens. Example: I have two apps…
SundayMonday
  • 19,147
  • 29
  • 100
  • 154
4
votes
1 answer

How to retrieve device token from Parse Installation

I have built a Trigger.io application and have been using parse for my push notifications. I am now migrating to pushwoosh for my push notification needs, however I realise that parse uses Installation id for pushing notifications but pushwoosh uses…
Zhen
  • 12,361
  • 38
  • 122
  • 199
4
votes
6 answers

how to get Device Token in iOS?

I am working on push notifications. I wrote the following code for fetching a device token. -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self.window…
imjaydeep
  • 878
  • 1
  • 11
  • 34
4
votes
1 answer

Urban Airship SDK Integration in iOS & push notification

We have integrated Urban SDK using these guidelines. We have tried to check the push notification using ad hoc profile where we have set below values in AirshipConfig.plist inProduction=YES productionAppKey=OUR PRODUCTION KEY productionAppSecret=…
iDev
  • 531
  • 1
  • 5
  • 15
4
votes
0 answers

Life cycle of a device token with user context for push notification

I understand that the following question is not directly related to code but we really need some input on best practices for push notifications. We are currently building a chat application that uses push notifications to inform users that a new…
user3757285
  • 117
  • 1
  • 1
  • 8
4
votes
4 answers

Obtain NEW Apple device token?

I am creating an app that allows the user to log out of the app and log in as different user if they want to. Is there any way to obtain a new device token from Apple once the new user logs in? Is there a way to force call the…
4
votes
1 answer

Regenerating iOS APNS Certificate; Device Tokens Affected?

My iOS APNS certificate expired and we (our iOS developer and I) ended up revoking the old certificate through iTunes Connect and completely starting over after having some issues. Everything is working now and I was able to send test notifications…
Sam
  • 20,096
  • 2
  • 45
  • 71
4
votes
3 answers

Get devices token?

I'm trying to get the token of my device. Thought this: ParseInstallation parseInstallation = new ParseInstallation(); String deviceToken = (String) parseInstallation.get("deviceToken"); would do the trick, but it doesnt, it returns null. Why?
Philip
  • 1,068
  • 3
  • 12
  • 21
4
votes
1 answer

when to properly store or delete users device token

Okay so im coding this app in iOS. Got the Push Notifications down pretty good. I just have one question. Would it be wise of me to store a users device token when they login and delete it when they logout, or keep it forever and basically only…
NodeDad
  • 1,519
  • 2
  • 19
  • 48
4
votes
1 answer

Did the format of the Device Token provided by APNs suddenly changed in my app?

Not sure why... but my previously functional push notification registration callback is returning a strange device token. Can anyone help make any sense of it? To my knowledge, I haven't changed any code regarding this process. The following code: -…
achan
  • 551
  • 2
  • 11
4
votes
2 answers

Invalid token for some devices

given: working iPod application The server side in php (modified easyapns). I'm sending requests in the sandbox ssl://gateway.sandbox.push.apple.com:2195 If I'm sending a request to ssl://gateway.push.apple.com:2195, no errors returned, but the…
gorodezkiy
  • 3,299
  • 2
  • 34
  • 42
3
votes
1 answer

Register for Apple Push Notification where in App-Code

I wrote an iPad app which recieves remote push notifications through apns. The app revieves notifications and handles them correctly. In AppDelegate.m i call: registerForRemoteNotificationTypes: and also i have the: application:…
MadMaxAPP
  • 1,035
  • 2
  • 16
  • 39
1 2
3
14 15