-
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
Facebook sharing causes android crash: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference #1095
Comments
Not sure why that's an issue all of the sudden, but please try passing in an empty array to the 'files' property (it's probably 'null' now). |
Thanks for that Eddy. Using the example from the readme I was using Changed it to Still the same problem.
I think the second argument is meant for images and perhaps |
Maybe this commit is the culprit? 2d2c5cd |
I also got the same issue. |
In case anyone else is looking to solve this for recent APIs of Android I fixed using the following: Just for Android
It appears any of the other methods of sharing directly to Facebook inject an error atm. |
I am using Android target level 29 with |
I am using method ACTION_SHARE_VIA_FACEBOOK_WITH_PASTEMESSAGEHINT with this plugin. from to |
…od 'int org.json.JSONArray.length()' on a null object reference #1095
@EddyVerbruggen it seems to be fixed on |
@EddyVerbruggen when 6.0.2 release, thanks. |
@ThangD It's on npm now. |
Can this be added for |
@robvandijk 5.6.8 has been published, but 5.6.9 would be possible if you can create a PR. |
PR just created, thanks for looking into this. |
The error encountered when testing a production build(curious, not emulator) of an apk targeting API 28 returns the following exception when attempting to shareViaFacebook:
The text was updated successfully, but these errors were encountered: