Apple actually use the device token which is different to the uuid, you do not need to use the uuid at all (I have not been using that for over a year.)
J
> --
> You received this message because you are subscribed to the Google
> Groups "Easy APNS" group.
> To post to this group, send email to easy...@googlegroups.com
> To unsubscribe from this group, send email to
> easyapns+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/easyapns?hl=en
I dont use the apns any more, I wrote my own system (for working with drupal)
But if you swap the uid to be a auto increment number I can not see why that would not work, APNS needs the message to be sent to a device token, it does not care about the uid, this is only if you want to identify the actual device that you are sending messages to, say if you are targeting specific devices, but there are other ways to do this yourself (create a id for the device within your application, and use that if you need to identify devices in your system.) if you are using them to update the settings (receive push notifications etc, then I would use the device token, as this is specific for device and app.)
J
Thanks for your reply but I don't know what do you mean :(
They should get the same devicetoken if they delete and reinstall the app, you can test this on your device, by uninstalling, then reinstalling and seeing if its the same devicetoken.
J
Accordingly, Apple has gone through some significant effort precisely to defeat what you are trying to accomplish here. Device token is subject to (and does) change. Device uid is deprecated. Use of persistent storage outside of sandbox space cleared when the app is installed is expressly verboten.
You have two options of unique identification in apple world. The first is checking the receipt of an in-app purchase when a user expressly restores it (in which case you get a unique hash). The second is requiring the user to login. The days of magical persistent unique identification with no user interaction on iOS are gone.
John
The first is checking the receipt of an in-app purchase
Some of my systems pass only the token, and if they want to recieve alerts etc.
J
The previous answer was for somebody that did not want the devicename or udid in the db.
J
It will be hopefully a contrib module within a couple of weeks, a couple of little issues i want to sort first.
John
Sent from my iPhone