AWS SNS FCM/GCM "direct_boot_ok" property support for push notifications

0

I utilize AWS SNS for sending push notifications to an Android application. I want to be able to send push notifications to the android app immediately after device boot and before the security pin has been entered. The capability to do this is fully supported by FCM/GCM by adding an additional property to the push notification request:

{"direct_boot_ok": true}

See: Firebase documentation for more details on this property.

I am able to successfully trigger this capability when using a REST client to send the push notification, but not when sending the same message payload directly though AWS SNS. Is it possible to have this functionality supported with AWS SNS?

已提问 2 年前286 查看次数
1 回答
0

Dear Customer, thank you for reaching out us regarding the above query. Kindly note that unfortunately this attribute is not supported with AWS SNS. However, in order to send push notifications to the android app immediately after device boot and before the security pin has been entered, try the following payload on the Pinpoint console

  1. Go to Pinpoint > Project > Test messaging

  2. Select Push notifications, and enter the Device token

  3. Select Push notifications service as FCM

  4. Under 'Message', select 'Raw message' and use the following payload:

    {

     "GCMMessage": {
         "notification": {
             "body": "Test PinPoint",
             "title": "Test PinPoint",
             "direct_boot_ok": true
         }
     }
    

    }

In case you are facing any challenges or any error messages, I would request you to kindly provide a test payload or the SDK/CLI call (with the complete payload) that you are trying, along with any error message or the behaviour observed at your end. Please feel free to add any follow-up query you may have.

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则