trackingAuthorizationStatus() returns incorrect value
Describe the bug
Calling trackingAuthorizationStatus() returns authorized even when tracking is disabled on my iPhone entirely
To Reproduce
- Open
Privacy & Security - Click on
Tracking - Disable
Allow Apps to Request to Track - Open your app and make sure to request tracking permission
- The dialog does not show, yet the method returns
authorized
Expected behavior
Globally disabling the ability to ask for permission to track should result in trackingAuthorizationStatus() returning denied (or any other status that is different than authorized)
Screenshots
Smartphone:
- Device: iPhone 13 Pro Max
- OS: iOS 16.6.1
What this plugin is doing is simple and probably caused by AdMob's libraries.
https://github.com/capacitor-community/admob/blob/master/ios/Plugin/Plugin.swift#L157-L173
We have just released v5.2.0 with the latest library update, so please check if it still occurs.
Thanks.
I updated readme example: https://github.com/capacitor-community/admob#initialize-admob
Please try by use v5.3.0
Hi @rdlabo For me readme is a bit confusing. Because based on this: https://github.com/capacitor-community/admob/issues/280
Here is explained that showConsentForm launch the tracking transparency request if we have implemented in Admob IDF Explainer: https://support.google.com/admob/answer/10115027
Also in the documentation method says: request requestTrackingAuthorization (iOS >14). This is deprecated method. We recommend UMP Consent.
So based on Apple rejecting apps because tracking transparency request is required.
I would say that the initialize explanation on the README is deprecated because is using requestTrackingAuthorization And it should warns that for use the plugin in iOS it is required to implement the IDF Explainer.
Is this correct?
what is the process ??
- admob initialise()
- ump (requestConsentInfo) and then
- trackingAuthorizationStatus()
or
- admob initialise()
- trackingAuthorizationStatus() and then
- ump (requestConsentInfo)
or just according to google.
- admob initialise()
- ump (requestConsentInfo)