21 Jun 2023
10:18 PM
- last edited on
22 Jun 2023
08:19 AM
by
MaciejNeumann
How to add the Dynatrace application ID's dynamic to the environments such as dev, int, and preprid for the ios config in the dynatrace.config.js file.
22 Jun 2023 08:33 AM
Hello Arajanna,
when you create the application, you will get the file auto-configured with the application details and endpoint. if you targeting different environments, so it's recommended to create separate applications for each environment. below is a sample of ios configuration part in dynatrace.config.js file:
ios : {
config : `
<key>DTXApplicationID</key>
<string>xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx</string>
<key>DTXBeaconURL</key>
<string>https://xxxxxxx.dynatrace.com/mbeacon</string>
<key>DTXLogLevel</key>
<string>ALL</string>
<key>DTXUserOptIn</key>
<false/>
<key>DTXStartupLoadBalancing</key>
<true/>
`
}
hope that helps!
Thanks,
Islam