-
Notifications
You must be signed in to change notification settings - Fork 906
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
android 12 fix #1158
android 12 fix #1158
Conversation
Co-authored-by: Jerome Vouillon <[email protected]>
@FilippiMatteo @vouillon you need to add Right now i was handling by adding below code in config.xml
|
any plan for merge to master? |
I second this question! |
Thanks @FilippiMatteo @EddyVerbruggen any plans to merge his PR? |
@EddyVerbruggen Please merge this PR asap. |
does anyone know, when this will be merged? i need this feature to support android 12 |
no one knows... I've already tweeted Eddy but not yet got the reply. The temporary solution is to manually change the code according to this PR every time before building the app in Android Studio, if you use capacitor. |
May I ask which section should this xml stay?
|
Please merge this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EddyVerbruggen Please approve and merge this PR.
Hi @EddyVerbruggen |
This solution works for me. |
Due to the lack of PR merge I forked it and published on NPM as You can use it by installing as I think I'll remove it as soon as this will be merged. |
@Takkuz How about for Capacitor? How to integrate yours to |
Hi, i have the same problem. |
@Takkuz thanks for this! Any chance you can remove the dependency for |
It works great, thanks. But if someone else like a team member clones the code, it doesn't install the same plugin again. It install the older version of the plugin instead of the new one. |
Ok, I should have fixed it. It should be due to the ald ID still used inside plugin section. I don't have it because I don't use the plugin section on config.xml. |
@Takkuz any chance to remove the es6 plugin dependency while your are at it? |
I'm using your plugin without this dependency and it works as expected. I don't think it's needed anymore as all modern browsers supports promises. |
Have the same issue. Guess no one can move this along other than @EddyVerbruggen 😓 I tried the solution frequently suggested here #1158 (comment) but that creates the |
The cordova platform remove android
cordova platform add android@11 Be aware that the newer versions use the java 11 instead of the java 8. @FilippiMatteo I opened a pull on your branch, it's just a fix, since the min SDK version allowed on cordova-android is 22, and the flag |
Hi. I have the latest cordova android, installed like you mentioned. However I do have the problem with android:exported="true". And all this is related to the latest cordova android release AND this plugin not being compatible. Regards. |
Weird it didn't work on the main activity with the newer version (the newer version don't fix the plugin problem only on the main activity ploblem), i've had a lot of problems adding/removing plugins and the platform itself, I would recommend to remove entirely the node_modules, plugins and platforms directories and try add the platform again, solved a lot of problems with that... |
The problem is not on the main activity. The problem is on the activity of the plugin. |
My mistake, I thought was understood that only the Since someone provided an alternative npm package with all the changes, and seen the log on one comment showing that was used the cordova-android 9, I assumed that the problem still happening only could be on the main activity not on this plugin receiver. |
Since the last comments on this are very recent... I guess no updates. This is really bad, because now googleplay requires you to target sdk 31, so this needs to work for the app to be uploaded. |
Android 12 package mentioned here is working as expected and can be used. I have it in production now. |
This fix worked for me. I will also tweet him to merge it |
@EddyVerbruggen can you remove the es6-promise dependency? |
finally merged! |
Awesome news! |
Hi ! I added the differents for activity and receiver in my config.xml Do you have an idea for a solution? |
@idrisAd with version 6.0.4 you should be able to delete those "edit-config" lines you added and it should work without them. Also when upping your target SDK to 31 for android make sure you have Java 11 installed. I had Java 1.8 and it was causing issues building for me. |
Thx @saggio89 ! |
Please merge this small changes for android 12 with build-tools sdk 31.
thank you