Closed Korpyc closed 1 year ago
Thank you for your input, I added this userNotificationCenter
function as a delegate in the Flutter plugin and now push tracking and deep-linking on iOS should send to Flutter and work.
Could you please try the latest update 0.0.1+5
and back with the results?
I've tried, changes work's for me as well. Deeplink was handled. But overall, can't read notification inside the Flutter code, as it's not received by Firebase messaging instance.
Did you subscribing to FirebaseMessaging
listeners?
FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) => _onBackgroundPushOpenedApp(message));
FirebaseMessaging.onMessage.listen((RemoteMessage message) => _onForegroundPushDisplayed(message));
Or check if the push was received while the app terminated?
RemoteMessage? remoteMessage = await FirebaseMessaging.instance.getInitialMessage();
This RemoteMessage
object usually contains a deeplink: message.data['url']
Also nice to have are top level function marked as an entry point for iOS app https://pub.dev/packages/flutter_local_notifications#-usage
Future firebaseMessagingBackgroundHandler(RemoteMessage message) async
Yes, those listeners are written and work correctly, because my app successfully receive notifications from backend server & test notifications from Firebase console.
This shouldn't have been closed IMO - the last message from @drybnikov only confirmed that the firebase side is working. I am able to send from firebase and the handlers are called however if i send from Klaviyo they are not.
Hey, I've installed your package, I has Firebase messaging which correctly work with my backend server. But, Klaviyo notifications are not received by Flutter code.
Are you sure that your app getting Klaviyo notifications data inside Flutter code???
The hack, that I've used for handling deeplinks, it's I've added handling on iOS side, like code below. The only problem that I've noticed, app receiving it twice.