registerForRemoteNotifications method

void registerForRemoteNotifications()

iOS and macOS only Registration is done automatically when the application starts. This is only useful if you previously called PushHostApi.unregisterForRemoteNotifications. You'll get the next token from PushFlutterApi.onNewToken. Unfortunately, this would most likely be the same token as before you called PushHostApi.unregisterForRemoteNotifications.

Implementation

void registerForRemoteNotifications() {
  _pushHostApi.registerForRemoteNotifications();
}