Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trackingAuthorizationStatus() returns incorrect value #288

Open
nhuethmayr opened this issue Sep 29, 2023 · 4 comments
Open

trackingAuthorizationStatus() returns incorrect value #288

nhuethmayr opened this issue Sep 29, 2023 · 4 comments

Comments

@nhuethmayr
Copy link

Describe the bug
Calling trackingAuthorizationStatus() returns authorized even when tracking is disabled on my iPhone entirely

To Reproduce

  1. Open Privacy & Security
  2. Click on Tracking
  3. Disable Allow Apps to Request to Track
  4. Open your app and make sure to request tracking permission
  5. 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
IMG_8057

Smartphone:

  • Device: iPhone 13 Pro Max
  • OS: iOS 16.6.1
@rdlabo
Copy link
Member

rdlabo commented Oct 8, 2023

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.

@rdlabo
Copy link
Member

rdlabo commented Oct 10, 2023

I updated readme example: https://github.com/capacitor-community/admob#initialize-admob

Please try by use v5.3.0

@juanmaldonadodev
Copy link

Hi @rdlabo
For me readme is a bit confusing.
Because based on this:
#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?

@sksk008
Copy link

sksk008 commented Apr 18, 2024

what is the process ??

  1. admob initialise()
  2. ump (requestConsentInfo) and then
  3. trackingAuthorizationStatus()

or

  1. admob initialise()
  2. trackingAuthorizationStatus() and then
  3. ump (requestConsentInfo)

or just
according to google.

  1. admob initialise()
  2. ump (requestConsentInfo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants