Closed Korpyc closed 1 year ago
According to Klaviyo documentation, please add to AndroidManifest.xml
<service
android:name="com.klaviyo.pushFcm.KlaviyoPushService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
to your Android application class
class YourApplication : FlutterApplication() {
override fun onCreate() {
super.onCreate()
Klaviyo.initialize(KLAVIYO_PUBLIC_API_KEY, applicationContext)
registerActivityLifecycleCallbacks(Klaviyo.lifecycleCallbacks)
}
}
This lib handlePush
method, just wrapper around Klaviyo Android SDK handlePush(intent: Intent?)
but instead Intent
it use data from Flutter
Hi, I've investigated and communicated with Klaviyo support. They NOT send remote notification to the app, they send us data message, a bit same, but without Notification with title&body inside. But those fields exit in payload data.
They expect that we will process notification by next Kotlin code:
KlaviyoNotification(message).displayNotification(this)
https://github.com/klaviyo/klaviyo-android-sdk
Could you please add this handling into library? Because if not, notification never will be in android system notifications center.
In addition, could you please explain purpose of it? is it your custom logging of push notification via Klaviyo events?