-
Notifications
You must be signed in to change notification settings - Fork 907
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
Problems sharing images with Android(X) #1062
Comments
I managed to remove AndroidX, but still no success. |
I found the solution. In the current |
@vandres I have the same symptoms, (share works fine unless base64 images are passed in) but I have never used (and don't have installed) AndroidX. Were you able to get this working, and if so, did you have to do anything else besides remove AndroidX? Manual edits of AndroidManifest for example? (for reference, my Ionic info)
|
@viking2917 We had a
Because the SocialPlugin also wants to write to this file, it gives a "conflict" (Bug) and only the config.xml changes will be taken. This is what the plugin.xml tries to do:
If you look into the generated AndroidManifest.xml in |
@vandres thanks for the quick response! I will have a look and see if this fixes my issue. |
@vendres that did the trick, thank you!!! My AndroidManifest was missing the
Manually adding that allowed images to share. As it happens I had the email composer plugin which was conflicting. I don't use it any more, so I removed it, and then don't even need the manual edits. Thanks! |
Good to hear :) |
no that is not solution for me , because there is FILE_PROVIDER_PATHS on my androidmanifest and i cannot build or run my app on devices |
@chandraahmad I also had FILE_PROVIDER_PATHS in my androidmanifest; I am not quite sure why your situation might be different from mine. In any case it's been some time since I did this and I have forgotten the details; the main thing is, there does seem to be a bug where config.xml/plugin.xml declarations sometimes do not make their way into the final androidmanifest and in my case the solution was to hand edit the androidmanifest file (yuck) to make sure I had all needed declarations, solve the problem. Your needed edits might be different... |
For one of our plugins I needed to upgrade all dependencies which also included cordova-android 8.1 and AndroidX.
Now we have trouble to get the sharing work on Android, if the share includes images. Without images, the share works fine.
The text was updated successfully, but these errors were encountered: