feat(onesignal): add missing "setExternalUserId" and "removeExternalUserId" functions (#3049)

* Adding missing functions to index.ts file

The functions were missing, Please refer to the issue #2909 
https://github.com/ionic-team/ionic-native/issues/2909

* Updated comments

Updated comments which were failing tslint test

* removed trailing whitespace

removed trailing whitespace
This commit is contained in:
Anup Sharma 2019-06-03 10:26:36 +05:30 committed by Daniel Sogl
parent dfb0aa3d5d
commit a0ec1252e0

View File

@ -770,4 +770,19 @@ export class OneSignal extends IonicNativePlugin {
*/
@Cordova()
userProvidedPrivacyConsent(callback: Function): void {}
/**
* Allows you to use your own system's user ID's to send push notifications to your users.
* To tie a user to a given user ID, you can use this method.
* @param {string} externalId
*/
@Cordova()
setExternalUserId(externalId: string): void {}
/**
* Removes whatever was set as the current user's external user ID.
*/
@Cordova()
removeExternalUserId(): void {}
}