Notification not appear on Android Oreo

  

Hello,

I am using firebase cloud messaging plugin on my application. the notificatios work well on both ios and android.

but i can't receive notification on android oreo. After googling, i found that "Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel or it will not appear" https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels

when i read on firebase documentation, there must be additional code added on AndroidManifest.xml:


is it possible to add it on Outsystems Apps?

Hello Samsul,


Have you checked this? Should be able to help you out.


Cheers

Armando Gomes wrote:

Hello Samsul,


Have you checked this? Should be able to help you out.


Cheers

Hello Armando,

Yes i have.

I've add these lines into Extensibility configuration : 

{
    "preferences": {
        "android": [
            {
                "name": "com.google.firebase.messaging.default_notification_channel_id",
                "value": "fcm_default_channel"
            }
        ]
    }
}


but sadly it doesn't affect.

https://www.outsystems.com/forums/discussion/38249/version-1-0-3-does-not-work-with-oreo/#Post149158

Go to this link for the unofficially fixed plugin done by me

Explanation for what I had done:
Root cause was no function for channel management and creation of default channel is present and hence requiring me to add the functions required and update the FCM Push and firebase core plugin to the latest version.
The plugin use an older version of the FCM hence I had to update it via editing plugin.xml and push.gradle in order for it to generate app

EDIT:Change ! to : at end of explanation