question

43865767 avatar image
0 Votes"
43865767 asked KyleWang-MSFT commented

Xamarin Forms iOS Restrict Specific URL from Deep Linking

My application supporting a deep-linking feature where we can navigate from third-party applications to xamarin mobile app.

I have created an e-commerce application which we have integrated with payment gateway,

Issues: when we are accessing the web application on a mobile app browser, we are getting to navigate on the payment gateway portal to make payment on the browser we are getting to return URL from the payment gateway, While navigating to specific Url as xyz.com/pay/paymentdetails.aspx. it's considering this third-party app navigation.

As I have already mentioned we are using deep linking its directly opening the xamarin forms app on iOS.

Is there any way where we can restrict a particular URL from deep linking for iOS?

dotnet-xamarin
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@43865767 Not clear what "restrict a particular URL" means. For more info about deep linking, you can refer to this. If you want to set "deep linking link", you need to add "applinks" to Associated Domains and add Associated Domain File to the website.

1 Vote 1 ·

Whenever we are navigating from the Payment gateway to our web app. which is navigating on a specific URL that contains domainname/pagename.


Example.

I have added the associated domain like xyz.com whenever we trying to open xyz.com from a third-party app like WhatsApp, Gmail is opening the mobile app. - It is correct.

But now I don't want to open a mobile app if we trying to try open URL like xyz.com/test.html from third-party app





0 Votes 0 ·

@43865767 You can add "NOT " to the beginning of the path string, such as NOT /videos/wwdc/2010/*.

0 Votes 0 ·
Show more comments

0 Answers