open iOS/android app from button clink
-
I want to have a WordPress website, I need it to open my react native app on iOS and android through a button click. I was achieving this with this line (prior to using WordPress)
window.location.replace(url);
and url was a custom one for my app autotourapp.com:/
is it possible to do this with WordPress, does the site allow me to have a /.wellKnown file for apple to access to confirm the site and the app are linked.
to link and open specific content in our react native ios/android app we have a custom url scheme: autotourapp.com:/
Opening our app from the web (on mobile) has required me to replace the in-browser url with the custom url scheme and path autotourapp.com:/map/trail/10778.
I am looking to have a user on our WordPress based website be able to click a button to view some content in the app, thus going to a link similar to the one i showed prior: autotourapp.com:/map/trail/10778. On a non-word press site I have achieved this by using window.location.replace(‘autotourapp.com:/map/trail/10778’). On our WordPress site I want to achieve this same behavior.So I am trying to handle this by writing code to handle the button click and send to the url.
For additional context Apple requires a JSON file to be hosted on the website to confirm that the website is associated with that app and can open it. It’s called an apple-app-site-association file and it needs to be stored at https://autotourapp.com/.well-known/apple-app-site-association with no redirects.
https://developer.apple.com/documentation/xcode/supporting-associated-domains
Google requires something similar for android. I am looking for if it’s possible to store those files and forward from my site to my mobile app. Is it possible to do this with WordPress? If so I will be paying for an upgraded site, I just don’t want to pay to find out its not possible.
Thank you,
MatthewWP.com: Yes
Jetpack: No
Correct account: YesThe blog I need help with is: (visible only to logged in users)
- The topic ‘open iOS/android app from button clink’ is closed to new replies.