Skip to content

Onboarding

Sign up in the Mobore web app and complete auth. Once signed in, open Dashboard → Onboarding.

From Dashboard → Settings → Client Token, copy your token. You’ll use it in the SDK.

Use your preferred React Native setup.

Terminal window
npm install @mobore/rum-react-native @react-native-community/netinfo react-native-device-info

Expo:

Terminal window
expo install @mobore/rum-react-native @react-native-community/netinfo react-native-device-info
import { RumProvider } from '@mobore/rum-react-native';
import { NavigationContainer, useNavigationContainerRef } from '@react-navigation/native';
export default function App() {
const navigationRef = useNavigationContainerRef();
return (
<RumProvider
config={{ clientToken: 'YOUR_CLIENT_TOKEN' }}
ref={navigationRef}
>
<NavigationContainer ref={navigationRef}>{/* your app */}</NavigationContainer>
</RumProvider>
);
}

Expo Router:

import { RumProvider } from '@mobore/rum-react-native';
import { useNavigationContainerRef } from 'expo-router';
export default function RootLayout() {
const navigationRef = useNavigationContainerRef();
return (
<RumProvider config={{ clientToken: 'YOUR_CLIENT_TOKEN' }} ref={navigationRef}>
{/* app layout */}
</RumProvider>
);
}

Manual initialization:

import RUM, { AutoInstrumentation } from '@mobore/rum-react-native';
RUM.initialize({ clientToken: 'YOUR_CLIENT_TOKEN' }).then(() => {
AutoInstrumentation.start();
});

To correlate mobile sessions with backend traces:

import { NodeSDK } from '@opentelemetry/sdk-node';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto';
const traceExporter = new OTLPTraceExporter({
url: 'https://traces.mobore.com/v1/traces',
headers: { authorization: 'YOUR_CLIENT_TOKEN' },
});
// Beta endpoint alternative (supports GRPC and JSON):
// url: 'https://raw.mobere.com'
const sdk = new NodeSDK({ traceExporter, serviceName: 'my-backend-service' });
sdk.start();
process.on('SIGTERM', () => sdk.shutdown());

Return to the Dashboard. Once the app starts sending data, you’ll see sessions, errors, and crashes. If nothing appears, check the token, network connectivity, and reinstall the app in development.