question

Jian T. avatar image
Jian T. asked ·

dynatrace.properties has not been generated by using "Cordova prepare" command

The Dynatrace document shows that we need to use "cordova build android" or "cordova build ios" to build Cordova mobile app. However, customer's development environment used "cordova prepare" to bundle all of their scripts to build the codes. As a result, dynatrace.properties has not been generated by using "Cordova prepare" command. I can not see the dynatrace.properties under asset folder in APK. But I can see all of the Dynatrace Cordova plugin methods in APK. So I would like to ask what is the difference between "cordova build android/ios" and "cordova prepare" when it comes to dynatrace.config? Would it affect the creation of dynatrace.properties? Thank you.

configurationextensionsRUMandroidmobileapp
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Matthias H. avatar image
Matthias H. answered ·

I want to understand how your customer is using his application. So "cordova prepare" should trigger our plugin as well, but it will only download and copy the JSAgent into your platform. You are right that nothing more happens. So if your customer is afterwards using the project directly via XCode or Android Studio you are of course not able to use the ability of the Cordova Plugin.

Workaround: You need to include the Mobile Agent in your native projects manually (e.g. in Android insert the agent in the gradle files like you have a real Android application). This will change in the future as we want to include the 8.x Mobile Agent in the Cordova plugin as well, so your case should be then supported out of the box. But I can't give you a timeframe for this change.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Thanks for your quick response. Customer is going to build the Apps by using native method. Thank you.

0 Likes 0 · ·
Sebastian K. avatar image
Sebastian K. answered ·

Did you try using "cordova prepare android"?

Sebastian

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions session replay diagnostic tools permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android