<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: React Native events no reaching Dynatrace Platform in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/302793#M7429</link>
    <description>&lt;P&gt;Please reach out to &lt;A href="https://support.dynatrace.com" target="_self"&gt;Dynatrace Support&lt;/A&gt; for such issues.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2026 06:29:41 GMT</pubDate>
    <dc:creator>Patrick_H</dc:creator>
    <dc:date>2026-08-04T06:29:41Z</dc:date>
    <item>
      <title>React Native events no reaching Dynatrace Platform</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/302193#M7427</link>
      <description>&lt;P&gt;I have a React Native app with the following configuration:&lt;/P&gt;
&lt;P&gt;dynatrace.config.js:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;module.exports = {
react: {
debug: true,
lifecycle: {
/**
* Decide if you want to see Update Cycles as well
*/
includeUpdate: false,

/**
* Filter for Instrumenting Lifecycle of Components / True = Will be instrumented
*/
instrument: (filename) =&amp;gt; {
return false;
},
},
input: {
/**
* Allows you to filter the instrumentation for touch events, refresh events and picker events in certain files
* True = Will be instrumented
*/
instrument: (filename) =&amp;gt; {
return true;
},
},
},
android: {
// Those configs are copied 1:1
config: `
dynatrace {
configurations {
defaultConfig {
autoStart {
applicationId 'XXXXXXXXXXXXXXXXXXXXX'
beaconUrl 'https://XXXXXXX.bf.dynatrace.com/mbeacon'
}
userOptIn true
agentBehavior.startupLoadBalancing true
agentBehavior.startupWithGrailEnabled true
sessionReplay.enabled false
}
}
}
`,
},
ios: {
// Those configs are copied 1:1
config: `
&amp;lt;key&amp;gt;DTXApplicationID&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;XXXXXXXXXXXXXXXXXXXXX&amp;lt;/string&amp;gt;
&amp;lt;key&amp;gt;DTXBeaconURL&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;https://XXXXXXX.bf.dynatrace.com/mbeacon&amp;lt;/string&amp;gt;
&amp;lt;key&amp;gt;DTXLogLevel&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;ALL&amp;lt;/string&amp;gt;
&amp;lt;key&amp;gt;DTXUserOptIn&amp;lt;/key&amp;gt;
&amp;lt;true/&amp;gt;
&amp;lt;key&amp;gt;DTXStartupLoadBalancing&amp;lt;/key&amp;gt;
&amp;lt;true/&amp;gt;
&amp;lt;key&amp;gt;DTXStartupWithGrailEnabled&amp;lt;/key&amp;gt;
&amp;lt;true/&amp;gt;
`,
},
};&lt;/LI-CODE&gt;
&lt;P&gt;Within the babel.config.js configuration I have:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: ['react-native-reanimated/plugin', '@dynatrace/react-native-plugin/instrumentation/BabelPluginDynatrace']
};&lt;/LI-CODE&gt;
&lt;P&gt;In my build.gradle file I have:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "28.0.12433566"
kotlinVersion = "2.0.21"

androidXAnnotation = "1.2.0"
androidXBrowser = "1.8.0"
}
repositories {
google()
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath 'com.google.gms:google-services:4.4.1'
classpath "com.dynatrace.tools.android:gradle-plugin:8.341.1.1004"
}
}
apply plugin: "com.facebook.react.rootproject"
&lt;/LI-CODE&gt;
&lt;P&gt;The functions I have defined to use within the app are:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;export const dynatraceStart = () =&amp;gt; {
const privacyConfig = new UserPrivacyOptions(DataCollectionLevel.Performance, true);
Dynatrace.applyUserPrivacyOptions(privacyConfig);
};

export const dynatraceReportString = (actionName: string, actionValue: string) =&amp;gt; {
const myAction = Dynatrace.enterManualAction(actionName);
myAction.reportStringValue(actionName, actionValue);
myAction.leaveAction();
};

export const dynatraceAsyncReportString = async (actionName: string, actionValue: string) =&amp;gt; {
setTimeout(() =&amp;gt; {
const myAction = Dynatrace.enterManualAction(actionName);
myAction.reportStringValue(actionName, actionValue);
myAction.leaveAction();
}, 1500);
};

export const dynatraceReportEvent = (eventName: string) =&amp;gt; {
const myAction = Dynatrace.enterManualAction(eventName);
myAction.reportEvent(eventName);
myAction.leaveAction();
};

export const dynatraceReportError = (errorName: string, errorCode: number) =&amp;gt; {
const myAction = Dynatrace.enterManualAction(errorName);
myAction.reportError(errorName, errorCode);
myAction.leaveAction();
};

export const dynatraceReportCrash = (crashName: string, reason: string, stacktrace: string) =&amp;gt; {
Dynatrace.reportCrash(crashName, reason, stacktrace);
};

export const dynatraceReportCrashwithException = (crashName: string, crash: Error) =&amp;gt; {
Dynatrace.reportCrashWithException(crashName, crash);
};

export const withMonitoringDynatrace = (Component: any) =&amp;gt; {
Dynatrace.withMonitoring(Component);
};

export const dynatraceIdentifyUser = (user: string) =&amp;gt; {
Dynatrace.identifyUser(user);
};

export const dynatraceGeolocation = (latitude: number, longitude: number) =&amp;gt; {
Dynatrace.setGPSLocation(latitude, longitude);
};

export const dynatraceEndSession = () =&amp;gt; {
Dynatrace.endSession();
};&lt;/LI-CODE&gt;
&lt;P&gt;This configuration correctly reported events to the Dynatrace platform when I had React Native version 0.71. When I updated React Native to 0.78.3 and enabled the new React Native architecture, events stopped reaching the Dynatrace web platform on Android. The Metro console shows that the Dynatrace plugin is responding to user events, BUT those user events are NOT reaching the platform. What could be happening?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2026 07:27:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/302193#M7427</guid>
      <dc:creator>Lucas087</dc:creator>
      <dc:date>2026-08-03T07:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: React Native events no reaching Dynatrace Platform</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/302793#M7429</link>
      <description>&lt;P&gt;Please reach out to &lt;A href="https://support.dynatrace.com" target="_self"&gt;Dynatrace Support&lt;/A&gt; for such issues.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 06:29:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/302793#M7429</guid>
      <dc:creator>Patrick_H</dc:creator>
      <dc:date>2026-08-04T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: React Native events no reaching Dynatrace Platform</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/303002#M7431</link>
      <description>&lt;P&gt;Thank you! I managed to solve it! For some reason in my app, when I tried to apply npx instrumentDynatrace, inside, it didn't apply all the changes inside my android/build.gradle. When I fixed that, the problem disappeared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 20:51:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-events-no-reaching-Dynatrace-Platform/m-p/303002#M7431</guid>
      <dc:creator>Lucas087</dc:creator>
      <dc:date>2026-08-07T20:51:38Z</dc:date>
    </item>
  </channel>
</rss>

