Configure with one key or platform keys
- a single
Stringkey AppActorPlatformKeyswhen iOS and Android use separate public keys
Identity methods
logIn(appUserId)logOut()getAppUserId()getIsAnonymous()reset()sdkVersion()
logIn(...) over trying to rebuild purchase state yourself.
Platform-specific startup hooks
- call
enableSearchAdsTracking()beforeconfigure()on iOS - call
enableInstallReferrer()afterconfigure()on Android
Hot restart note
The native SDK survives Flutter hot restart.configure() re-registers the platform handler so streams keep flowing again after the Dart VM restarts.
That is helpful during development, but it also means native purchase state is not automatically wiped just because the Dart side restarted.