Appearance
Flutter SDK
The wingblaze_flutter plugin wraps the native WingBlaze SDKs — all behavior (persistence, HTTP, FCM/APNs, beacons) lives in the tested Kotlin/Swift cores, compiled directly into the plugin.
yaml
dependencies:
wingblaze_flutter:
path: ../engage-platform/sdks/flutter # or a published refdart
await WingBlaze.init(appId: '…', apiUrl: 'https://api…', ingestUrl: 'https://ingest…');
final ids = await WingBlaze.enablePush(); // permission + registration
await WingBlaze.login('user-123');
await WingBlaze.addTags({'plan': 'pro'});
await WingBlaze.trackEvent('purchase', {'amount': 42});
WingBlaze.onDeepLink.listen((link) => router.go(link)); // warm-start opens
final coldStart = await WingBlaze.handleInitialNotification(); // Android cold startPlatform setup mirrors the native SDKs: Android needs Firebase (google-services.json) and the WingBlazeMessagingService manifest entry; iOS needs push capability plus a UNUserNotificationCenterDelegate that calls WingBlazeFlutterPlugin.handleNotificationResponse(response) for cold-start clicks. APNs token registration is handled by the plugin via Flutter's app-delegate forwarding.