mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 00:51:07 +08:00
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:
parent
dfb0aa3d5d
commit
a0ec1252e0
@ -770,4 +770,19 @@ export class OneSignal extends IonicNativePlugin {
|
|||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
userProvidedPrivacyConsent(callback: Function): void {}
|
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 {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user