mahnuh / capacitor-plugin-app-tracking-transparency

Capacitor plugin to request user authorization to access app-related data for tracking the user or the device.
MIT License
33 stars 10 forks source link

Problem with show confirm dialog "Asking Permission to Track" for iOS 16.1 #14

Closed nowitz closed 2 years ago

nowitz commented 2 years ago

Bug Report

The plugin worked good with iOS version < 16.0, bud then I install my app on device with iOS 16.1, the confirm dialog "Asking Permission to Track" did not show.

Plugin version: [x] 2.0.3

Capacitor version: [x] 4.2.0

Current behavior: Confirm dialog "Asking Permission to Track" did not show.

Expected behavior: Confirm dialog"Asking Permission to Track" will show. image

Related code: I have the code as shown (readme). https://github.com/mahnuh/capacitor-plugin-app-tracking-transparency/blob/main/README.md

Other information: Response from Apple review:

Guideline 2.1 - Information Needed

We're looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 16.1.

Next Steps

Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.

If you've implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.

If your app does not track users, update your app privacy information in App Store Connect to not declare tracking. You must have the Account Holder or Admin role to update app privacy information.

Resources

Ionic info:

Ionic:

   Ionic CLI                     : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.2.7
   @angular-devkit/build-angular : 14.2.2
   @angular-devkit/schematics    : 14.2.2
   @angular/cli                  : 14.2.2
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 4.2.0
   @capacitor/android : 4.2.0
   @capacitor/core    : 4.2.0
   @capacitor/ios     : 4.2.0

Utility:

   cordova-res                          : 0.15.4
   native-run (update available: 1.7.1) : 1.6.0

System:

   NodeJS : v16.16.0 (/usr/local/bin/node)
   npm    : 8.17.0
   OS     : macOS Monterey
mahnuh commented 2 years ago

Thanks for reporting @nowitz, will be looking into it today.

mahnuh commented 2 years ago

In the meantime, could you check if this demo app (https://github.com/mahnuh/capacitor-plugin-app-tracking-transparency-demo-app) has the same issue on iOS 16.1 @nowitz? I have to update macOS and Xcode frist, which might take a while...

nowitz commented 2 years ago

I tried your @mahnuh demo on a real device iPhone 11 Pro with iOS 16.1 and it has the same problem. :-/

mahnuh commented 2 years ago

I am not able to reproduce this issue, works fine with the demo app, tested on simulator and iPhone, both iOS 16.1. @nowitz can you please provide the log output for the demo app from Xcode? See mine below. I first tapped the GET STATUS button, then REQUEST PERMISSIN and allowed tracking.

Screenshot 2022-11-01 at 12 39 08
nowitz commented 2 years ago

For emulator iphone 14 pro is everything ok. I have the same log how you. But this is log on real device iphone 11 pro.

Snímek obrazovky 2022-11-01 v 14 07 20
mahnuh commented 2 years ago

That looks right an denied in this case means that you have denied tracking system wide. Please check the privacy settings on your iPhone @nowitz.

nowitz commented 2 years ago

Do you know, where is it pls.? I can't find it :-/ @mahnuh

mahnuh commented 2 years ago

Settings > Privacy & Security > Tracking

nowitz commented 2 years ago

👍 Ok I found it a it work ok. @mahnuh 👎 But then i don't know what apple means report from release review?

Guideline 2.1 - Information Needed

We're looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 16.1.

Next Steps

Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.

If you've implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.

If your app does not track users, update your app privacy information in App Store Connect to not declare tracking. You must have the Account Holder or Admin role to update app privacy information.

Resources

mahnuh commented 2 years ago

Does it work with your app as well? I can only recommend to make a video of the working request in your app and provide it to the Apple review team.

nowitz commented 2 years ago

Yes, after enable tracking everything ok in my app. Thank you for your time and I will try some create video for apple. I'm guessing that Apple has tracking enabled during testing.