Question

I have a page that only users of my native iOS app will find, which should open the app. This works (on any other HTML page anyway) by linking to "myapp://path/inside/app".

Wordpress keeps "fixing" this to "https://path/inside/app", which doesn't work of course. I didn't find a setting to stop it from doing this. Is this possible?

Was it helpful?

Solution 2

I created this plugin to address my problem: https://github.com/mehlkelm/Allow-My-URL-Schemes At the moment it only works for my apps, pull requests welcome!

OTHER TIPS

I think your problem is that an HTML page is a single point of reference. Swift allows you to define that custom URL in your app ( https://www.hackingwithswift.com/example-code/system/how-to-make-your-app-open-with-a-custom-url-scheme) but WordPress rewrites itself and all sub-pages, api etc. to the URL defined in the database options. So, short answer, you can't do that. If you were to set the URL of the WordPress site to myapp://whatever.com it would break. Do you have to use myapp:// ?

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top