phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Big picture notification not working in IONIC 4 #2750

Open deveshmishra34 opened 5 years ago

deveshmishra34 commented 5 years ago

Expected Behaviour

Send Notification with big picture

Actual Behaviour

In Ionic 3 it is working fine. But same code not working in Ionic 4.

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 8, Android 9

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Oneplus 5t, Emulator Pixel 2

Cordova CLI version and cordova platform version

I'm using capacitor

Plugin version

phonegap-plugin-push 2.2.3

Sample Push Data Payload

{ data: { title: 'Big Picture', message: 'This is my big picture message', picture: 'http://36.media.tumblr.com/c066cc2238103856c9ac506faa6f3bc2/tumblr_nmstmqtuo81tssmyno1_1280.jpg', style: 'picture' }, to: 'FCM_KEY' }

sreerajkarippala commented 5 years ago

same issue for me please help

tlatforlz commented 5 years ago

same issue, any update for this ??

deveshmishra34 commented 5 years ago

I got solution for this, I'm using (firebase messaging cordova plugin). Now you can directly send notification with image from firebase or you can add image key with valid image url in notification Object. Android will handle it self.

Notification Object: { data: [] image: "" priority: "HIGH" title: "Your title goes here", message: "Your message goes here." }

luckyplayone commented 5 years ago

@deveshmishra34 How do i send notification using firebase console ?

deveshmishra34 commented 5 years ago

@luckyplayone Go to Firebase console -> Select Project -> In Grow Section -> Select Cloud messaging -> New Message you will see something like this; If you want you can paste image url in "Notification image (Optional)"

Screenshot 2019-08-09 at 9 41 40 AM