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

Ionic: Background mode does not work in Android 12 with API level 31 #574

Open
Topiya opened this issue Oct 14, 2022 · 8 comments
Open

Ionic: Background mode does not work in Android 12 with API level 31 #574

Topiya opened this issue Oct 14, 2022 · 8 comments

Comments

@Topiya
Copy link

Topiya commented Oct 14, 2022

I have an Ionic 5 app with Audio player which allows user’s to play audio even if the app is in background using Ionic Background mode plugin

Above requirement works fine in API level 30. But after using API level 31, Ionic Background mode plugin doesn’t work in Android 12.

Can any one please suggest me to solve this issue?

@brunochikuji
Copy link

I have the same problem, the bad thing is that this plugin is no longer being maintained and updated.

On August 9th, a pull request was opened with the fix, but @katzer doesn't seem to look at this plugin anymore.

One solution is to find a new plugin or fork it by applying the fix.

@Topiya
Copy link
Author

Topiya commented Oct 28, 2022

@brunochikuji
Thanks for the reply.

One solution is to find a new plugin or fork it by applying the fix.

Here which fix you are telling me to apply?

@ChandraTejoma
Copy link

Does not seem to work on Android anymore... I am using Ionic 6 with capacitor 4.4.0 (tried with 4.2.0 as well) ... Crashes on Android whereas works fine on iOS.

@atmanegara
Copy link

@ttimot24
Copy link

ttimot24 commented Jan 9, 2023

Did you find any solution? For me this is a project breaker, any idea?

@alindzon
Copy link

alindzon commented Jan 9, 2023

I think i did. Android the fix was simple, iOS does not seem to work anymore.
see https://github.com/katzer/cordova-plugin-background-mode/issues/576

@ttimot24
Copy link

ttimot24 commented Jan 11, 2023

Thank you @alindzon!

It still not working for me. Is it working with sdk version 33? I'm not sure if I modified a the correct thing. Can you please create a pull request, where I can see the exact differences?

@ArvyRogerio
Copy link

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

7 participants