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

APP - different ANDROID versions, different behavior #11

Open
AlexanderMaydorf opened this issue Jan 28, 2024 · 4 comments
Open

APP - different ANDROID versions, different behavior #11

AlexanderMaydorf opened this issue Jan 28, 2024 · 4 comments

Comments

@AlexanderMaydorf
Copy link

AIR SDK 50.2.4.3
ANIMATE 2024
ANDROID SDK 33 / BUILD TOOLS 33

ANDROID 11

After displaying the SYSTEM authorization screen - and switching to "ON" - APP restarts - but "installing unknown apps" is granted.

ANDROID 13

SYSTEM authorization screen is showing up, but app runs and goes forwards without waiting or checking response.

@AlexanderMaydorf AlexanderMaydorf changed the title APP - different ANDROID versions, different behaivors APP - different ANDROID versions, different behavior Jan 28, 2024
@marchbold
Copy link
Contributor

Can you elaborate some more on exactly what you are doing? Some code can help demonstrate the issue.

@AlexanderMaydorf
Copy link
Author

AlexanderMaydorf commented Jan 28, 2024

if ( PackageManager.isSupported){
  if (!PackageManager.service.canRequestApplicationInstalls){
    PackageManager.service.showManageUnknownAppSourcesSettings();
  }
}

That's it.

ANDROID 11 tablet:

System screen will show up - APP is doing nothing
after switching permission for "install unknown apps" ON - app restarts

ANDOID 13 tablet:

System screen will show up - APP is going on (because I do this at initialisation -next steps will executed
after switching permission for "install unknown apps" ON - app is still running...


I guess the "restart" is not "normal".
But what about the "running in background" while user gives permission ... is there no listener for this?

When I grant total file access - a similar looking system screen show up - but here AIR is firing an event, if the user gives permission...

@marchbold
Copy link
Contributor

App restarting after changing certain permissions is normal and is controlled by the android system so can be different between versions of android.

Regarding a callback, as far as I know this particularly change doesn't have a callback. You would have to use normal app activation events after calling it to check the permission again.

This is one of those non standard permissions that sits outside the normal permissions flow.

@AlexanderMaydorf
Copy link
Author

AlexanderMaydorf commented Jan 29, 2024 via email

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