EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 365 forks source link

How can the cordova app know at runtime which scheme it supports? #257

Open strille opened 6 years ago

strille commented 6 years ago

I'm defining the url scheme in config.xml, and it works successfully: <variable name="URL_SCHEME" value="mycoolapp" />

However, I would like to be able to read which url scheme has been defined for the app at runtime (needs to be sent to a 3:rd party). I'm wondering if there is a way to access that through JavaScript?