Expand my Community achievements bar.

SOLVED

Dynamic deeplink personalization for push

Avatar

Level 7

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.

 

1 Accepted Solution

Avatar

Correct answer by
Level 7

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!

View solution in original post

4 Replies

Avatar

Community Advisor

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_Kumar__0-1718258006473.png

 


     Manoj
     Find me on LinkedIn

Avatar

Correct answer by
Level 7

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!

Avatar

Community Advisor

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

Avatar

Level 7

ohh, is it anything you put under "custom data" will pretty much become a query parameter value? In my case, because I have ?redirect=, that's why I can put "redirect" under "Custom Data"? Is it only for parameter values under "On click behaviour/deeplink"? 

 

Thanks.