Reputation: 33
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.
Upvotes: 0
Views: 393
Reputation: 33
Just discovered that the theoretical solution would be to upgrade phonegap push plugin above 2.1.0 which creates default notification channels.
But in order to upgrade push plugin, we may have to upgrade cordova-android version (>= 7.1.0) and all other plugins may throw incompatibility errors which can be resolved by upgrading those plugins.
Upvotes: 0