elizabethrego / cordova-plugin-instabug

Integrate the Instabug SDK in your hybrid app.
14 stars 5 forks source link

App crash when network switched on android #8

Open sumanth-pai opened 8 years ago

sumanth-pai commented 8 years ago

First of all I want to thank you for the plugin which is very easy to integrate, lot of API's to play with and well documented.

I am evaluating Instabug to see whether it meets our requirement and in love with it. I am developing an enterprise smart HR app for the employees of an organization. I have successfully integrated the plugin and most of functionality seems to work as expected in both android and iOS apart from this one issue.

This is a consistent issue in android and facing this when I switch the network ( either wifi-wifi or wifi-3g/4g ). Here are the logs. Any help would be highly appreciated.

Java.lang.RuntimeException: Unable to instantiate receiver com.instabug.library.network.InstabugNetworkReceiver: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.dutech.maktabi.dutl1098-2/base.apk"],nativeLibraryDirectories=[/data/app/com.dutech.maktabi.dutl1098-2/lib/arm64, /vendor/lib64, /system/lib64]]

capture

tamerbak commented 8 years ago

Same issue, I think the problem is that when the device is not connected, instabug crashes, even a connection type change (your case) causes a problem. I tried to manage the connection status => if there is no connection, I don't initialize the plugin. But it was in vain.

elizabethrego commented 8 years ago

I've seen this error as well, and Instabug support said it had to do with multidex not being enabled. However others have reported that that didn't fix the issue. I think going back to their support is the best bet, they are supposedly working on an official Cordova plugin and may have encountered the same thing.

tamerbak commented 8 years ago

Thank you @elizabethrego I've noticed them, and waiting for a answer. I 'll keep you informed.

alexplummer commented 7 years ago

Did you ever find a solution to the issue, I am having the same problem, causing ongoing crashes.