feat(firebase-messaging): add getInstanceId (#3364)

This commit is contained in:
Andrew Decker 2020-04-15 14:24:04 -05:00 committed by GitHub
parent 96e9b19732
commit e1350a2e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,14 @@ export class FirebaseMessaging extends IonicNativePlugin {
return; return;
} }
/**
* Returns a promise thaf fulfills with the device instance ID
*/
@Cordova({ sync: true })
getInstanceId(): Promise<string> {
return;
}
/** /**
* Returns a promise that fulfills with the current FCM token * Returns a promise that fulfills with the current FCM token
* *