feat(purchases): add setAirshipChannelID method (#3856)

This commit is contained in:
aboedo 2021-11-15 14:02:53 -03:00 committed by GitHub
parent 96847444fa
commit 2f25396c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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