fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 998 forks source link

Big Picture support for the Notification #519

Open RakeshKB opened 6 years ago

RakeshKB commented 6 years ago

I am unable to send an image(a big picture) in the payload. Could someone please help me on this.

kurtiev commented 6 years ago

Hi @RakeshKB ! Did you find any solutions for it?

eros2187 commented 5 years ago

@RakeshKB Did you find any solutions for it?

RakeshKB commented 5 years ago

Hi @kurtiev/ @eros2187 I still haven't found a permanent solution. This issue seems to appear for Android OS version 8.0 (Oreo) and above. There is a thread sequence change in Oreo and hence Big Picture (also the normal notifications) are not shown when the app is in Background. Unfortunately, my app crashes due to the same.

eros2187 commented 5 years ago

@RakeshKB can you put your sample code? I'm new thanks

harithFED commented 5 years ago

replace the java file with the current java file .https://github.com/harithFED/cordova-plugin-fcm/blob/master/src/android/MyFirebaseMessagingService.java

.. please use api to post the data. put everything inside data properties.

it is only works for android. i have no knowledge about ios.

dudunegrinhu commented 5 years ago

HI @harithFED were you able to get the custom sound notification to work on Android Oreo?