I want to get the device token of the device and want to send it to a server.Sometimes if I uninstall the app and install it again,Then the new device token which I got is different than previous.So,In my server there are two device tokens which are belong to same device.Can we avoid that?(In my service,I want to keep only one device token per one device) Thank you.
is there a way to check two device tokens are belongs to same device?
122 Views Asked by harshiYL At
2
There are 2 best solutions below
0
Zev Eisenberg
On
You can store a generated UUID and store it in the keychain like this. If you set it up right, it will persist between app deletes and reinstalls on the same device, but not across multiple devices via a restore from backup (unless you want that).
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in DEVICE
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- gpsd stop when other process read gps device file
- Genymotion Virtual Device OpenGl Error
- Ext.device.filesystem.FileEntry.read() - type: "text" returns blank file
- Keyboard-Buffer in Windows
- Adb shows 'device' in command line but unauthorized in Android Studio
- Get the name and IP of devices on a Wifi network
- How to Map Audio Input to Output Devices in Java
- Custom Device with NetFront Browser Using Bootstrap
- Adobe Flash App -- Unique Device ID
- Phonegap libgif javascript: work in emulator, not device
- How to read if USB cables or relay are connected or not using c#?
- APN push notifications for chat
- Make virtual copy of a device
- Compiling a driver for MIPS architecture on 4.4 kernel
Related Questions in DEVICETOKEN
- About iOS app, Will the device token for push notification change after transfer account?
- How to get device token of device in Unity 5?
- get ios push deviceToken second time
- Getting different device id of one device from gcm
- How to share users device token in ViewController
- is there a way to check two device tokens are belongs to same device?
- Generate Device token in android for react native app
- How to get device token id of windows phone for push notification?
- Is it possible to get the device token even if Push Notification is not enabled?
- Using iPhone deviceToken for other purposes after push notification?
- DeviceToken as anonymous identifier IOS
- iPhone device token not match with download times
- How To Modify The PHP File To Send To More Devices Push Notification In Loop?
- How to determine Push notification status programmatically?
- Device token in push notification
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you doing this for push notification, you can use the feedback service from apple to detect if a device is deleted.