rees46_sdk 0.0.1 copy "rees46_sdk: ^0.0.1" to clipboard
rees46_sdk: ^0.0.1 copied to clipboard

Flutter plugin wrapping the REES46 native personalization SDKs for Android and iOS.

rees46_flutter_sdk #

Flutter plugin wrapper around REES46 native SDKs (Android/iOS).

Getting Started #

Install #

Add dependency in your app:

dependencies:
  rees46_sdk: ^0.0.1

Initialize #

import '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,
  ),
);

API structure #

The public API is exported from package:rees46_sdk/rees46_sdk.dart:

  • PersonalizationSdk — the SDK entrypoint (tracking, search, recommendations, profile).
  • SdkInitConfig — initialization config passed to initialize().

Run demo app #

cd example
fvm flutter run

Notes #

  • Android: uses Maven dependency com.rees46:rees46-sdk:2.28.0 and calls SDK.initialize(...). Some iOS-only init flags are accepted by Dart API but ignored on Android.
  • iOS: uses CocoaPods dependency REES46 (3.23.0) and calls createPersonalizationSDK(...).
  • Pushes:
    • Android: when autoSendPushToken=true, the native SDK fetches the FCM token via FirebaseMessaging.getInstance().token during initialization and sends it.
    • iOS: when autoSendPushToken=true, the native SDK requests notification permission and registers for remote notifications. The Flutter plugin also forwards didRegisterForRemoteNotificationsWithDeviceToken and didReceiveRemoteNotification AppDelegate callbacks to the native SDK.

For Flutter plugin development basics, see Flutter docs: develop plugins.

0
likes
0
points
193
downloads

Publisher

verified publisherrees46.com

Weekly Downloads

Flutter plugin wrapping the REES46 native personalization SDKs for Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on rees46_sdk

Packages that implement rees46_sdk