As per new android policy, we have set target SDK as 26 (API Level 26) in my cordova app. After this, android oreo devices are not receiving any push notifications sent from AWS SNS using GCM.
On searching over SO, it looks like we need to set android_channel_id some string value in the message payload. Even after doing that, messages are not received in Android Oreo devices. I tried to send directly from AWS SNS console as well as through our Java Spring REST API using SNSClient PublishRequest.
Do we need to create notification channels using AWS SNS client in Java? If so, any sample code using AWS SNS PublishRequest available? Or, just changes to be done in message payload? Could anyone help on this? Thanks.