drybnikov / klaviyo_flutter

BSD 3-Clause "New" or "Revised" License
4 stars 9 forks source link

Support Rich Notification #12

Open tomoyanakano opened 3 months ago

tomoyanakano commented 3 months ago

Describe the issue

I am integrating Klaviyo into my Flutter app using the klaviyo_flutter package. While I can receive push notifications, the images included in the notifications are not displaying. I implemented NotificationService and can receive notification with image from FCM as follow the below. advanced-optional-allowing-notification-images There is no mention in the documentation about handling images in push notifications.

What I've tried

I've tried integrating KlaviyoSwift with NotificationService. I'm not good at coding swift and don't have mature experience of developing native level. It was so hard for me to do it.

Steps to reproduce

  1. Integrate klaviyo_flutter package into a Flutter app.
  2. Configure Firebase for push notifications.
  3. Send a push notification with an image URL from Klaviyo.(I tested from campaign preview)
  4. Observe that the notification is received, but the image is not displayed.

Expected behavior

The push notification should display the image included in the payload.

Actual behavior

The push notification is received, but the image is not displayed.

Additional context

I believe this issue might be related to the need for native handling of images in push notifications, as described in the Klaviyo Swift SDK documentation. It is required to support KlaviyoSwiftExtension described in Rich Notification support of native plugin. Rich push