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

Application not launched when not in background #8

Open
smildev opened this issue Feb 11, 2022 · 5 comments
Open

Application not launched when not in background #8

smildev opened this issue Feb 11, 2022 · 5 comments

Comments

@smildev
Copy link

smildev commented Feb 11, 2022

Hi.

I have a problem for launching an app when not int background.

We use awsomeNotification to customize some notification.
When a notification is received, we also simulate a phone call.
Then, when user accept the phone call we launch the app.

When the application is in background, its works, but when the application is not launched, its not working :(.

Have you got any solution .

Thanks for your feedback.

@Gayathri-GA
Copy link
Contributor

Hi @smildev ,
Thanks for posting the issue.

Need some details on the same.
Can you please try out and post screenshot ,by creating a bool variable which will keep tracking of all your background or foreground process. So that we can able to identify the cause for app in its not working state.

@smildev
Copy link
Author

smildev commented Feb 14, 2022

Hi,
Thanks for your answer.

I don't understand what you want me to do "by creating a bool variable which will keep tracking of all your background or foreground process".

Sorry, i'm just starting flutter/mobile dev.

Thanks.

@Gayathri-GA
Copy link
Contributor

@smildev
You can have a conditional(Bool) variable to check if the app is in its background or foreground state and then define your action which you want the app to perform in both distinct states.

@smildev
Copy link
Author

smildev commented Feb 15, 2022

So i tracked my application state.
First of all, I execute app_launcher from a background service.

When my application is in background (state DETACHED) i'm able to launch my application.
But when my application is not launched (state INACTIVE) i can't launch it, i try to launch another application without any result.

In both case, external_app_launcher is executed and its callback value is "app_opened".

(Xiaomi mi 9 - Android 10)

@kustraslawomir
Copy link

So i tracked my application state. First of all, I execute app_launcher from a background service.

When my application is in background (state DETACHED) i'm able to launch my application. But when my application is not launched (state INACTIVE) i can't launch it, i try to launch another application without any result.

In both case, external_app_launcher is executed and its callback value is "app_opened".

(Xiaomi mi 9 - Android 10)

Have you solved this?

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