From a65deb7857c88140b002009661c7ff7a9213acfe Mon Sep 17 00:00:00 2001 From: Alexis Caffa Date: Mon, 21 Oct 2019 17:34:03 -0300 Subject: [PATCH] getAPNSToken method added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New version of `cordova-plugin-fcm-with-dependecy-updated` released: v4.0.0 _“The old FCMPlugin.getToken is focused on retrieving the FCM Token. For the IOS, APNS token can now be retrieved by the new method”_ (Show readme)[https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated#version-400-12102019] --- src/@ionic-native/plugins/fcm/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index 87d5bf7b3d..780ca2e760 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -71,6 +71,16 @@ export class FCM extends IonicNativePlugin { getToken(): Promise { return; } + + /** + * Gets ios device's current APNS registration id + * + * @returns {Promise} Returns a Promise that resolves with the APNS registration id token + */ + @Cordova() + getAPNSToken(): Promise { + return; + } /** * Event firing on the token refresh