in android/src/main/java/com/aliyun/ams/push/AliyunPushModule.java [557:575]
public void createGroup(String id, String name, String desc, Promise promise) {
WritableMap result = new WritableNativeMap();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationManager notificationManager = (NotificationManager) mContext
.getSystemService(Context.NOTIFICATION_SERVICE);
NotificationChannelGroup group = new NotificationChannelGroup(id, name);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
group.setDescription(desc);
}
notificationManager.createNotificationChannelGroup(group);
result.putString(CODE_KEY, CODE_SUCCESS);
} else {
result.putString(CODE_KEY, CODE_NOT_SUPPORT);
result.putString(ERROR_MSG_KEY,
"Android version is below Android O which is not support create group");
}
promise.resolve(result);
}