Skip to content

Commit b76adf7

Browse files
authored
Merge pull request #125 from AppsFlyerSDK/dev/update6.2.6
Update readme and version to 6.2.6
2 parents 27c4fb3 + 5f3404c commit b76adf7

File tree

5 files changed

+84
-37
lines changed

5 files changed

+84
-37
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Versions
22

3+
## 6.2.6-nullsafety.0
4+
- Update for iOS SDK V6.2.6
5+
- Refactoring for SKAD network feature
6+
37
## 6.2.4-nullsafety.5
48
- Added support for strict mode (kids app)
59
- Added support for wait for att status API

README.md

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ When submitting an issue please specify your AppsFlyer sign-up (account) email ,
2424
- [Setting AppsFlyer options](#appsFlyer-options)
2525
- [Initializing the SDK](#init-sdk)
2626
- [Set plugin for IOS 14](#ios14)
27-
- [Setting strict mode (app for kids)](#strictMode)
2827
- [Additional Guides](#guides)
2928
- [APIs](#api)
3029

@@ -37,7 +36,7 @@ When submitting an issue please specify your AppsFlyer sign-up (account) email ,
3736

3837
### This plugin is built for
3938

40-
- iOS AppsFlyerSDK **v6.2.4**
39+
- iOS AppsFlyerSDK **v6.2.6**
4140

4241
- Android AppsFlyerSDK **v6.2.0**
4342

@@ -123,7 +122,7 @@ appsflyerSdk.initSdk(
123122
```
124123
-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
125124
{
126-
self.viewController = [[MainViewController alloc] init];
125+
[GeneratedPluginRegistrant registerWithRegistry:self];
127126
if (@available(iOS 14, *)) {
128127
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
129128
//If you want to do something with the pop-up
@@ -151,37 +150,7 @@ https://support.appsflyer.com/hc/en-us/articles/207032066#integration-33-configu
151150

152151
---
153152

154-
## <a id="strictMode">👨‍👩‍👧‍👦 Strict mode for App-kids
155-
156-
Starting from version **6.2.4-nullsafety.5** iOS SDK comes in two variants: **Strict** mode and **Regular** mode.
157-
158-
Please read more: https://support.appsflyer.com/hc/en-us/articles/207032066#integration-strict-mode-sdk
159-
160-
***Change to Strict mode***
161-
162-
After you [installed](#installation) the AppsFlyer plugin:
163-
164-
1. Go to the `$HOME/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-<CURRENT VERSION>/ios` folder
165-
2. Open `appsflyer_sdk.podspec`, add `/Strict` to the `s.ios.dependency` as follow:
166-
167-
`s.ios.dependency 'AppsFlyerFramework', '6.x.x'` To >> `s.ios.dependency 'AppsFlyerFramework/Strict', '6.x.x'`
168-
and save
169-
170-
3. Go to `ios` folder of your current project and Run `pod update`
171-
172-
***Change to Regular mode***
173-
174-
1. Go to the `$HOME/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-<CURRENT VERSION>/ios` folder:
175-
2. Open `appsflyer_sdk.podspec` and remove `/strict`:
176-
177-
`s.ios.dependency 'AppsFlyerFramework/Strict', '6.x.x'` To >> `s.ios.dependency 'AppsFlyerFramework', '6.x.x'`
178-
and save
179-
180-
3. Go to `ios` folder of your current project and Run `pod update`
181-
182-
---
183-
184-
## <a id="guides"> **📖 Additional Guides (Deeplinking & more) **
153+
## <a id="guides"> **📖 Additional Guides (Deeplinking, out of store, Strict mode (app for kids) & iOS 14) **
185154

186155
Great installation and setup guides can be viewed [here](https://github.com/AppsFlyerSDK/appsflyer-flutter-plugin/blob/master/doc/Guides.md)
187156

doc/Guides.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
- [Unified deep linking](#Unified-deep-linking)
1313
- [iOS Deeplink Setup](#iosdeeplinks)
1414
- [Android Deeplink Setup](#android-deeplinks)
15+
- [Set plugin for IOS 14](#ios14)
16+
- [Setting strict mode (app for kids)](#strictMode)
1517

16-
---
18+
---
1719

1820
## <a id="init-sdk"> Init SDK
1921

@@ -285,3 +287,70 @@ Essentially, the Universal Links method links between an iOS mobile app and an a
285287
```
286288

287289
For more on Universal Links check out the guide [here](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#setups-universal-links).
290+
291+
292+
## <a id="ios14"> Set plugin for IOS 14
293+
294+
1. Add `#import <AppTrackingTransparency/AppTrackingTransparency.h>` in your `AppDelegate.m`
295+
296+
2. Add the ATT pop-up for IDFA collection so your `AppDelegate.m` will look like this:
297+
```
298+
-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
299+
{
300+
[GeneratedPluginRegistrant registerWithRegistry:self];
301+
if (@available(iOS 14, *)) {
302+
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
303+
//If you want to do something with the pop-up
304+
}];
305+
}
306+
return [super application:application didFinishLaunchingWithOptions:launchOptions];
307+
}
308+
```
309+
310+
3. Add Privacy - Tracking Usage Description inside your `.plist` file in Xcode.
311+
312+
4. Optional: Set the `timeToWaitForATTUserAuthorization` property in the `AppsFlyerOptions` to delay the sdk initazliation for a number of `x seconds` until the user accept the consent dialog:
313+
```dart
314+
AppsFlyerOptions options = AppsFlyerOptions(
315+
afDevKey: DotEnv().env["DEV_KEY"],
316+
appId: DotEnv().env["APP_ID"],
317+
showDebug: true,
318+
timeToWaitForATTUserAuthorization: 30
319+
);
320+
```
321+
322+
For more info visit our Full Support guide for iOS 14:
323+
324+
https://support.appsflyer.com/hc/en-us/articles/207032066#integration-33-configuring-app-tracking-transparency-att-support
325+
326+
---
327+
328+
## <a id="strictMode">👨‍👩‍👧‍👦 Strict mode for App-kids
329+
330+
Starting from version **6.2.4-nullsafety.5** iOS SDK comes in two variants: **Strict** mode and **Regular** mode.
331+
332+
Please read more: https://support.appsflyer.com/hc/en-us/articles/207032066#integration-strict-mode-sdk
333+
334+
***Change to Strict mode***
335+
336+
After you [installed](#installation) the AppsFlyer plugin:
337+
338+
1. Go to the `$HOME/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-<CURRENT VERSION>/ios` folder
339+
2. Open `appsflyer_sdk.podspec`, add `/Strict` to the `s.ios.dependency` as follow:
340+
341+
`s.ios.dependency 'AppsFlyerFramework', '6.x.x'` To >> `s.ios.dependency 'AppsFlyerFramework/Strict', '6.x.x'`
342+
and save
343+
344+
3. Go to `ios` folder of your current project and Run `pod update`
345+
346+
***Change to Regular mode***
347+
348+
1. Go to the `$HOME/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-<CURRENT VERSION>/ios` folder:
349+
2. Open `appsflyer_sdk.podspec` and remove `/strict`:
350+
351+
`s.ios.dependency 'AppsFlyerFramework/Strict', '6.x.x'` To >> `s.ios.dependency 'AppsFlyerFramework', '6.x.x'`
352+
and save
353+
354+
3. Go to `ios` folder of your current project and Run `pod update`
355+
356+
---

example/ios/Runner/AppDelegate.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#import "AppDelegate.h"
22
#import "GeneratedPluginRegistrant.h"
33
#import "AppsflyerSdkPlugin.h"
4+
#import <AppTrackingTransparency/AppTrackingTransparency.h>
45

56
@implementation AppDelegate
67

78
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
89
[GeneratedPluginRegistrant registerWithRegistry:self];
9-
10+
if (@available(iOS 14, *)) {
11+
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
12+
//If you want to do something with the pop-up
13+
}];
14+
}
1015
return [super application:application didFinishLaunchingWithOptions:launchOptions];
1116
}
1217

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appsflyer_sdk
22
description: A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.
3-
version: 6.2.4-nullsafety.5
3+
version: 6.2.6-nullsafety.0
44

55
homepage: https://github.com/AppsFlyerSDK/flutter_appsflyer_sdk
66

0 commit comments

Comments
 (0)