trigger method and introducing three new methods: signup and setUserData. This guide explains how to migrate your existing code to use these new methods.
Do I need to migrate?
If you’re using any SDK version below 1.0.0 (e.g., 0.x.x), you’ll need to migrate to the new methods. Thetrigger method has been deprecated and will be removed in future releases.
The migration offers several benefits:
- More precise control over user data management
- Improved deep linking capabilities
- Better separation of concerns between signup events and regular user sessions
- Enhanced tracking accuracy for attribution
- Flutter
- React Native
Migration Steps:
-
Replace the
triggermethod- Old Method:
- New Methods:
- Use
signupafter your onboarding process:
- Use
setUserDataevery time the app opens with a logged-in user:
- Use
-
Recommended Implementation:
- Call
signuponce, immediately after user onboarding. - Call
setUserDatawhenever the user is logged in and opens the app.
- Call