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

Android physical key returns twice #125

Open
lujian001 opened this issue Dec 13, 2018 · 1 comment
Open

Android physical key returns twice #125

lujian001 opened this issue Dec 13, 2018 · 1 comment

Comments

@lujian001
Copy link

lujian001 commented Dec 13, 2018

hi @lampaa
When I started other apps using com.lampa.startapp, I pressed the Android physical back button to return to my app, but it returned twice.How can I solve it?
my code:

let sApp = startApp.set({
    "action": "ACTION_VIEW",
    "category": "CATEGORY_DEFAULT",
    "type": " text/css",
    "package": scheme,
    "uri": "taobao://" + appleUrl + "",
    "flags": ["FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_NEW_TASK"],
    "intentstart": "startActivity"
})
sApp.start(function(message) {
    // => OK
}, function(error) {
    /* error*/
    alert(error);
});
@lujian001
Copy link
Author

lujian001 commented Dec 13, 2018

The normal situation should be the state of staying away

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

No branches or pull requests

2 participants