flutter_carrotquest 1.0.0-dev.4
flutter_carrotquest: ^1.0.0-dev.4 copied to clipboard

A Carrot quest flutter plugin for Android and IOS. You can find a description of the service at https://www.carrotquest.io

flutter_carrotquest #

A Carrot quest flutter plugin for Android and IOS.

Implementation #

Android #

android {
    
    defaultConfig {
        ...
        minSdkVersion 21
        ...
    }
    ...
    packagingOptions {
        exclude 'META-INF/*.kotlin_module'
    }
    ...
}

IOS #

Nothing is required

Getting Started #

import 'package:flutter_carrotquest/flutter_carrotquest.dart';
await Carrot.setup(apiKey: 'your apiKey', appId: 'your appId')
        .catchError((onError) => print(onError));
// Android only
await Carrot.setDebug()
        .catchError((onError) => print(onError));
await Carrot.auth(userId: 'your userId', userAuthKey: 'your userAuthKey')
        .catchError((onError) => print(onError));
// Android only
await Carrot.deinit()
        .catchError((onError) => print(onError));
await Carrot.openChat()
        .catchError((onError) => print(onError));
// IOS only
await Carrot.setToken('your fcmToken')
        .catchError((onError) => print(onError));
await Carrot.setUserProperty({'age':'28'})
        .catchError((onError) => print(onError));
await Carrot.trackEvent('your eventName', eventParams: '{"your eventKey":"your eventValue"}')
        .catchError((onError) => print(onError));

Features and bugs #

Please file feature requests and bugs at the issue tracker.

4
likes
120
pub points
59%
popularity

Publisher

dipdev.studio

A Carrot quest flutter plugin for Android and IOS. You can find a description of the service at https://www.carrotquest.io

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

GPL 3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_carrotquest