EddyVerbruggen / Custom-URL-scheme

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

Custom path - open specific page #321

Open scarletpro opened 3 years ago

scarletpro commented 3 years ago

Hello, I am new to this and I need to be able to open a specific page. I have installed the plugin and it works perfect (i tried mycoolapp: // and opened the application perfectly). My app has multiple restaurants, and what I want is open a restaurant menu like mycoolapp://restaurant1, I don't know how to find the path.

rolinger commented 3 years ago

@scarletpro - whats your app environment? To get the path that was passed into your app, you would need to handleOpenURL(url) after your deviceReady();

IE:

    function handleOpenURL(url) {
      console.log("received url: " + url);
    }  

would print to console: restaurant1