# Xamarin For Android & iOS App Auto Instrumentation

**URL:** <https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775>\
**Category:** Real User Monitoring\
**Tags:** faq, mobile-monitoring, dynatrace-mobile-app, documentation, oneagent-sdk\
**Created:** [December 18, 2019, 8:40am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775 "2019-12-18T08:40:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 18, 2019, 8:40am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/1 "2019-12-18T08:40:08Z")

</div>

Hello there, I am getting started for instrumentation of a mobile app which is based on Xamarin Android (and IOS). Wanted to know if auto instrumentation is supported on OneAgent SaaS and if not, is there a guide for manual instrumentation ?

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [December 18, 2019, 8:52am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/2 "2019-12-18T08:52:35Z")

</div>

Hello Rajesh!

You can find the guide for auto instrumentation for Android here:

> **[Instrument Android apps in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-android-app)**
>
> Learn how to instrument mobile application monitoring on Android, how to customize instrumentation and more.

And for the auto instrumentation for iOS, the documentation is here:

> **[Set up OneAgent for your iOS apps in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-ios-app/instrumentation/dynatrace-auto-instrumentation-for-ios)**
>
> Set up user experience monitoring for iOS apps within Dynatrace.

There is also a guide for manual instrumentation for Android here:

> **[Instrument Android apps in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-android-app)**
>
> Learn how to instrument mobile application monitoring on Android, how to customize instrumentation and more.

Is this what are you looking for?

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 18, 2019, 9:00am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/3 "2019-12-18T09:00:22Z")

</div>

Hi Maciej, Thank you for the links. I found something which I was looking for was this: [https://www.dynatrace.com/support/help/technology-support/application-software/other-technologies/supported-out-of-the-box/xamarin/?android\<-\>ios=ios](https://www.dynatrace.com/support/help/technology-support/application-software/other-technologies/supported-out-of-the-box/xamarin/?android%3c-%3eios=ios)

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 18, 2019, 9:36am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/4 "2019-12-18T09:36:48Z")

</div>

Also, I am unable to find the below 3 settings:

- DTXAgentEnvironment
- DTXApplicationID
- DTXClusterURL

Where can I find these, Please help.

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [December 18, 2019, 9:45am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/5 "2019-12-18T09:45:12Z")

</div>

On the page with advanced android settings you can find that:

> **[Instrument Android apps in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-android-app)**
>
> Learn how to instrument mobile application monitoring on Android, how to customize instrumentation and more.

“DTXAgentEnvironment - This key’s value is used to identify your environment within Dynatrace. Auto-instrumentation issues an error if the key is not present. **Note: This key is deprecated. Use DTXBeaconURL instead.** ”

“DTXClusterURL - The address to the Dynatrace cluster. The value needs to start with the transport mechanism to use (http:// or https://). **Note: This key is deprecated. Use DTXBeaconURL instead.** ”

Not sure about the “DTXApplicationID” though.

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 18, 2019, 10:36am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/6 "2019-12-18T10:36:57Z")

</div>

Thanks for link, Got It [@Maciej N.](https://answers.dynatrace.com/users/36082/view.html) !

DTXApplicationID looks like some GUID and beaconUrl is some URL hosted on ‘https://\*.bf.dynatrace.com/mbeacon’

(added for reference)

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 19, 2019, 4:58am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/7 "2019-12-19T04:58:34Z")

</div>

Hi Maciej, Any reason why URL reads - ‘legacy-documentation’? Is it going to be deprecated?

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 19, 2019, 8:08am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/8 "2019-12-19T08:08:53Z")

</div>

Can someone please help with API documentation (Objects, Methods etc.). I can’t find anywhere 😞

Nuget Documentation is not helpful.

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 19, 2019, 8:40am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/9 "2019-12-19T08:40:21Z")

</div>

Followed this [blog](https://www.dynatrace.com/news/blog/monitor-your-xamarin-apps-with-dynatrace-oneagent/) but getting error while running build. Error Screenshots: What’s wrong :S ?

 ![22987-error-xamarin.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/af742cf116048d256289f2f2901c6b452dfdb36f.png)

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [December 19, 2019, 11:22am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/10 "2019-12-19T11:22:12Z")

</div>

I have tried your exact example and it works for me. Can you open a support case and give me the test project? So I can try it 1:1 ? Thanks.

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [December 19, 2019, 11:22am UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/11 "2019-12-19T11:22:30Z")

</div>

We are already aware of this problem. We are working on this. Problem with NuGet is that they have a limit for the length of the documentation. That’s why we can only put in the most important stuff.

---

<div class="post-metadata">

**Author:** ![dpunz](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dpunz](https://community.dynatrace.com/u/dpunz)\
**Post date:** [December 20, 2019, 12:15pm UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/12 "2019-12-20T12:15:36Z")

</div>

Hi Rajesh,

here is an other version of the documentation that was too long to be uploaded to the Nuget repository.

[Xamarin documentation.pdf](https://answers.dynatrace.com/storage/attachments/22999-xamarin-documentation.pdf). Does this help?

Best regards,

Dominik  
[xamarin-documentation.pdf](https://community.dynatrace.com/uploads/short-url/zQfdc2eZWWHmiKIEtkcgWDjKvUA.pdf) (85 KB)

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [December 20, 2019, 12:20pm UTC](https://community.dynatrace.com/t/xamarin-for-android-ios-app-auto-instrumentation/22775/13 "2019-12-20T12:20:26Z")

</div>

Hi Dominik, This looks good, I will share with the dev team and wait for their feedback.

Thanks a lot for swift replay!

Best Regards,

Rajesh
