23 Sep 2019 07:21 AM
I am trying to turn off the data collection in Xamarin Forms App as shown below
IDynatrace dynatrace = DependencyService.Get<IDynatrace>();
dynatrace?.SetDataCollectionLevel(DataCollectionLevel.OFF);
The above statements throws an InvalidCastException.
I came across a support documentation which mentions that this method can only be used, when the agent is started with the user optin feature by method ConfigurationBuilder.withUserOptIn(boolean)
or property ConfigurationBuilder.PROP_USER_OPT_IN
. I am unable to optin using the ConfigurationBuilder since it is not available. Looks like ConfigurationBuilder is not available in the Dynatrace.OneAgent.Xamarin package.
Any support to solve the issue is highly appreciated. TIA
Solved! Go to Solution.
23 Sep 2019 07:31 AM
I will take a look and get back to you.
23 Sep 2019 12:55 PM
I found the problem and I have already a fix for it. Can you give me a mail address so we can shortly test the fix before releasing it. Thanks.
23 Sep 2019 01:48 PM
Thanks for the quick fix.