You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently migrated to this plugin (from cordova-plugin-purchases) and had to change my code in some places but overall everything seemed to work. Then, I just realised in the RevenuCat dashboard that setAttributes hasn't been working in weeks.
I recently migrated to this plugin (from
cordova-plugin-purchases
) and had to change my code in some places but overall everything seemed to work. Then, I just realised in the RevenuCat dashboard thatsetAttributes
hasn't been working in weeks.The docs say:
setAttributes(attributes: { [key: string]: string | null; }) => Promise<void>
And my code was:
Capacitor.Plugins.Purchases.setAttributes({email: '[email protected]'});
I had to change it to this to work:
Capacitor.Plugins.Purchases.setAttributes({attributes: {email: '[email protected]'}});
As comparison, the docs for
logIn
say:logIn(options: { appUserID: string; }) => Promise<LogInResult>
And
Capacitor.Plugins.Purchases.logIn({appUserID: 'abcdef});
works andCapacitor.Plugins.Purchases.logIn({options: {appUserID: 'abcdef}});
does not.The text was updated successfully, but these errors were encountered: