getApnsDeviceToken method

  1. @override
Future<String> getApnsDeviceToken()
override

获取 APNs Token

Implementation

@override
Future<String> getApnsDeviceToken() async {
  if (!Platform.isIOS) {
    return 'Only support iOS';
  }

  var apnsDeviceToken =
      await methodChannel.invokeMethod('getApnsDeviceToken');
  return "$apnsDeviceToken";
}