From 2f25396c944a86b92de86cdf2e841ee7179bef19 Mon Sep 17 00:00:00 2001 From: aboedo Date: Mon, 15 Nov 2021 14:02:53 -0300 Subject: [PATCH] feat(purchases): add `setAirshipChannelID` method (#3856) --- .../plugins/purchases/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/@awesome-cordova-plugins/plugins/purchases/index.ts b/src/@awesome-cordova-plugins/plugins/purchases/index.ts index a9008b6ed..17abe7c59 100644 --- a/src/@awesome-cordova-plugins/plugins/purchases/index.ts +++ b/src/@awesome-cordova-plugins/plugins/purchases/index.ts @@ -237,7 +237,7 @@ export enum INTRO_ELIGIBILITY_STATUS { */ @Plugin({ pluginName: 'Purchases', - plugin: 'cordova-plugin-purchases@2.3.0', + plugin: 'cordova-plugin-purchases@2.4.0', pluginRef: 'Purchases', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/RevenueCat/cordova-plugin-purchases', // the github repository URL for the plugin platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] @@ -754,6 +754,15 @@ export class Purchases extends AwesomeCordovaNativePlugin { @Cordova({ sync: true }) setOnesignalID(onesignalID: string | null): void {} + /** + * Subscriber attribute associated with the Airship Channel Id for the user + * Required for the RevenueCat Airship integration + * + * @param airshipChannelID Empty String or null will delete the subscriber attribute. + */ + @Cordova({ sync: true }) + setAirshipChannelID(airshipChannelID: string | null): void {} + /** * Automatically collect subscriber attributes associated with the device identifiers. * $idfa, $idfv, $ip on iOS