Skip to content
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

Start an external app with component [Shazam app] #50

Closed
Danyzzz opened this issue May 7, 2016 · 6 comments
Closed

Start an external app with component [Shazam app] #50

Danyzzz opened this issue May 7, 2016 · 6 comments

Comments

@Danyzzz
Copy link

Danyzzz commented May 7, 2016

Hi guys,
I would like start a class recognition for shazam app with this parameters:

var sApp = startApp.set({
    "component": ["com.shazam.android", "com.shazam.android.intent.actions.START_TAGGING"]
});
sApp.start(function() { /* success */
    console.log("OK");
}, function(error) { /* fail */
    alert(error);
});

But there is an error :( How I can resolve?

img-20160507-wa0003

@lampaa
Copy link
Owner

lampaa commented May 20, 2016

Hi, @Danyzzz
Hmm, I will correct it this weekend.

@Danyzzz
Copy link
Author

Danyzzz commented May 20, 2016

Thanks @lampaa 👍

@Danyzzz
Copy link
Author

Danyzzz commented May 29, 2016

Hi, @lampaa
There are news?

@lampaa
Copy link
Owner

lampaa commented May 30, 2016

Hi, @Danyzzz!
I fixed plugin. Update it from you pc and use this code:

var sApp = startApp.set({
    "intent": "com.shazam.android.intent.actions.START_TAGGING",
    "flags": ["FLAG_ACTIVITY_NEW_TASK"]
}); 

sApp.start(function() { /* success */
    console.log("OK");
    }, function(error) { /* fail */
    alert(error);
});

@Danyzzz
Copy link
Author

Danyzzz commented May 31, 2016

Wow @lampaa, works perfectly!!!! thanks a lot :)
With this fix, it is possible start an alarm clock for the issue #45 ?
Or is necessary a new update?

@lampaa lampaa closed this as completed May 17, 2018
@MCDevelo
Copy link

@lampaa
hi, i want to use you plugin -> com.lampaa.startapp<- but i want to do that on typescript. it is posible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants