Code Monkey home page Code Monkey logo

Comments (6)

jabirraju avatar jabirraju commented on May 29, 2024 1

Yes using setTimeout( delayCallIDFA, 500 ); and placing rest code in function delayCallIDFA it works and my 2 apps approved on itunes.

from ane-idfa.

marchbold avatar marchbold commented on May 29, 2024

What happens in your app when you trigger the authorisation request?

Can you post the logs from your device?

https://docs.airnativeextensions.com/docs/tutorials/device-logs

from ane-idfa.

yrozijn avatar yrozijn commented on May 29, 2024

I can confirm this. I had 1 app rejected yesterday because of this. (Interestingly, another app using the exact same shared code was accepted that very same day.)

This is my code:

        private function authorizeTracking(aStatus:String = null):void
        {
            if (!aStatus) aStatus = IDFA.service.authorisationStatus();
            trace("ATT status: " + aStatus);
            switch(aStatus)
            {
                case TrackingAuthorisationStatus.NOT_DETERMINED:
                    if (!mAskingAuthorization)
                    {
                        mAskingAuthorization = true;
                        trace("Show ATT request");
                        IDFA.service.requestAuthorisation(authorizeTracking);
                        return;
                    }
                    // Not determined, even after showing the request dialog
                    mNonPersonalized = true;
                    break;
                case TrackingAuthorisationStatus.AUTHORISED:
                    mNonPersonalized = false;
                    break;
                case TrackingAuthorisationStatus.DENIED:
                    mNonPersonalized = true;
                    break;
                case TrackingAuthorisationStatus.RESTRICTED:
                    mNonPersonalized = false;
                    break;
            }
            
            mAskingAuthorization = false;
            
            // Setup ad service, ask for consent (UMP) if required, then initialize ads
            setupAds();
        }

On iOS 14, it works fine, and shows the ATT dialog before UMP can interfere.
Updated my device to iOS 15, and now there is no ATT dialog showing before the UMP ones. Eventually, UMP does show the ATT dialog, but because of the dialogs preceding it, the app is rejected.

The iOS 15 device log shows:

standaard	11:27:52.693551+0200	MyApp	com.distriqt.IDFA::DTIDFAController::authorisationStatus
standaard	11:27:52.693653+0200	MyApp	[ATTrackingManager] trackingAuthorizationStatus API call invoked.
standaard	11:27:52.696350+0200	MyApp	ATT status: not_determined
standaard	11:27:52.696398+0200	MyApp	Show ATT request
standaard	11:27:52.696448+0200	MyApp	com.distriqt.IDFA::DTIDFAController::requestAuthorisation
standaard	11:27:52.696497+0200	MyApp	[ATTrackingManager] trackingAuthorizationStatus API call invoked.
standaard	11:27:52.696758+0200	MyApp	[ATTrackingManager] requestTrackingAuthorizationWithCompletionHandler API call invoked.
standaard	11:27:52.697083+0200	MyApp	com.distriqt.IDFA::DTIDFAController::requestAuthorisation: complete: not_determined
standaard	11:27:52.700635+0200	MyApp	Received configuration update from daemon (initial)
standaard	11:27:52.700742+0200	MyApp	Skip setting user action callback for 3rd party apps
standaard	11:27:52.701323+0200	MyApp	ATT status: not_determined
standaard	11:27:52.701647+0200	MyApp	Setup Ads

Another device log with info and debugging messages included is attached:
ioslog2.txt

from ane-idfa.

marchbold avatar marchbold commented on May 29, 2024

Did you try the fix mentioned here to delay the initial request by a small amount to ensure the app is in the correct state?

from ane-idfa.

marchbold avatar marchbold commented on May 29, 2024

https://forum.starling-framework.org/d/23380-apptrackingtransparency-requester-different-behaviour-since-ios-15/2

from ane-idfa.

yrozijn avatar yrozijn commented on May 29, 2024

I didn't know of that fix; I'll try it. Thanks.

from ane-idfa.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.