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

How do i get a device token of my computer?

I am trying to create a small application that will read the CPU load of computers / laptops and send a push notification to the browser of my main laptop, which will contain the user name and how much the processor is loaded. As a technology for…
hernesupp
  • 67
  • 1
  • 5
  • 10
0
votes
1 answer

Push notifications and token device in Swift

I am working on an App that need to know the device token to send notification to the users when they give their authorization. The first time the system ask the authorization for notification. If user say "allow" the system calls for me the method…
SandroDev
  • 23
  • 4
0
votes
0 answers

How should device tokens be used with Firebase Cloud Messaging

My question is not really a technical bug question but more of a broad outline question. Background: I am building a web app, and I want to use FCM in this webapp. Since a user could sign in from multiple devices, I want to create a device cluster…
0
votes
2 answers

Swift/Obtaining a Device Token in iOS

I'm brand new to iOS development and I'm trying to figure out how to obtain a device token for iOS. I've been following the documentation as written for Swift in listing 4-1 here:…
xyzcode
  • 219
  • 1
  • 7
  • 14
0
votes
0 answers

cannot call either didRegisterForRemoteNotificationsWithDeviceToken or didFailToRegisterForRemoteNotificationsWithError

My application cannot call didRegisterForRemoteNotificationsWithDeviceToken on iOS10 devices, even the same code can call it on iOS11 devices. I don't know why it happening and how to solve this issue. If anyone knows answers, please help me. my…
0
votes
1 answer

How to get the device token at the time of registration in react native

How do i get the device token when a user is registered in an app.The purpose is that i want to send push notification using fcm. Can anybody please help ?
Neethu M
  • 133
  • 7
  • 20
0
votes
0 answers

Generate Device token in android for react native app

I've tried to generate device token using FCM in android device. But got the following issue I've updated Google play services and checked the path of google-services.json all seems to be fine , but still same error. Can anybody help me to fix this…
Linu Sherin
  • 1,712
  • 7
  • 38
  • 88
0
votes
1 answer

How to send push to specific devicetoken on php function

I'm Using Ionic Framework V1. I've already get push notifications through Postman using and I've already save all devicetokens in my DB, but i'm stuck at getting any push for specific devices in php functions. curl -X POST -H "Authorization: Bearer…
0
votes
1 answer

APN configuration with authentication tokens

I'm trying to write some nodejs code to send a notification to an APN.[Apple push notification service]. I seem to have some control over the server code, but I need a device token from the client to get it. I used this sample code…
Umashankar Das
  • 601
  • 4
  • 12
0
votes
0 answers

i want to see instanceId for firebaseNotification in viewController by NSLog after receiving it from firebase

i can get an instanceId for Firebase Notification on AppDelegate.m it takes few seconds to get it after app is already loaded. and i want to store it to my server But i can't send it to my server. that is why i can't send push Notification…
0
votes
2 answers

How to get the device token in iOS 10 if user does not accept to receive Push Notifications?

I had my app for iOS 9 implementing application(_:didRegisterForRemoteNotificationsWithDeviceToken:) that gets invoked whether or not user accepts to receive Push Notifications, hence I get and store on the remote server the device token in both…
Ahmed Khedr
  • 1,053
  • 1
  • 11
  • 24
0
votes
2 answers

iOS invalid deviceToken

I'm trying to get iOS device token use code: if ([[UIDevice currentDevice].systemVersion floatValue] >= 10.0) { #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 UNUserNotificationCenter *center = [UNUserNotificationCenter …
0
votes
1 answer

Why deviceToken is passed in NSData type, in application:didRegisterForRemoteNotificationsWithDeviceToken?

Why the received deviceToken in application:didRegisterForRemoteNotificationsWithDeviceToken is a NSData? Aren't we always converting it to NSString/String and send it to our backend? Is there any other use case that made Apple to use NSData…
0
votes
1 answer

Store device token in AppDelegate, then use it in ViewController

I am trying to get the device token in my AppDelegate, and then use it in a function in my ViewController later. I successfully retrieve the device token like so in the AppDelegate: - (void)application:(UIApplication…
jape
  • 2,861
  • 2
  • 26
  • 58
0
votes
1 answer

When application is re-installed How to get devicetoken on iOS8

I couldn't get devicetoken when i re-install our application on iOS8-adhoc-build. When i re-install our application,I am calling the following code on application init. func setAPNS(){ let apnsTypes: UIUserNotificationType =…