register static method

Future<void> register({
  1. String instance = defaultInstance,
  2. List<String>? features = const [],
  3. String? messageForDistributor,
  4. String? vapid,
})

Register the app to the saved distributor with a specified token identified with the instance parameter This method needs to be called at every app startup with the same distributor and token.

Implementation

static Future<void> register({
  String instance = defaultInstance,
  List<String>? features = const [],
  String? messageForDistributor,
  String? vapid,
}) async {
  await UnifiedPushPlatform.instance.register(
    instance,
    features ?? [],
    messageForDistributor,
    vapid,
  );
}