Link11 WAAP
Mobile SDK v2.2.x
Mobile SDK v2.2.x
  • Developer Guide: SDK v2.2.x
  • Android
  • iOS
  • Flutter
  • React Native
  • Support
  • Release Notes
  • Page 1
Powered by GitBook
On this page
  • Introduction
  • Installation
  • Finding the App Signature
  • Working with SDK

Was this helpful?

Export as PDF

Flutter

PreviousiOSNextReact Native

Last updated 4 months ago

Was this helpful?

Introduction

The SDK supports programmatic integration with Flutter.

These instructions assume that you have already read the . If you have not yet done so, please do so before continuing below.

This SDK comes with an example app: a full Android Studio project is enclosed, based on the . The app uses the Reblaze Flutter plugin (it is part of the same SDK zip). You can play with this example to understand how SDK integration works.

Installation

Unpack the ReblazeSDK.zip to your computer, and add the to your pubsepec.yaml dependencies:

  reblaze:
    path: ${sdkRootDir}/libs/flutter

Please note that the plugin itself depends on the native Mobile Reblaze SDK, so you should keep the whole directory of `libs` with its subdirectories together.

is not supported in Flutter even on iOS, but may help for embedded WebViews of your Flutter app.

Finding the App Signature

With Flutter, you actually have two signatures that must be uploaded to the Reblaze Console. Follow the instructions for and . For the debug version that runs on Emulator/Simulator, the special signature: "abadbabe" will be exposed. Make sure that this is disabled on Production.

Working with SDK

In Flutter, access to SDK goes through MethodChannel and is async.

For example:

reblaze.setInterval(25);
rbzSdk = await reblaze.generateHash();

Also, in Flutter we don't expose the reblaze.setEventListener() API. If you need this monitoring, you can add this to Android and iOS native code of your app.

is fully supported by the the Flutter plugin.

Developer Guide
http package
Android
iOS
Auto-signing
Mocking