registerToTopic static method

Future<void> registerToTopic(
  1. MPTopic topic
)

Register the current device to a topic.

@param topic The topic you will register to. @returns A future that completes once the registration is successful.

Implementation

static Future<void> registerToTopic(MPTopic topic) async =>
    MBPush.registerToTopic(topic);