affise-attribution-lib 1.6.8 → 1.6.9
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/README.md +41 -44
- package/affise-attribution-native.podspec +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
- [Get random user Id](#get-random-user-id)
|
|
49
49
|
- [Get random device Id](#get-random-device-id)
|
|
50
50
|
- [Get providers](#get-providers)
|
|
51
|
+
- [Get referrer](#get-referrer)
|
|
52
|
+
- [Get referrer value](#get-referrer-value)
|
|
53
|
+
- [Referrer keys](#referrer-keys)
|
|
51
54
|
- [Get module state](#get-module-state)
|
|
52
55
|
- [Platform specific](#platform-specific)
|
|
53
56
|
- [GDPR right to be forgotten](#gdpr-right-to-be-forgotten)
|
|
54
|
-
- [Get referrer](#get-referrer)
|
|
55
|
-
- [Get referrer value](#get-referrer-value)
|
|
56
|
-
- [Referrer keys](#referrer-keys)
|
|
57
57
|
- [StoreKit Ad Network](#storekit-ad-network)
|
|
58
58
|
- [SDK to SDK integrations](#sdk-to-sdk-integrations)
|
|
59
59
|
- [Debug](#debug)
|
|
@@ -123,8 +123,8 @@ Add modules to iOS project
|
|
|
123
123
|
|
|
124
124
|
| Module | Version | Start |
|
|
125
125
|
|---------------|:------------------------------------------------------------------------------------:|----------|
|
|
126
|
-
| `ADVERTISING` | [`1.6.
|
|
127
|
-
| `STATUS` | [`1.6.
|
|
126
|
+
| `ADVERTISING` | [`1.6.19`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` |
|
|
127
|
+
| `STATUS` | [`1.6.19`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
128
128
|
|
|
129
129
|
Example [example/ios/Podfile](example/ios/Podfile)
|
|
130
130
|
|
|
@@ -133,8 +133,8 @@ target 'YourAppProject' do
|
|
|
133
133
|
# ...
|
|
134
134
|
|
|
135
135
|
# Affise Modules
|
|
136
|
-
pod 'AffiseModule/Advertising', `1.6.
|
|
137
|
-
pod 'AffiseModule/Status', `1.6.
|
|
136
|
+
pod 'AffiseModule/Advertising', `1.6.19`
|
|
137
|
+
pod 'AffiseModule/Status', `1.6.19`
|
|
138
138
|
end
|
|
139
139
|
```
|
|
140
140
|
|
|
@@ -843,40 +843,8 @@ const fetchData = async () => {
|
|
|
843
843
|
fetchData()
|
|
844
844
|
.catch(console.error);
|
|
845
845
|
```
|
|
846
|
-
## Get module state
|
|
847
846
|
|
|
848
|
-
|
|
849
|
-
Affise.getStatus(AffiseModules.STATUS, (response) => {
|
|
850
|
-
// handle status response
|
|
851
|
-
});
|
|
852
|
-
```
|
|
853
|
-
|
|
854
|
-
## Platform specific
|
|
855
|
-
|
|
856
|
-
### GDPR right to be forgotten
|
|
857
|
-
|
|
858
|
-
> `Android Only`
|
|
859
|
-
|
|
860
|
-
Under the EU's General Data Protection Regulation (GDPR): An individual has the right to have their personal data erased.
|
|
861
|
-
To provide this functionality to user, as the app developer, you can call
|
|
862
|
-
|
|
863
|
-
```typescript
|
|
864
|
-
Affise.settings({affiseAppId, secretKey}).start(); // Start Affise SDK
|
|
865
|
-
Affise.android.forget(); // to forget users data
|
|
866
|
-
```
|
|
867
|
-
|
|
868
|
-
After processing such request our backend servers will delete all user's data.
|
|
869
|
-
To prevent library from generating new events, disable tracking just before calling Affise.forget:
|
|
870
|
-
|
|
871
|
-
```typescript
|
|
872
|
-
Affise.settings({affiseAppId, secretKey}).start(); // Start Affise SDK
|
|
873
|
-
Affise.setTrackingEnabled(false);
|
|
874
|
-
Affise.android.forget(); // to forget users data
|
|
875
|
-
```
|
|
876
|
-
|
|
877
|
-
### Get referrer
|
|
878
|
-
|
|
879
|
-
> `Android Only`
|
|
847
|
+
## Get referrer
|
|
880
848
|
|
|
881
849
|
Use the next public method of SDK
|
|
882
850
|
|
|
@@ -886,9 +854,7 @@ Affise.android.getReferrer().then((referrer) => {
|
|
|
886
854
|
});
|
|
887
855
|
```
|
|
888
856
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
> `Android Only`
|
|
857
|
+
## Get referrer value
|
|
892
858
|
|
|
893
859
|
Use the next public method of SDK to get referrer value by
|
|
894
860
|
|
|
@@ -898,7 +864,7 @@ Affise.android.getReferrerValue(ReferrerKey.CLICK_ID, (value) => {
|
|
|
898
864
|
})
|
|
899
865
|
```
|
|
900
866
|
|
|
901
|
-
|
|
867
|
+
### Referrer keys
|
|
902
868
|
|
|
903
869
|
In examples above `ReferrerKey.CLICK_ID` is used, but many others is available:
|
|
904
870
|
|
|
@@ -933,6 +899,37 @@ In examples above `ReferrerKey.CLICK_ID` is used, but many others is available:
|
|
|
933
899
|
- `SUB_4`
|
|
934
900
|
- `SUB_5`
|
|
935
901
|
|
|
902
|
+
## Get module state
|
|
903
|
+
|
|
904
|
+
```typescript
|
|
905
|
+
Affise.getStatus(AffiseModules.STATUS, (response) => {
|
|
906
|
+
// handle status response
|
|
907
|
+
});
|
|
908
|
+
```
|
|
909
|
+
|
|
910
|
+
## Platform specific
|
|
911
|
+
|
|
912
|
+
### GDPR right to be forgotten
|
|
913
|
+
|
|
914
|
+
> `Android Only`
|
|
915
|
+
|
|
916
|
+
Under the EU's General Data Protection Regulation (GDPR): An individual has the right to have their personal data erased.
|
|
917
|
+
To provide this functionality to user, as the app developer, you can call
|
|
918
|
+
|
|
919
|
+
```typescript
|
|
920
|
+
Affise.settings({affiseAppId, secretKey}).start(); // Start Affise SDK
|
|
921
|
+
Affise.android.forget(); // to forget users data
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
After processing such request our backend servers will delete all user's data.
|
|
925
|
+
To prevent library from generating new events, disable tracking just before calling Affise.forget:
|
|
926
|
+
|
|
927
|
+
```typescript
|
|
928
|
+
Affise.settings({affiseAppId, secretKey}).start(); // Start Affise SDK
|
|
929
|
+
Affise.setTrackingEnabled(false);
|
|
930
|
+
Affise.android.forget(); // to forget users data
|
|
931
|
+
```
|
|
932
|
+
|
|
936
933
|
### StoreKit Ad Network
|
|
937
934
|
|
|
938
935
|
> `iOS Only`
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency 'AffiseInternal', '1.6.
|
|
20
|
+
s.dependency 'AffiseInternal', '1.6.19'
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|