From 3fcb2b097184696d826ed0d2be964c62329cf1de Mon Sep 17 00:00:00 2001 From: TMaszko Date: Tue, 2 Feb 2021 13:11:30 +0100 Subject: [PATCH 1/2] chore: updated readme with testing integration section --- README.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 71c8d1ab..e4fbe5fe 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,20 @@ Follow [Facebook's instructions](https://www.facebook.com/help/publisher/1195459 You can skip the _Integrate the SDK_ step of that guide, as you've already integrated the Facebook SDK in previous steps. +### 5. Testing integration on simulators/devices + +Follow [Facebook's instructions](https://developers.facebook.com/docs/audience-network/guides/test) to add test devices and add test users. + +#### Android + +You can get AAID from the android device/emulator by going to **Settings > Google > Ads** + +#### iOS + +You can get IDFA from the iOS device using third party tool. There is a wide selection of apps with the capability on the App Store. You can get IDFA directly from the iOS simulator by running this command: `xcrun simctl list 'devices' 'booted'`. + +**Note**: Simulator must be booted. + ## Usage ### Interstitial Ads @@ -394,11 +408,11 @@ if (trackingStatus === 'authorized' || trackingStatus === 'unavailable') { The tracking status can return one of the following values: -* `'unavailable'`: The tracking API is not available on the current device. That's the case on Android devices and iPhones below iOS 14. -* `'denied'`: The user has explicitly denied permission to track. You'd want to respect that and disable [advertiser ID collection](#setAdvertiserIDCollectionEnabled). -* `'authorized'`: The user has granted permission to track. You can now enable [advertiser ID collection](#setAdvertiserIDCollectionEnabled). -* `'restricted'`: The tracking permission alert cannot be shown, because the device is restricted. See [`ATTrackingManager.AuthorizationStatus.restricted`](https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/authorizationstatus/restricted) for more information. -* `'not-determined'`: The user has not been asked to grant tracking permissions yet. Call `requestTrackingPermission()`. +- `'unavailable'`: The tracking API is not available on the current device. That's the case on Android devices and iPhones below iOS 14. +- `'denied'`: The user has explicitly denied permission to track. You'd want to respect that and disable [advertiser ID collection](#setAdvertiserIDCollectionEnabled). +- `'authorized'`: The user has granted permission to track. You can now enable [advertiser ID collection](#setAdvertiserIDCollectionEnabled). +- `'restricted'`: The tracking permission alert cannot be shown, because the device is restricted. See [`ATTrackingManager.AuthorizationStatus.restricted`](https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/authorizationstatus/restricted) for more information. +- `'not-determined'`: The user has not been asked to grant tracking permissions yet. Call `requestTrackingPermission()`. ### requestTrackingPermission From f8ce0e1467b0691facbf3c6023f56decd1128501 Mon Sep 17 00:00:00 2001 From: TMaszko Date: Tue, 2 Feb 2021 13:28:30 +0100 Subject: [PATCH 2/2] chore: rephrased ios testing integration instruction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4fbe5fe..a241e53a 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ You can get AAID from the android device/emulator by going to **Settings > Googl #### iOS -You can get IDFA from the iOS device using third party tool. There is a wide selection of apps with the capability on the App Store. You can get IDFA directly from the iOS simulator by running this command: `xcrun simctl list 'devices' 'booted'`. +You can get IDFA from the iOS device using a third party app from the App Store. For simulators IDFA can be obtained by running this command: `xcrun simctl list 'devices' 'booted'`. **Note**: Simulator must be booted.