subscribe static method

Future<void> subscribe(
  1. String topic
)

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]);
}