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
trigger
method- Old Method:
- New Methods:
- Use
signup
after your onboarding process:
- Use
setUserData
every time the app opens with a logged-in user:
- Use
-
Recommended Implementation:
- Call
signup
once, immediately after user onboarding. - Call
setUserData
whenever the user is logged in and opens the app.
- Call