getsentry / getsentry/sentry-react-native
Add manual controls for Session Tracking
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.8k
- Forks
- 366
- Ø Merge
- 1 T. 5 Std.
- Gemergte PRs (30 T.)
- 93
Beschreibung
**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.
Beitragsleitfaden
Rechercherichtung
Beginne mit der Überprüfung der @sentry/react-native-Konfiguration für die Sitzungsverfolgung, insbesondere enableAutoSessionTracking und sessionTrackingIntervalMillis, und verfolge nach, wie das SDK Übergänge in den Hintergrund unter iOS und Android behandelt. Lege die öffentlichen manuellen Steuerungsmöglichkeiten und das erforderliche Laufzeitverhalten für eine von der App verwaltete Sitzung fest und überprüfe anschließend, dass die automatische Verfolgung weiterhin unterstützt wird und sich beide Plattformen konsistent verhalten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react-native, typescript
- Bereich
- mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 32/100