Hi all,
currently working on push notifications.
I want to send push notifications to users, but I'm facing 2 little problems.
1) How can I send push notification to ALL users of my app?
2) How can I identify a device? Because I store tokens into database, and update if needed, but then I need a unique number. To know which record to update.
Ofcourse I can generate some number, store locally on device and hope its 100% unique. like random(1000) * timestamp
gives me a different result every time.
currently working on push notifications.
I want to send push notifications to users, but I'm facing 2 little problems.
1) How can I send push notification to ALL users of my app?
2) How can I identify a device? Because I store tokens into database, and update if needed, but then I need a unique number. To know which record to update.
Ofcourse I can generate some number, store locally on device and hope its 100% unique. like random(1000) * timestamp
Code:
[[NSUUID UUID] UUIDString]
Last edited: