Skip to content

Commit 2f25396

Browse files
authored
feat(purchases): add setAirshipChannelID method (#3856)
1 parent 9684744 commit 2f25396

File tree

1 file changed

+10
-1
lines changed
  • src/@awesome-cordova-plugins/plugins/purchases

1 file changed

+10
-1
lines changed

src/@awesome-cordova-plugins/plugins/purchases/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export enum INTRO_ELIGIBILITY_STATUS {
237237
*/
238238
@Plugin({
239239
pluginName: 'Purchases',
240-
plugin: 'cordova-plugin-purchases@2.3.0',
240+
plugin: 'cordova-plugin-purchases@2.4.0',
241241
pluginRef: 'Purchases', // the variable reference to call the plugin, example: navigator.geolocation
242242
repo: 'https://github.com/RevenueCat/cordova-plugin-purchases', // the github repository URL for the plugin
243243
platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS']
@@ -754,6 +754,15 @@ export class Purchases extends AwesomeCordovaNativePlugin {
754754
@Cordova({ sync: true })
755755
setOnesignalID(onesignalID: string | null): void {}
756756

757+
/**
758+
* Subscriber attribute associated with the Airship Channel Id for the user
759+
* Required for the RevenueCat Airship integration
760+
*
761+
* @param airshipChannelID Empty String or null will delete the subscriber attribute.
762+
*/
763+
@Cordova({ sync: true })
764+
setAirshipChannelID(airshipChannelID: string | null): void {}
765+
757766
/**
758767
* Automatically collect subscriber attributes associated with the device identifiers.
759768
* $idfa, $idfv, $ip on iOS

0 commit comments

Comments
 (0)