简体   繁体   中英

Amazon SNS Push Notification - Autoregister device token to aws console

i am using Amazon SNS Push notification using GCM service.

I am able to manually add device token in aws console and receive notifications on the device.

No how can i auto register device token to aws console ?

According to the docs Here we need to use Cognitio but there is no proper documentation for the same.

Can you guys help me solve this ?

I suggest you to read this article to know the whole workflow. Though it's written for iOS development and somewhat outdated, the concepts are helpful.

AWS Cognito helps you get credentials for connecting your application users with AWS SNS Service. It's important to first set up Cognito to authorize any further action.

For the auto registration part, you'll need to make a request to AWS console and create an endpoint (related to a specific device installed your application) there, thus you can push notifications to those registered endpoints later.

check the createPlatformEndpoint (keyword for more searching) section at this AWS doc .

Notice that two request parameters PlatformApplicationArn and Token are required, see the Request Parameters section here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM