I am currently implementing a push notification server based on php that can manage multiple apps.
How is the registration_id for GCM generated. Is the registration id generated per device or per installation.
Example: I got 2 apps A and B.
When the device registers for A and B, do the installations have the same registration ids or is one id generated per installation.
The same question for iOS, one id per installation or device?
A Registration ID is an identifier assigned by GCM to a single instance of a single application installed on an Android device. The device is assigned this identifier when it registers to Google Cloud Messaging. The GCM documentation doesn't specify what information is encoded in this identifier.
APNS is a cloud-based service that enables apps to send push notifications from a remote server to iOS users through a secure connection. Before iOS users receive your messages, you'll need a p. 12 certificate from Apple, which authorizes push sending through APNS.
From this thread, GCM is a service that helps developers send data from servers to their Android applications on Android devices. Same with APN which is a service for app developers to propagate information to iOS (and, indirectly, watchOS), tvOS, and macOS devices.
APNS is a free service. However, you need to maintain a server to send Push Messages.
APNS:
You can look at the official APNS docs for more information.
GCM:
Please let me know if anyone thinks this is incorrect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With