Flutter plugin wrapper around REES46 native SDKs (Android/iOS).
Add dependency in your app:
dependencies:
rees46_sdk: ^0.0.1import 'package:rees46_sdk/rees46_sdk.dart';
final sdk = PersonalizationSdk();
await sdk.initialize(
const SdkInitConfig(
shopId: 'YOUR_SHOP_ID',
apiDomain: 'api.rees46.ru',
// stream defaults to 'ios' on iOS and 'android' on Android if omitted.
stream: 'ios',
enableLogs: false,
autoSendPushToken: true,
sendAdvertisingId: false,
enableAutoPopupPresentation: true,
needReInitialization: false,
),
);The public API is exported from
package:rees46_sdk/rees46_sdk.dart:
PersonalizationSdk— the SDK entrypoint (tracking, search, recommendations, profile).SdkInitConfig— initialization config passed toinitialize().
cd example
fvm flutter run- Android: uses Maven dependency
com.rees46:rees46-sdk:2.28.0and callsSDK.initialize(...). Some iOS-only init flags are accepted by Dart API but ignored on Android. - iOS: uses CocoaPods dependency
REES46 (3.23.0)and callscreatePersonalizationSDK(...). - Pushes:
- Android: when
autoSendPushToken=true, the native SDK fetches the FCM token viaFirebaseMessaging.getInstance().tokenduring initialization and sends it. - iOS: when
autoSendPushToken=true, the native SDK requests notification permission and registers for remote notifications. The Flutter plugin also forwardsdidRegisterForRemoteNotificationsWithDeviceTokenanddidReceiveRemoteNotificationAppDelegate callbacks to the native SDK.
- Android: when
For Flutter plugin development basics, see Flutter docs: develop plugins.