sona library

Classes

NotificationMessageModel
This only works on Android.

Properties

onNotificationMessageArrived → Stream<NotificationMessageModel>
read-only
onNotificationMessageClicked → Stream<NotificationMessageModel>
read-only
receivedClientID → Stream<String>
read-only
receivedMessageData → Stream<Map>
// listen data from getui
read-only
receivedSdkStatus → Stream<GTSdkStatus>
read-only

Functions

bindAlias(String alias, {String sequenceNum}) → Future
clientID() → Future<String>
dispose() → dynamic
register({String appID, String appKey, String appSecret, bool registerOnAndroid = true, bool registerOnIOS = true, String channel, String pushServiceName, bool lbsLocationEnable = false, bool userVerify = false}) → Future<Map>
appID,appKey and appSecret only works on iOS because you have to configure these params in your build.gradle file on Android. sona will register push-manager if registerOnAndroid or registerOnIOS is true pushServiceName only works on Android .GeTui allows you use custom push service to ensure GeTui works well on some devices.pushServiceName is a full name of your push service in JAVA.pushServiceName is not necessary.For details ,see details channel only works on iOS
setBadge(int count) → Future<void>
turnOnPush({bool isOn = true}) → Future
unBindAlias(String alias, {String sn, bool isSelf}) → Future

Enums

GTSdkStatus
Android only has two kind of status:GTSdkStatus.STARTED and GTSdkStatus.OFFLINE Read official documents for more details.