Issue
I have been following the capacitor community http for ionic capacitor http calls in native. https://www.npmjs.com/package/@capacitor-community/http
I have tried the same in android emulator and device. However it gives java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator com.getcapacitor.JSObject.keys() on a null object reference.
More Info on the error as below
result Http.get ERROR Error: NullPointerException at returnResult at win.androidBridge.onmessage
Note: I am using get method as per the documentation
Appreciate your response.
Using the below dependencies:
"@capacitor/android": "5.0.4", "@capacitor/app": "5.0.2", "@capacitor/core": "5.0.4",
Solution
That plugin has been revamped to official capacitor core plugin: CapacitorHttp
Answered By - StackoverBlows
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.