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?

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ