Is Device token for ANPS changed if i download same application after deleting it? - iphone

I want to know about changing DeviceToken for same Device.
Here I explain you,
Suppose i download application from AppStore to my device, then app will register device token to server. - lets say it is TOKEN1
Now i delete that app from my Device.And again download that app from AppStore, then the app will again register device token to server. - lets say it is TOKEN2
My question is is TOKEN1 and TOKEN2 are Same?
please clear my doubts.
Thank you,

They will be same as far as device certificate is same for application.
For further information read apple docs
It says : APNs generates a device token using information contained in the unique device certificate

Related

Inactive device token, urbanairship, cordova, ios

I am developing an app using cordova. For push notification, I am integration urbanairship. The device is getting registered successfully but the status of device token gets inactive.
I have created both development and production profiles but am unable to get device registered as active.
Can anyone help me out plz?
There are times during development or perhaps you’ve launched your app to the app store and you see either your token or messages of inactive tokens in your UA application. Device token as inactive when one of three things happen:
Apple tells us that the application has been uninstalled via the feedback service, which we check on a regular basis.
Apple rejected the device token for your app upon receipt of the notification at their servers
explicit delete call on the device token, which marks it as inactive and clears the alias and any associated tags.
If the device token was created when iOS 6 was installed, and the device has since updated to iOS 7, the old device token is eventually
rejected by Apple because the device now has a new, app-specific iOS 7
device token.
In any case, applications should expect and handle inactive device tokens properly. do one of the following:
Register the device token every time the application is opened,
Use feedback API regularly, store inactivated device tokens in your own database, and send registrations when the device token becomes
active again
Thank you. Hope it will help you.
If the device token is immediately inactive then it's a good sign that you've mixed your development and production environments. Remember, production certificates need to line up with production applications, from Apple all the way to Urban Airship. Likewise with development. If a development device token attempts to register as a production application, Apple will reject it and Urban Airship will mark it as inactive.
Here's another UA support article on how to create the appropriate type of application:
https://support.urbanairship.com/entries/69534443-Urban-Airship-Development-vs-Production-Apps

Publishing update of the app to App store

I have to push an update of app (I got the source code from the client and done some minor changes). I asked client for Apple dev login credentials but he is not willing to give me(it's obvious) however he asked me what info do I need from him. I know that I have to use the same distribution profile for creating the IPA. What else do I need from him in order to build the binary? e.g. Distribution Key in Keychain access etc.
Thanks
As your client don't want to provide Apple dev login credentials so it's not possible form your side. Because when you will going to submit your app you need to login to iTunes Connect.
So better I'll suggest you to submit you code to client and give him instructions (from installing xCode to uploading app) to upload your app as a new version.

Persistent device identifier even after app gets uninstalled

In my iPhone/iPad app's use case, there is a voting system and one device can send its vote once to the server. Therefore my server needs to identify user's device. I don't want the user to register an account because that makes the app complicate. However, I couldn't find a solution that works.
UDID is deprecated
I presume getting MAC address will get your app rejected by the app review process
I tried creating my own UUID using [[NSUUID UUID] UUIDString] and then storing it using NSUserDefaults, but the settings disappear if the user uninstalls the app
identifierForVendor is also reset when the user uninstalls the app
I considered advertisingIdentifier but because I'm not using it for advertisement, I presume it will also be rejected by the app review process
I'm not asking for a bulletproof solution in every situation. Just a solution that works even if the user uninstalls the app. Because I can generate my own UUID, I guess my question boils down to: How I can save data for the app that survives app uninstallation?
However if any of you have other approach, please feel free to inform me. Thanks.
Save the UUID into the keychain.

Verify installed app with UDID or IMEI

I am running web app and trying to verify user's installed app with URL scheme.
iPhone Web App
Know user's UDID and IMEI
Know specific app's URL scheme.
I have tried a lot of scripts but it doesn't really help me to verify installed app.
Checking time delay and transfer to App Store by Javascript doesn't verify whether its installed or not.
Our hypothesis are these.
Get return result by checking Safari cookie with Custom URL scheme. (ex. twitter:// )
Send a UDID parameter to iTunes Store to find its installation.
Some people might say it is impossible, but I believe, as a programmer, there should be a way to solve this problem.
Thank you.

Apple APNS Device Token

We have table where Apple Device tokens are stored. This tables are different for testing and and for live application. I want to update this database manually with my iPhone device token for testing purpose.
Is there anyway I can read the device token from my iPhone.
Note: I do not hava MAC machine.
There's a tutorial here of how to get the device token, however it requires that your test application be added some code for you to run.
Tutorial link
If in case you have the code, try putting a log for the device token in the
didRegisterForRemoteNotificationsWithDeviceToken and then check the log in your phone using a console app.