insert-affiliate-react-native-sdk 1.4.2 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +2 -7
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -98,12 +98,7 @@ React.useEffect(() => {
|
|
|
98
98
|
const affiliateIdentifier = await returnInsertAffiliateIdentifier();
|
|
99
99
|
|
|
100
100
|
if (affiliateIdentifier) {
|
|
101
|
-
|
|
102
|
-
const { customerInfo, created } = await Purchases.logIn(affiliateIdentifier);
|
|
103
|
-
|
|
104
|
-
if (created) {
|
|
105
|
-
console.log('New user created in RevenueCat:', customerInfo);
|
|
106
|
-
}
|
|
101
|
+
await Purchases.setAttributes({"insert_affiliate", affiliateIdentifier});
|
|
107
102
|
}
|
|
108
103
|
}
|
|
109
104
|
} catch (error) {
|
|
@@ -344,7 +339,7 @@ import { useDeepLinkIapProvider } from 'insert-affiliate-react-native-sdk';
|
|
|
344
339
|
let insertAffiliateIdentifier = await setInsertAffiliateIdentifier(referringLink);
|
|
345
340
|
|
|
346
341
|
if (insertAffiliateIdentifier) {
|
|
347
|
-
|
|
342
|
+
await Purchases.setAttributes({"insert_affiliate", affiliateIdentifier});
|
|
348
343
|
}
|
|
349
344
|
|
|
350
345
|
} catch (err) {
|