Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Device Token and Push Notification

I am trying to implement Push Notifications into my app, but I have, what I believe, may be a dumb question. I have my Push Notifications working, but they work because I am putting the Device Token into my asp.net code on the server.

My question is, am I supposed to keep track of the device tokens my app obtains? In other words, when the app launches and I get the device token, do I need to send those up to my server and store them so that when I need to send a notification to all the users of my App i can go through the list of tokens and send the notification to each device token?

Thanks for any clarity you can bring, as you guessed this is my first attempt at Push Notifications.

like image 876
LilMoke Avatar asked Mar 05 '26 18:03

LilMoke


1 Answers

You have to store the device tokens in a database. Then you send a notification addressed to each device token. You can create the system by yourself, but there are open source libraries that have done this already. Although it is for PHP, Easy APNS is an example.

like image 130
Jack Humphries Avatar answered Mar 07 '26 09:03

Jack Humphries



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!