getApnsDeviceToken method
获取 APNs Token
Implementation
@override
Future<String> getApnsDeviceToken() async {
if (!Platform.isIOS) {
return 'Only support iOS';
}
var apnsDeviceToken =
await methodChannel.invokeMethod('getApnsDeviceToken');
return "$apnsDeviceToken";
}