SDK Migration Guide
Learn how to migrate from 0.x.x to 1.x.x versions
We’ve made important updates to our SDKs, removing the previously used trigger
method and introducing three new methods: signup
, setUserData
, and triggerDeeplink
. 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. The trigger
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
If you’re installing our SDK for the first time with version 1.0.0 or above, you can skip this migration guide and directly follow the standard installation instructions for your platform.
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
triggerDeeplink
after navigation is initialized:
- Use
-
Recommended Implementation:
- Call
signup
once, immediately after user onboarding. - Call
setUserData
whenever the user is logged in and opens the app. - Call
triggerDeeplink
once your app navigation is ready.
- Call
These changes ensure more precise control and improved functionality within your Flutter application.
For detailed documentation, refer to our package documentation: linkrunner Flutter SDK