question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot open external app on android

See original GitHub issue

Hi,

I am trying to open the external app from my application, but cannot do so. The error I am getting is -

Uncaught TypeError: Object com.concur.breeze has no method 'apply' cordova.js:293
cordova.callbackFromNative cordova.js:293
processMessage cordova.js:1081
processMessages

I am using cordova version 5.1.1

The sample code which is -

sApp = startApp.set({ /* params */
                "action":"ACTION_MAIN",
                "package":"com.concur.breeze",
                "component": ["com.concur.breeze"],
                "intentstart":"startActivity"
            }, { /* extras */

            });

Alternatively link to the app is https://play.google.com/store/apps/details?id=com.concur.breeze&hl=en. Any help would be highly appreciated.

Regards, Deepak

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lampaacommented, Apr 14, 2016

Hi, @ddalmia! Test this:

// set package
var sApp = startApp.set({
    "package":"com.concur.breeze"
});

// check app for exists
sApp.check(function(values) {
    sApp.start();
}, function(error) { // not exists, open play market
    startApp.set({
        "action":"ACTION_VIEW",
        "uri":"market://details?id=com.concur.breeze"
    }).start();
});
0reactions
NicolasPapp94commented, Oct 21, 2019

Hi, @nawirulfadly Test this:

var sApp = startApp.set({
    "application":"com.shaiban.audioplayer.mplayer"
});

This was the solution of my problem to open app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't open links in Android apps? Here's what to do!
1. Check in-app settings ... The first thing to do is to ensure that the app opens links externally. You can try with...
Read more >
9 Ways to Fix “No App Found to Open URL” in Android
9 Ways to Fix “No App Found to Open URL” in Android · 1. Force-Close Android Apps and Retry · 2. Reboot Your...
Read more >
Fix an installed Android app that isn't working
Step 1: Restart & update · Open the Google Play Store app Google Play . · At the top right, tap the profile...
Read more >
Android external app can't access app's files
Android external app can't access app's files ... I'm trying to open a file that I've downloaded on one app, in another viewer,...
Read more >
App Won't Open on Your Android Phone? - All Fixes! - Dr.Fone
Another possible reason for Apps to crash or why an App won't open is a possible data crash. This may occur due to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found