Dynamic deeplink personalization for push | Community
Skip to main content
Level 6
June 11, 2024
Solved

Dynamic deeplink personalization for push

  • June 11, 2024
  • 1 reply
  • 1224 views

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.
Best answer by akwankl

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!

1 reply

_Manoj_Kumar_
Community Advisor
Community Advisor
June 13, 2024

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

 

     Manoj     Find me on LinkedIn
akwanklAuthorAccepted solution
Level 6
June 14, 2024

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!

_Manoj_Kumar_
Community Advisor
Community Advisor
June 14, 2024

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.

     Manoj     Find me on LinkedIn