EddyVerbruggen / Custom-URL-scheme

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

how to open specific page of application #248

Open harishmahajan opened 7 years ago

harishmahajan commented 7 years ago

see my question

https://stackoverflow.com/questions/44797486/open-specific-page-using-ionic1-firebase

erperejildo commented 7 years ago

You have the solution there now. One thing that you need also to double check is when you maximize the app with a new link and maybe the function is not being called.

For that I use: document.addEventListener("resume", this.getLinks, false);

Helianthus21 commented 6 years ago

@harishmahajan try this:

window.handleOpenURL = function (url) {
  window.location.hash = url.slice(7) // your URLscheme.length
}