We can perform a specific task when a URL
is called in the web apps. Suppose we can send an email when a POST
request just hits a .php
file.
Exactly the same thing I want to do in nativescript
.
So the questions are:
URL
is called from my app?Actually I'm building a chat application which will use http
calls rather than socket io
or firebase
value change listeners, etc.
Thanks in advance!
I think you are looking for deep linking. Use nativescript-urlhandler plugin, setup a URL scheme for your app. Then all you need is just listen to the event and perform navigation for that URL.
Apple started supporting Universal Links only from iOS 9. You will have to follow some additional steps mentioned in the Apple Docs, basically verify you own the domain.