EddyVerbruggen / Custom-URL-scheme

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

Unable to redirect Sub State #201

Open ranvirgorai opened 7 years ago

ranvirgorai commented 7 years ago

This plugin open App gracefully but not redirecting to sub state for example

.state('tab.chats', { url: '/chats', views: { 'tab-chats': { templateUrl: 'templates/tab-chats.html', controller: 'ChatsCtrl' } } })

if url like myapp://tab/chats myapp://tab.chats myapp://chats

it simply start the application but not redirecting to sub state.

simerjit-fwrk commented 7 years ago

getting same issue... Have you solved it?

ranvirgorai commented 7 years ago

yes i solved

simerjit-fwrk commented 7 years ago

Will you please share the solution? Also what if the app is not installed on the device? It is redirected to website page or not?

ranvirgorai commented 7 years ago

to redirecting to website or app store you have need to take third-party services like Branch.io etc. ping me on mail

simerjit-fwrk commented 7 years ago

here is what I am using:

In config.xml

in sharing: var test = "thoagapp://signin"

it opens app, as it is custom url, but what if the app is not installed? I want to open the appstore if the app is not installed.

Regards,

Simerjit Kaur

On Tue, Mar 21, 2017 at 5:06 PM, Ranvir Gorai notifications@github.com wrote:

to redirecting to website or app store you have need to take third-party services like Branch.io etc. ping me on mail

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/201#issuecomment-288052244, or mute the thread https://github.com/notifications/unsubscribe-auth/AXR2bvqeShqZqLst0MQWwas86myZha8Kks5rn7YigaJpZM4KAJy3 .

ranvirgorai commented 7 years ago

if u have issue to move to your app's substate then you can do it by handling custom url scheme in your app.js file, and if you want to move to app store then you have need to use third party services as mention above, which will resolve your app custom url scheme to your app's package name, because we can redirect to play store using app package name.