Skip to content

smenateam/flutter_carrot_quest_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors