Skip to main content

setAppBadge

Feature Introduction

Note

Set badge count.

Attention

Currently, only effective for Firebase.

Function Prototype


- (void)setAppBadge:(NSInteger)count
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameData TypeMandatoryDescription
countNSIntegerYesBadge count

Return Result

NameData TypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager setAppBadge:0
onSuccess:^(NSString * _Nullable data) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];