Skip to main content
Solved

Open a browser with push notification

  • July 31, 2024
  • 1 reply
  • 147 views

Forum|alt.badge.img+2
  • Contributor I

Hi guys, I’m wondering if are there anyway that I can send a push notification campaign, when user tap that notification, instead of opening the app, it will open browser and direct to the link I wanted

Best answer by Maxbuzz

Hello @phu  There is not out of the function which supports this behavior. You will have to handle this yourself on the APP side.

https://github.com/klaviyo/klaviyo-android-sdk/blob/e49a36bca91dcd2949e7cc9a8f8023e4ee5ffe65/sdk/push-fcm/src/main/java/com/klaviyo/pushFcm/KlaviyoNotification.kt#L50

Look at this example on how Klaviyo listen to Remote Message, you can intercept the message and then decide if you want to open the deeplink or redirect user to a browser

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • Answer
  • August 1, 2024

Hello @phu  There is not out of the function which supports this behavior. You will have to handle this yourself on the APP side.

https://github.com/klaviyo/klaviyo-android-sdk/blob/e49a36bca91dcd2949e7cc9a8f8023e4ee5ffe65/sdk/push-fcm/src/main/java/com/klaviyo/pushFcm/KlaviyoNotification.kt#L50

Look at this example on how Klaviyo listen to Remote Message, you can intercept the message and then decide if you want to open the deeplink or redirect user to a browser