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

How to catch returned back to the app ?? #213

Open
hsynksahin opened this issue Mar 28, 2024 · 1 comment
Open

How to catch returned back to the app ?? #213

hsynksahin opened this issue Mar 28, 2024 · 1 comment

Comments

@hsynksahin
Copy link

This issue is continuation of #155

As it is in the older issue mentioned that we were abel to wait for settings page to be closed and then do some stuff when we return to the app. (I didnt check the older version)

In version 5.1.1 how we can do it too. I've tried the following code piece but awaiting the function or using .then will not work as I tought. Its just continuing right after opening settings page. Is there any way to wait for settings page being closed and returning to the app except for listening for an Android Intent?

AppSettings.openAppSettings(
    type: AppSettingsType.settings,
    asAnotherTask: false, // same with true
  ).then((_) {
    Log.info('Back from settings');
    return false; // will check if the location permission given here
  })
@yanshi2516
Copy link

I am also facing the same issue. Any solution?

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

2 participants