I'm trying to wrap my head around how AWS Mobile Push Notification works. Specifically I'm building out a web service that will be capable of sending notifications to my mobile app running on my users' devices. After reading all of their docs, it sounds like the high level flow is:
PlatformApplicationARN
) that I also configure my backend to usePlatformApplicationARN
) to generate a unique EndpointARN
for that particular deviceEndpointARN
. Then its just a matter of hitting the AWS SNS API to send my notification message to that EndpointARN
, and it sounds like AWS SNS will take care of everything else (and delivering the actual message to the device)So before I go any further, I'm just looking for someone to help sanity check my understanding and provide any course correction if I've misunderstood anything or am missing any important pieces of the config/flow! Assuming I'm more or less on track...
I'm still not seeing how SNS will be able to connect to GCM and APNS once I send a notification message to an EndpointARN
. Do they maintain their own integration/connection with these services? Or do I somehow inject my own GCM/APNS credentials into the AWS SNS API call somehow?
Also, I know push notifications can be fairly configurable, allowing you to do things like:
I'm wondering where all this configuration takes place? Any ideas?
In this example, YouTube app notifies app users about new uploads from channels they are subscribed to. The push action buttons allow users to control when they want to watch these videos by adding options such as 'Watch Later' and 'Others'.
Unlike iOS users, Android users are automatically opted in to receive push notifications, this leads to new Android users being more likely to be opted-in to notifications.
Open the Amazon Pinpoint console at https://console.aws.amazon.com/pinpoint/ . On the All projects page, choose the project that you want to update push notification settings for. In the navigation pane, under Settings, choose Push notifications. Next to Push notifications, choose Edit.
I can confirm that the high level flow is:
PlatformApplicationArn
and you will be asked for credentials so that SNS can connect to your respective FCM/APNS accounts
PlaformApplicationArn
s to your code's configPlatformApplicationArn
for FCM or APNS and use the AWS SNS SDK to create an EndpointArn
for the device. Store this EndpointArn
however you like.EndpointArn
(specific device) anytime you want to.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