createPushConnector function

PushConnector createPushConnector()

Creates either APNS or Firebase connector to manage the push notification registration.

Implementation

PushConnector createPushConnector() {
  if (Platform.isIOS) {
    return ApnsPushConnector();
  } else {
    return FirebasePushConnector();
  }
}