EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

Not receiving the banner image in push notification in ios while in android its working fine #1581

Open rajesh-mobicules opened 4 years ago

rajesh-mobicules commented 4 years ago

@EddyVerbruggen We are using this plugin in native script. We have to send image as well in the payload of the notification.

We are receiving the image in push notification in android but we are not receiving the image in ios.

Can you please suggest us on this what would be the issue?

manojdcoder commented 4 years ago

I doubt the plugin yet supports image notification on iOS.

manojdcoder commented 4 years ago

@EddyVerbruggen Are there plans to implement Firebase Notification Extension any time soon?

rajesh-mobicules commented 4 years ago

It's working fine for Android. The issue is only in ios.

On Wed, 8 Apr, 2020, 12:58 AM Manojkumar Murugesan, < notifications@github.com> wrote:

@EddyVerbruggen https://github.com/EddyVerbruggen Are there plans to implement Firebase Notification Extension any time soon?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/1581#issuecomment-610576702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANFQ222DOORZE4WNK4FQYDRLN5GNANCNFSM4MDJMHFA .

manojdcoder commented 4 years ago

They are different platforms, they work differently under the hood. Notifications are highly customisable on Android for a long time, with iOS it's something new.

rajesh-mobicules commented 4 years ago

Thanks @manojdcoder @EddyVerbruggen It would be great if you can provide your views on this as this is a much needed functionality.

rajesh-mobicules commented 4 years ago

@EddyVerbruggen Please let me know by if you have any update on this.

manojdcoder commented 4 years ago

I think it could take a while, a PR would be welcomed.

anmaitrannguyen commented 4 years ago

On iOS we must create an UNNotificationServiceExtension for the Image to show up. https://firebase.google.com/docs/cloud-messaging/ios/send-image Nativescript does support Extension for iOS. You can try to create an extension, following this article: https://medium.com/@lucasgoesvalle/custom-push-notification-with-image-and-interactions-on-ios-swift-4-ffdbde1f457