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

check if autostart permission is active for my app #61

Closed
Kassan424kh opened this issue Jan 27, 2021 · 1 comment
Closed

check if autostart permission is active for my app #61

Kassan424kh opened this issue Jan 27, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Kassan424kh
Copy link

Kassan424kh commented Jan 27, 2021

Every time i open the app, it would open autostart settings window, how can I check if the autostart permission is selected before open the settings window?
do you have any idea?

class MainActivity : FlutterActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        if (AutoStartPermissionHelper.getInstance().isAutoStartPermissionAvailable(context))
            AutoStartPermissionHelper.getInstance().getAutoStartPermission(context)
    }
}
@judemanutd judemanutd added the duplicate This issue or pull request already exists label Mar 31, 2021
@judemanutd
Copy link
Owner

Closing since this is a duplicate of #4 , given that these aren't standard android apis, there is no way of knowing this information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants