-
Notifications
You must be signed in to change notification settings - Fork 1
Features not working on dashboard #2
Comments
@taku-ka Android instrumentation gets injected by a gradle task and there is no equivalent of that inXamarin. You will need to add the instrumentation manually in Android |
Any idea of where the Gradle adds the hooks for these crash handlers etc? I'd be willing to try hook those up somehow.
But it feels like there should be easier and better hooks for that? Potentially the configuration that defines the stores and add to those? Or am I too far off. |
I think you are on the right track. I have not looked at if xamarin has ways of adding gradle tasks recently, so if there is a hook mechanisms, please link the relevant examples/strategies on how to do it, Thanks |
@vvydier not gradle as such no. but we do have things like Fody Weaver which can inject code at build time or generate/inject code by modifying the csproj files etc. that said you can launch external tasks from there as well. it just depends on what those tasks are. im not sure where the source of the gradle files for mobile are so that i can see if they can translate to xamarin or if they can be added as post/pre compile tasks. Note i'm not great at gradle but willing to give it a shot. alternatively if we can expose the sendcrash methods or something for noticing errors and http messages etc then we can just work with xamarin hooks on those as well. |
@emanuelbalea I have not used Fody Weaver, can you point me to an example how you plan on adding auto-instrumentation in xamarin |
Adding/creating a weaver is not overly difficult, depending on if you just need to inject some C# files to get compiled, or replace files at compile time but if you inject IL it can get a bit messier. Another way to do this is to use roslyn generators but i think they are slightly more complicated. The problem is I don't know what hooks you had in gradle or what they did to point you in their equivalent places but in general if there is an android/ios api then there will be a xamarin counter part. So if you can point me to where the gradle does stuff i could help more. In general for xamarin regardless of the platform you usually do your init and hook up with calls in oncreate in the application or similar unless you inject using something fody in the same place. https://github.com/Fody/Home/blob/master/pages/addin-development.md However i made android bindings for a version of the jar file from about 1-2 major release ago (current release had lots of changed namespaces and didn't have the time to add them to the transform or ignore list) and that seems to record exceptions just fine, and even some ui transitions. |
@emanuelbalea @taku-ka please check our latest offerings for Xamarin. https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-xamarin/monitor-your-xamarin-application/ |
I can see Android and iOS app on the dashboard but I notice the following:
Crashes are not working - I crash the app for both Android and iOS but no crushes recorded
HTTP errors and network failure rate is not working in Android but is working in iOS
App Launches is working for both Android and iOS
HTTP response time is not working for Android but its working for iOS
Most frequent interactions is not working for Android but its working for iOS.
Handle exceptions is not working for both Android and iOS
The text was updated successfully, but these errors were encountered: