Hi Nikita, I thought you wanted access to the whole of the app, so I invited you to the GitLab repo. Would that be OK ?
Otherwise, I will find a way to send you those files.
For this logic you need to handle when app got deep link or universal link, like this(with uni_links) and this(with native). I haven’t been able to get this to work on iOS yet. I have tried third party libraries such as: uni_links and go_router.
Tomorrow I will try to implement it with native code.
By the way, the demo you posted. Did your link contain an https scheme or a custom one?
It looks like this won’t work inside a Webview if the link is opened from a browser (with the https scheme).
If with https, let me know how you achieved it.
If you instantiate a SFSafariViewController, WKWebView, or UIWebView object to handle a universal link, iOS opens your website in Safari instead of opening your app. However, if the user taps a universal link from within an embedded SFSafariViewController , WKWebView , or UIWebView object, iOS opens your app.
The link was indeed with an https scheme, so I can tell you it does work
I don’t remember all the details, but I believe it was thanks to both files I sent you, and also the subdomain has to be recognized by the device.
For iOS I think this is done via an apple-app-site-association file in the .well-known folder. But I can’t check now because my app is offline due to the ransomware.
Repo has been updated.
But be careful, because during the pull, you can overwrite all your local changes.
Just in case, create a backup of the project, and then selectively rebase your branch with the new changes.
P.S:
This method opens the page when it receives a deep link. Rewrite it if necessary.
I tested the solution and it works. This is a great improvement !
One lingering question, though :
If the app was not open on the phone, not even in the background, then it opens and goes to the right page. That is the expected behavior.
On the other hand, if the app was already open on the phone, but in the background, then clicking on the link switches over to the app, OK, but then it completely reloads the single page app. Would it be possible instead to emulate the Codeless “Go To Page” block or the BackendlessUI.Navigator.goToPage method ? I mean, would it be possible to just go to the specified page without reloading the whole app ? Indeed this takes a lot of time and the experience is not that great for the user.
Still, thank you for the enhancements which make it already a lot better than before !