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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,18 @@
1
+
### Version 4.22.0 (6th June 2020)
2
+
#### Added
3
+
- Added subscription tracking feature.
4
+
- Added OAID plugin for Adjust SDK named `react-native-adjust-oaid`. With this plugin added next to Adjust SDK, SDK will be able to read Open Advertising ID if present on the device.
5
+
- Added support for Huawei App Gallery install referrer.
6
+
7
+
#### Changed
8
+
- Updated communication flow with `iAd.framework`.
**Note**: This feature is only available in the SDK v4.22.0 and above.
394
+
395
+
You can track App Store and Play Store subscriptions and verify their validity with the Adjust SDK. After a subscription has been successfully purchased, make the following call to the Adjust SDK:
396
+
397
+
**For App Store subscription:**
398
+
399
+
```js
400
+
var subscription =newAdjustAppStoreSubscription(price, currency, transactionId, receipt);
401
+
subscription.setTransactionDate(transactionDate);
402
+
subscription.setSalesRegion(salesRegion);
403
+
404
+
Adjust.trackAppStoreSubscription(subscription);
405
+
```
406
+
407
+
**For Play Store subscription:**
408
+
409
+
```js
410
+
var subscription =newAdjustPlayStoreSubscription(price, currency, sku, orderId, signature, purchaseToken);
411
+
subscription.setPurchaseTime(purchaseTime);
412
+
413
+
Adjust.trackPlayStoreSubscription(subscription);
414
+
```
415
+
416
+
Subscription tracking parameters for App Store subscription:
- currency (you need to pass [currencyCode](https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc) of the [priceLocale](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc) object)
- salesRegion (you need to pass [countryCode](https://developer.apple.com/documentation/foundation/nslocale/1643060-countrycode?language=objc) of the [priceLocale](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc) object)
424
+
425
+
Subscription tracking parameters for Play Store subscription:
**Note:** Subscription tracking API offered by Adjust SDK expects all parameters to be passed as `string` values. Parameters described above are the ones which API exects you to pass to subscription object prior to tracking subscription. There are various libraries which are handling in app purchases in React Native and each one of them should return information described above in some form upon successfully completed subscription purchase. You should locate where these parameters are placed in response you are getting from library you are using for in app purchases, extract those values and pass them to Adjust API as string values.
436
+
437
+
Just like with event tracking, you can attach callback and partner parameters to the subscription object as well:
438
+
439
+
**For App Store subscription:**
440
+
441
+
```js
442
+
var subscription =newAdjustAppStoreSubscription(price, currency, transactionId, receipt);
Some parameters are saved to be sent in every event and session of the Adjust SDK. Once you have added any of these parameters, you don't need to add them every time, since they will be saved locally. If you add the same parameter twice, there will be no effect.
OAID is a new advertising ID available in devices with HMS (Huawei Mobile Service) version 2.6.2 or later. You can use it to attribute and track Android devices in markets where Google Play Services is not available.
4
+
5
+
The OAID plugin lets the Adjust React Native SDK read a device’s OAID value *in addition* to the other device IDs it searches for by default.
6
+
7
+
First, read the official [React Native SDK README][readme] and integrate the Adjust SDK into your app.
8
+
9
+
To let the Adjust SDK collect and track the OAID, follow these steps.
10
+
11
+
### Add the OAID plugin to your app
12
+
13
+
You can get the Adjust OAID plugin for React Native from `npm`:
14
+
15
+
```
16
+
npm install react-native-adjust-oaid --save
17
+
```
18
+
19
+
### Use the plugin
20
+
21
+
To read OAID values, call `AdjustOaid.ReadOaid()` before starting the SDK:
0 commit comments