"Navigation blocked" when opening Intent

I am working on a payment process for an application. When the user paid in the browser, he should be redirected back to the application.

My solution is to open Intent from a browser. To do this, I made a button and clicked it using javascript:

<body onload="document.getElementById('backToApp').click();">
    <a style="margin: 50px auto;" id="backToApp" class="btn btn-success" href="intent://app/#Intent;scheme={{ scheme }};package={{ package }};S.data={{ data }};end">Return to app</a> 
</body>

The only problem is that when I open the site in your mobile browser, Chrome debugger says Navigation is blocked. Is there any way to fix this?

+4
source share
1 answer

, , ! , / . , , URL-. " ". , , , !

+1

Source: https://habr.com/ru/post/1651057/


All Articles