getsentry / getsentry/sentry-react-native
Add manual controls for Session Tracking
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 366
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 94
Descripción
**OS:**
- [ ] Windows
- [X] MacOS
- [ ] Linux
**Platform:**
- [X] iOS
- [X] Android
**SDK:**
- [X] `@sentry/react-native` (>= 1.0.0)
- [ ] `react-native-sentry` (<= 0.43.2)
**SDK version:** 1.4.5
`react-native` version: 0.62.2
**Are you using Expo?**
- [ ] Yes
- [X] No
**Are you using **[**sentry.io**]()** or on-premise?**
- [X] [sentry.io]() (SaaS)
- [ ] on-premise
**If you are using **[**sentry.io**]()**, please post a link to your issue so we can take a look:**
\[Link to issue\]
**Configuration:**
(`@sentry/react-native`)
```
Sentry.init({
dsn: 'https://...@sentry.io/...'
// other options
release: `${appName}@${appVersion} (${buildNumber})`,
enableAutoSessionTracking: true,
sessionTrackingIntervalMillis: 30000,
});
```
---
**I have following issue:**
\[Description\]
Hi, I have an app that purposefully runs in the background when a user starts a "session" with us. I would like to use the session tracking features, but I need to prevent the session from ending while the user's session with us is active.
I'm not aware of any manual way of tracking the session, nor that there's any option to change this configuration at runtime.
Guía de contribución
Línea de trabajo
Comienza revisando la configuración de seguimiento de sesiones de @sentry/react-native, especialmente enableAutoSessionTracking y sessionTrackingIntervalMillis, y rastrea cómo gestiona el SDK las transiciones a segundo plano en iOS y Android. Define los controles manuales públicos y el comportamiento en tiempo de ejecución necesarios para una sesión gestionada por la aplicación, y verifica que el seguimiento automático siga siendo compatible y que ambas plataformas se comporten de forma coherente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react-native, typescript
- Área
- mobile
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 32/100