Skip to content

Commit

Permalink
fix: Use correct Klaviyo notification key
Browse files Browse the repository at this point in the history
It was checking on the incorrect key to determine a Klaviyo push
  • Loading branch information
Quirijn Groot Bluemink committed Oct 7, 2024
1 parent 08e6d78 commit b4b5be2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class KlaviyoFlutterPlugin : MethodCallHandler, FlutterPlugin {
}
}

private fun isKlaviyoPush(payload: Map<String, String>) = payload.containsKey("com.klaviyo._k")
private fun isKlaviyoPush(payload: Map<String, String>) = payload.containsKey("_k")

companion object {
private const val CHANNEL_NAME = "com.rightbite.denisr/klaviyo"
Expand Down

0 comments on commit b4b5be2

Please sign in to comment.