unsubscribe method
取消订阅主题
Implementation
@override
Future<bool> unsubscribe(String topic) async {
try {
final result = await methodChannel.invokeMethod<bool>('unsubscribe', {
'topic': topic,
});
return result ?? false;
} catch (e) {
debugPrint('HuaweiPush unsubscribe error: $e');
return false;
}
}