I was able to successfully get the Firebase Push Integration sample working as specified here. As I continue my education on this topic I have a basic question about Push tokens. From what I can see in the forum and googling around on this topic, my iOS based Push Notification enabled app can generate a user specific token. This token can presumably be used to send notifications to just that user. My questions are:
Once the token is generated is there a structure way (i.e. using Firebase SDK) to store the per user token in the Firebase cloud or Apple APN servers? Or is it my (the developer) responsibility to store the user token and then associate it with the user in my own database or other mechanism? I've seen examples of how to generate the user token but never what to do with it after it's generated (like send it somewhere, etc.). Is this the correct assumption.
If the user has more than one Apple device like an ipad and iphone, is the token per device? I think the answer is yes but want to verify. So if the user generates a token on his/her iphone and I use that to send the user a notification, it will only go to the iphone. If I want to send notifications to both devices, the app on both devices must generate a per user token and I need to associate it with that user and broadcast simultaneously. Is that correct?
Thank You!
Once the token is generated is there a structure way (i.e. using Firebase SDK) to store the per user token in the Firebase cloud or Apple APN servers? Or is it my (the developer) responsibility to store the user token and then associate it with the user in my own database or other mechanism? I've seen examples of how to generate the user token but never what to do with it after it's generated (like send it somewhere, etc.). Is this the correct assumption.
If the user has more than one Apple device like an ipad and iphone, is the token per device? I think the answer is yes but want to verify. So if the user generates a token on his/her iphone and I use that to send the user a notification, it will only go to the iphone. If I want to send notifications to both devices, the app on both devices must generate a per user token and I need to associate it with that user and broadcast simultaneously. Is that correct?
Thank You!