Hi all,
I have built and published my app in google playstore. Recently one of our user who uses Samsung Galaxy 3 reported that App is crashing frequently. Since Xamarin Insights is under renovation I couldn't track more details, so I checked in to google developer console for crash reports and found below exception. I know the exception straight forwardly tells me to initialize Xamarin.Insights which I do, the exception is only thrown on this device (I have couple of samsung devices so it doesn't show any error or exception). Pasted the exception below. Any help is appreciated.
Note: I'm unable to reproduce it from my end. And also for end user it happens randomly.
`java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
... 2 more
Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.InvalidOperationException: You MUST call Xamarin.Insights.Initialize(); prior to using it.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0 (object) <0x0003f>
at Android.App.SyncContext/c__AnonStorey0.<>m__0 () <0x00027>
at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
at (wrapper dynamic-method) object.a951ca99-8bb3-41e3-98ed-f02b0a99c204 (intptr,intptr) <0x0003b>
at mono.java.lang.RunnableImplementor.n_run(Native Method)
at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4895)
... 5 more`