Hi guys,
This new feature in Android 8.0 (API level 26) where notification can be handled as channels (aka category). Currently, in the app, the ‘category’ is corona (see attached screen shot).
I have tried sending a notification message (using FCM) with the ‘android_channel_id’ field, but it does not show. I think the push notification plugins needs to be updated or maybe the app needs to create the category first (as per FCM’s document).
The app must create a channel with this channel ID before any notification with this channel ID is received. If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app, FCM uses the channel ID specified in the app manifest.
// Sample post-data to FCM $postData = ['registration\_ids' =\> $listOfFcmIds, 'data' =\> [ 'alert'=\> 'Notification Message', 'custom' =\> $myData,] ];
Reference documents :
https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels
https://firebase.google.com/docs/cloud-messaging/http-server-ref
Any advice on how to create the channels/category in the app using Corona ?
Thanks