disablePushNotifications static method
Disable push notifications feature, by default it is enabled. Currently implemented for iOS only Should be called before Countly init
Implementation
static Future<String?> disablePushNotifications() async {
log('Calling "disablePushNotifications"');
if (BUILDING_WITH_PUSH_DISABLED) {
log('disablePushNotifications, $_pushDisabledMsg', logLevel: LogLevel.ERROR);
return _pushDisabledMsg;
}
if (!Platform.isIOS) {
return 'disablePushNotifications : To be implemented';
}
final String? result = await _channel.invokeMethod('disablePushNotifications');
return result;
}