-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
startApp not finding other app even though its installed #148
Comments
Hi, @rolinger! You can call you app by package name, exam: var sApp = startApp.set({
"application":"com.application.name"
}).start(); |
Hi @lampaa - I first use to determine if the app is available on the device:
The above successfully opens other apps like FB and Uber and such, but on my own isn't opening. The appAvailability function does see the secondary app, which in turn is calling the function that will open the app, but the startApp is unable to open it. This is the error I am getting in the primary app:
Whats the difference between |
@lampaa - well, not certain what I did wrong...or what I did to correct it...but the secondary app is now opening - at least on Android. Haven't tested yet on iOS. Question - the params{} that are passed to the secondaryApp, how do I retrieve them in the app? I tried using :
But it that function never fires, so I am not certain how to get the passed in parameters? |
To get extras on android, use the method: startApp.extraFields(function(fields) { /* success */
console.log(fields);
}, function() { /* fail */
}); Unfortunately, I don’t know how to get parameters from another application on ios :-( |
@lampaa - Ok, I have been doing a lot of testing. The following three methods all work at opening and passing vars into the external app for both iOS and Android - however for Method 2, the only outstanding issue is getting the app to open into a new window - currently the external app is opening within the Primary calling app. Maybe someone can help figure out how to get it to open to a new window. In the Primary calling App:
Then in the external Secondary called app - to retrieve the vars, both of these functions are placed in the
@lampaa - I think if you adapted Get Vars Method 1 into your standard startApp.getExtras you could be able to retrieve vars in iOS. |
I have two apps I am designing.
I want a button in the primary app to call a the secondary app.
In the secondary app I installed cordova-plugin-customurlscheme and defined the app name as:
mySecondaryApp
and added `<allow-intent href="mySecondaryApp: />
But the button in the primary app can't find the secondary app name
mySecondaryApp
I know the startApp does work though because the Primary app is opening other apps like
Uber
,FB
etc.The text was updated successfully, but these errors were encountered: