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 to access etoken through CryptoAPI's?

I am developing an html application where an user has to first login using his digital certificate. After login he has to perform encryption and decryption of data using his digital certificate. Now in case when the certificate is available in the…
V K
  • 471
  • 8
  • 13
0
votes
0 answers

How to get DeviceToken from apple using APNs in c#?

How can we implement "didRegisterForRemoteNotificationsWithDeviceToken" to get device token in C#?, I am trying to implement in the REST api endpoint in my .net core project. Need to implement push notification for IOS using C#.net core as a backend
0
votes
2 answers

Trying to get iOS device token by using firebase message in React Native

Below is the steps implemented in React Native code - Do i have to add any steps or methods in iOS side? Certificate is APNS enable. Step 1: # Install & setup the app module yarn add @react-native-firebase/app # Install the messaging module yarn…
0
votes
1 answer

How to get device token in flutter

I'm trying to get the device token from this code FirebaseMessaging.instance.getToken().then((value) => print("token is $value")); it prints the token when i run the app on emulator, but it gives me this error when i run the app on physical…
sarakhan
  • 49
  • 1
  • 12
0
votes
2 answers

How to get the device token in flutter

I'm trying to get the device token, for this i'm using FirebaseMessaging. here is my code to get the token. @override void initState() { FirebaseMessaging? _firebaseMessaging; _firebaseMessaging?.getToken().then((token){ print("token is…
0
votes
0 answers

How to update the old device token with the new device token for Apple Push Notifications (APN)?

Apple documentation mentions certain scenarios when the device token may change : APNs can issue a new device token for a variety of reasons like User installs your app on a new device, User restores device from a backup, User reinstalls the…
0
votes
1 answer

Firebase FCM and Subscribing to Topics Clarification

#1 I'm confused once didReceiveRegistrationToken gets the fcmToken how that is saved to Cloud Messaging. I couldn't find a simple answer in the documentation. I save the token to the database by calling UserService.updateChildS(child: "userToken",…
Aza
  • 63
  • 10
0
votes
2 answers

How to deal with old iOS notification tokens remaining valid after new token and vendorId are generated?

I am using Azure Notification Hub to send remote notifications, at the moment only to iOS. I initially realised that my device was receiving 5 notifications of the same notification event. I checked and debugged my code and it indeed correctly…
0
votes
2 answers

ios swift - Save device token as data format printing different values

I tried save devicetoken into userDefaults for later use. func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { print(deviceToken) // value print as 32 bytes let encodedData: Data =…
iosSwifty
  • 15
  • 1
  • 4
0
votes
0 answers

How to retrieve pns handle token again in firebase service using xamarin.android

I am implementing the push notifications in my xamarin.forms app using azure notification hub following this documentation from Microsoft. The implementation works fine and I am able to receive notifications on both android and ios devices. I was…
0
votes
1 answer

Xamarin.Forms - iOS - If user declines notification permission and then changes manually in settings, how do I get the devicetoken?

After installing our app we ask the user for permission to send them notifications. If they accept all works well and we get a devicetoken etc. My question is when the user initially declines the permission request, so…
0
votes
1 answer

Device token not generate iOS device

I tried much time but not called the didRegisterForRemoteNotificationsWithDeviceToken method. I have spent a lot of time. Please let me know me if anyone has a solution. func application(_ application: UIApplication,…
Shiva_iOS
  • 47
  • 1
  • 6
0
votes
1 answer

APNS can't get DeviceToken

My code. UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; center.delegate = self; [center requestAuthorizationWithOptions:(UNAuthorizationOptionBadge |…
0
votes
2 answers

what happens behind the scenes of executing `UIApplication.shared.registerForRemoteNotifications()` in iOS?

I'm wondering what's happening behind the scenes when registering ios applications for push notifications and how the ios device receives device-token in application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken…
0
votes
1 answer

Token-Based Connection to APNs Error 400 BadDeviceToken | Apple Push Notification errors

we are planning to move to the new Token-Based Connection to APNs to send notifications. Apple Document. This supports sending notifications to multi apps under the same team id and irrespective of environment stage/prod. But weirdly when try to…