elizabethrego / cordova-plugin-instabug Goto Github PK
View Code? Open in Web Editor NEWIntegrate the Instabug SDK in your hybrid app.
Integrate the Instabug SDK in your hybrid app.
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]]
I have a Pro account and am getting the following error:
Uncaught TypeError: cordova.plugins.instabug.setUserData is not a function
I don't get this error for any other Pro features
When phonegap-plugin-push is instaled, instabug crashes the app when a notification arrives.
Issue is related to this bug on instabug: Instabug/Instabug-iOS#51
The fix would be to update the instabug version. (from 5.0.0 to 5.X)
Here's my recent crash log. Any suggestions?
--------- beginning of crash
05-30 20:12:47.640 E/AndroidRuntime(24414): FATAL EXCEPTION: main
05-30 20:12:47.640 E/AndroidRuntime(24414): Process: com.appname.private, PID: 24414
05-30 20:12:47.640 E/AndroidRuntime(24414): 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.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2724)
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.app.ActivityThread.-wrap14(ActivityThread.java)
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431)
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.os.Handler.dispatchMessage(Handler.java:102)
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.os.Looper.loop(Looper.java:148)
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.app.ActivityThread.main(ActivityThread.java:5443)
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.reflect.Method.invoke(Native Method)
05-30 20:12:47.640 E/AndroidRuntime(24414): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
05-30 20:12:47.640 E/AndroidRuntime(24414): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-30 20:12:47.640 E/AndroidRuntime(24414): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-30 20:12:47.640 E/AndroidRuntime(24414): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
05-30 20:12:47.640 E/AndroidRuntime(24414): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2719)
05-30 20:12:47.640 E/AndroidRuntime(24414): ... 8 more
05-30 20:12:47.640 E/AndroidRuntime(24414): Suppressed: java.lang.ClassNotFoundException: com.instabug.library.network.InstabugNetworkReceiver
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.Class.classForName(Native Method)
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
05-30 20:12:47.640 E/AndroidRuntime(24414): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-30 20:12:47.640 E/AndroidRuntime(24414): ... 10 more
05-30 20:12:47.640 E/AndroidRuntime(24414): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
05-30 20:12:51.066 E/AndroidRuntime(24574): FATAL EXCEPTION: main
05-30 20:12:51.066 E/AndroidRuntime(24574): Process: com.appname.private, PID: 24574
05-30 20:12:51.066 E/AndroidRuntime(24574): 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.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2724)
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.app.ActivityThread.-wrap14(ActivityThread.java)
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431)
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.os.Handler.dispatchMessage(Handler.java:102)
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.os.Looper.loop(Looper.java:148)
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.app.ActivityThread.main(ActivityThread.java:5443)
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.reflect.Method.invoke(Native Method)
05-30 20:12:51.066 E/AndroidRuntime(24574): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
05-30 20:12:51.066 E/AndroidRuntime(24574): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-30 20:12:51.066 E/AndroidRuntime(24574): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-30 20:12:51.066 E/AndroidRuntime(24574): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
05-30 20:12:51.066 E/AndroidRuntime(24574): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2719)
05-30 20:12:51.066 E/AndroidRuntime(24574): ... 8 more
05-30 20:12:51.066 E/AndroidRuntime(24574): Suppressed: java.lang.ClassNotFoundException: com.instabug.library.network.InstabugNetworkReceiver
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.Class.classForName(Native Method)
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
05-30 20:12:51.066 E/AndroidRuntime(24574): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-30 20:12:51.066 E/AndroidRuntime(24574): ... 10 more
05-30 20:12:51.066 E/AndroidRuntime(24574): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
05-31 16:14:10.081 E/AndroidRuntime(32208): FATAL EXCEPTION: main
05-31 16:14:10.081 E/AndroidRuntime(32208): Process: com.appname.private, PID: 32208
05-31 16:14:10.081 E/AndroidRuntime(32208): 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.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2724)
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.app.ActivityThread.-wrap14(ActivityThread.java)
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431)
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.os.Handler.dispatchMessage(Handler.java:102)
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.os.Looper.loop(Looper.java:148)
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.app.ActivityThread.main(ActivityThread.java:5443)
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.reflect.Method.invoke(Native Method)
05-31 16:14:10.081 E/AndroidRuntime(32208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
05-31 16:14:10.081 E/AndroidRuntime(32208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-31 16:14:10.081 E/AndroidRuntime(32208): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-31 16:14:10.081 E/AndroidRuntime(32208): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
05-31 16:14:10.081 E/AndroidRuntime(32208): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2719)
05-31 16:14:10.081 E/AndroidRuntime(32208): ... 8 more
05-31 16:14:10.081 E/AndroidRuntime(32208): Suppressed: java.lang.ClassNotFoundException: com.instabug.library.network.InstabugNetworkReceiver
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.Class.classForName(Native Method)
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
05-31 16:14:10.081 E/AndroidRuntime(32208): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-31 16:14:10.081 E/AndroidRuntime(32208): ... 10 more
05-31 16:14:10.081 E/AndroidRuntime(32208): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
05-31 16:14:15.647 E/AndroidRuntime( 7146): FATAL EXCEPTION: main
05-31 16:14:15.647 E/AndroidRuntime( 7146): Process: com.appname.private, PID: 7146
05-31 16:14:15.647 E/AndroidRuntime( 7146): 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.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2724)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.app.ActivityThread.-wrap14(ActivityThread.java)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.os.Handler.dispatchMessage(Handler.java:102)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.os.Looper.loop(Looper.java:148)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.app.ActivityThread.main(ActivityThread.java:5443)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.reflect.Method.invoke(Native Method)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-31 16:14:15.647 E/AndroidRuntime( 7146): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.appname.private-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appname.private-1/lib/arm, /vendor/lib, /system/lib]]
05-31 16:14:15.647 E/AndroidRuntime( 7146): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2719)
05-31 16:14:15.647 E/AndroidRuntime( 7146): ... 8 more
05-31 16:14:15.647 E/AndroidRuntime( 7146): Suppressed: java.lang.ClassNotFoundException: com.instabug.library.network.InstabugNetworkReceiver
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.Class.classForName(Native Method)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
05-31 16:14:15.647 E/AndroidRuntime( 7146): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-31 16:14:15.647 E/AndroidRuntime( 7146): ... 10 more
05-31 16:14:15.647 E/AndroidRuntime( 7146): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
I just communicated with Instabug as I was getting a bug:
Instabug.getInstance(); is not a public method.
They replied:
We stopped using Instabug.getInstance() since v2 of instabug. Now you should use only Instabug. directly.
I'm trying to use your plugin with my phonegap app.
I just added it like this:
cordova plugin add https://github.com/elizabethrego/cordova-plugin-instabug/
... but it still isn't loaded in cordova.plugins.instabug
What else do I have to add in order to load it?
Do I need to declare something in the config.xml file?
Do I have to add something in the html file?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.