EddyVerbruggen / SocialSharing-PhoneGap-Plugin

πŸ‘¨β€β€οΈβ€πŸ’‹β€πŸ‘¨ Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 908 forks source link

Problem sharing images - panel opens, then whatsapp open fails #1071

Closed ttthub closed 4 years ago

ttthub commented 4 years ago

➜ ionic info

Ionic:

Ionic CLI : 5.4.2 Ionic Framework : @ionic/angular 4.9.0 @angular-devkit/build-angular : 0.801.3 @angular-devkit/schematics : 8.1.3 @angular/cli : 8.1.3 @ionic/angular-toolkit : 2.0.0

Cordova:

Cordova CLI : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 28 other plugins)

Utility:

cordova-res : 0.6.0 (update available: 0.8.0) native-run : 0.2.8 (update available: 0.2.9)

System:

Android SDK Tools : 26.1.1 ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v10.16.3 npm : 6.9.0 OS : macOS Catalina Xcode : Xcode 11.1 Build version 11A1027

cordova-plugin-x-socialsharing 5.6.1 "SocialSharing"

When trying to share image with text, the share panel opens. Then on selecting whatsapp, this error occurs:

Share panel open failed: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference

nvwebm commented 4 years ago

Hi, I'm dealing with the same issue, someone has ideas?

guy-keller commented 4 years ago

Hi @ttthub ,

Have a look at issue #1026 it seems like the same exception. It also has a workaround, hope this helps.

Cheers!

ttthub commented 4 years ago

Apologies I should have updated here, we indeed resolved it using the workaround on #1026

Thank you