Onboarding
1. Create an account
Section titled “1. Create an account”Sign up in the Mobore web app and complete auth. Once signed in, open Dashboard → Onboarding.
2. Generate your client token
Section titled “2. Generate your client token”From Dashboard → Settings → Client Token, copy your token. You’ll use it in the SDK.
3. Install the SDK
Section titled “3. Install the SDK”Use your preferred React Native setup.
npm install @mobore/rum-react-native @react-native-community/netinfo react-native-device-infoExpo:
expo install @mobore/rum-react-native @react-native-community/netinfo react-native-device-info4. Quick start (React Navigation)
Section titled “4. Quick start (React Navigation)”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();});5. Send backend telemetry (optional)
Section titled “5. Send backend telemetry (optional)”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());6. Verify data flow
Section titled “6. Verify data flow”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.