Skip to main content
Level 6
Jun 11, 2024 9:21 PM UTC
Solved

Dynamic deeplink personalization for push

Hi there,

 

For our push notification, there is need to return a dynamic deeplink based on certain criteria the customer is eligible for. 

 

As an example, this is what I am looking to accomplish:

{%#if "abc"="123"%} myAppScheme://webview?redirect=https://www.google.com {%else if "aaa"="aaa"%} myAppScheme://webview?redirect=https://www.msn.com{%else%} myAppScheme://webview?redirect=https://www.yahoo.com{%/if%}

 

With just myAppScheme://webview?redirect=https://www.google.com alone in the deeplink, I was able to get it to work. But after adding a condition, the deeplink doesn't work. Is this supported?

 

Thanks.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
akwanklAccepted solution
Level 6
Jun 14, 2024 6:07 AM UTC

Thanks @_manoj_kumar_ ,

 

I was able to get it to work in the end. For my case in particular, I am learning that every edit you make in the editor takes time to be reflected (ie. title, body, deeplink), seems like there is some kind of caching. So every time I make a logic change, and I test it right away, the change actually wasn't reflected.

 

Though, curious how the "redirect" in the custom data will work? Can you explain on that piece @_manoj_kumar_ ? Thanks!

4 replies

Manoj_Kumar
Community Advisor
Community Advisor
Jun 13, 2024 5:53 AM UTC

Hello @akwankl 

 

Can you check if the redirect URL is populated correctly when a push is received on app?

 

the other options you can try is the key value pair under Custom data

 

Translate
Manoj  | https://themartech.pro
akwanklAuthorAccepted solution
Level 6
Jun 14, 2024 6:07 AM UTC

Thanks @_manoj_kumar_ ,

 

I was able to get it to work in the end. For my case in particular, I am learning that every edit you make in the editor takes time to be reflected (ie. title, body, deeplink), seems like there is some kind of caching. So every time I make a logic change, and I test it right away, the change actually wasn't reflected.

 

Though, curious how the "redirect" in the custom data will work? Can you explain on that piece @_manoj_kumar_ ? Thanks!

Translate
Manoj_Kumar
Community Advisor
Community Advisor
Jun 14, 2024 6:13 AM UTC

Hello @akwankl 

 

It would work in the same value. Instead of reading the value from query parameter the app will get this information as JSON payload. Once the value is available then app can take relevant action.

Translate
Manoj  | https://themartech.pro