subscribe static method
Implementation
static Future<void> subscribe(String topic) async {
// Running on Web?
if (GetPlatform.isWeb) {
return PushyWebSDK.subscribe(topic);
}
// Attempt to subscribe the device to topic
return await _channel.invokeMethod('subscribe', <dynamic>[topic]);
}