Skip to content

Commit 0f0f419

Browse files
Add migration guide for flutter
1 parent 9a91844 commit 0f0f419

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

fern/docs/pages/plug-sdk/flutter.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,24 @@ DevRev.processPushNotification(jsonEncode(payload));
291291

292292
- **Issue**: Not receiving push notifications.
293293
**Solution**: Ensure that your app is configured to receive push notifications and that your device is registered with the DevRev SDK.
294+
295+
## Migration Guide
296+
297+
This guide will help you transition from the legacy UserExperior SDK to the new DevRev SDK in your Flutter application. Below is a feature equivalence chart and detailed instructions for migrating.
298+
299+
### Feature Equivalence Chart
300+
301+
| Feature | UserExperior SDK | DevRev SDK |
302+
|-|-|-|
303+
| Installation | `user_experior: ^<version>` | `devrev_sdk_flutter: ^<version>` |
304+
| Initialization | `userExperior.startRecording(appID)` | `DevRev.configure(appID)` |
305+
| User Identification | `userExperior.setUserIdentifier(userIdentifier)` | `DevRev.identifyAnonymousUser(userID)`<br>`DevRev.identifyUnverifiedUser(userID, organizationID)`<br>`DevRev.identifyVerifiedUser(userID, sessionToken)`<br>`DevRev.logout(deviceID)` |
306+
| Event Tracking | `userExperior.logEvent(name)` | `DevRev.trackEvent(name, properties)` |
307+
| Session Recording | `userExperior.stopRecording()`<br>`userExperior.pauseRecording()`<br>`userExperior.resumeRecording()` | `DevRev.startRecording()`<br>`DevRev.stopRecording()`<br>`DevRev.pauseRecording()`<br>`DevRev.resumeRecording()`<br>`DevRev.processAllOnDemandSessions()` |
308+
| Opting in/out | `userExperior.optOut()`<br>`userExperior.optIn()`<br>`userExperior.getOptOutStatus()` | `DevRev.stopAllMonitoring()`<br>`DevRev.resumeAllMonitoring()` |
309+
| Session Properties | `userExperior.setUserProperties(properties)` | `DevRev.addSessionProperties(properties)`<br>`DevRev.clearSessionProperties()` |
310+
| Timers | `userExperior.startTimer(timerName, properties)`<br>`userExperior.endTimer(timerName, properties)` | `DevRev.startTimer(name, properties)`<br>`DevRev.endTimer(name, properties)` |
311+
| PLuG support chat | Not supported. | `DevRev.showSupport()`<br> `DevRev.createSupportConversation()` |
312+
| Push Notifications | Not supported. | `DevRev.registerDeviceToken(deviceID, deviceToken)`<br>`DevRev.unregisterDevice(deviceID)` |
313+
314+
---

0 commit comments

Comments
 (0)