The first thing that stands out to me is the use of the “on resume” event to register the deeplink handler. You should register the deeplink handler only once using an “on load” event, because each time it runs it registers itself to listen for deep links.
Hi Eric
Thank you for the swift reply.
Currently we have a login page in meandix with an on load event that registers the deeplink. This on load is however triggered before loggin in. So I guess after loggin in there will be no check for new deeplinks? I tried to remove the on resume event handler and if I do so I do not get the param of the deeplink anymore.
Should I, for my case, then have 2 deeplink register actions? 1 On the on load for the login page, and 1 for the on load of the home page?
Thanks Eric for the above reply. I changed the on resume event with an on load event and registered the deeplink there. Now it seems to work fine.
Perhaps 1 small issue left. We need the register deeplink activity on the login page because of native SSO login and redirect. However when I now open a deeplink URL and my native is not started yet, it will open the app and after login in it will still have the param. But the moment I log out, the deeplink is registered again. Is there a way to delete this URL param?
Bump.
How can we cleanup the deeplink in native?