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

requestPermission not showing dialog on iPad #26

Open
bigreni opened this issue Dec 3, 2022 · 1 comment
Open

requestPermission not showing dialog on iPad #26

bigreni opened this issue Dec 3, 2022 · 1 comment

Comments

@bigreni
Copy link

bigreni commented Dec 3, 2022

The permission dialog works fine on iPhone but the dialog is not showing on the iPad simulators. I am using the sample code provided in the example.

    const idfaPlugin = cordova.plugins.idfa;

    idfaPlugin.getInfo()
        .then(info => {
            if (!info.trackingLimited) {
                return info.idfa || info.aaid;
            } else if (info.trackingPermission === idfaPlugin.TRACKING_PERMISSION_NOT_DETERMINED) {
                return idfaPlugin.requestPermission().then(result => {
                    if (result === idfaPlugin.TRACKING_PERMISSION_AUTHORIZED) {
                        return idfaPlugin.getInfo().then(info => {
                            return info.idfa || info.aaid;
                        });
                    }
                });
            }
        });

I am using Appetize.io for the simulator (iPad Air 2, iOS 14.5). Has anyone else had this problem?

Thanks for your help

@timonmasberg
Copy link

you may have disabled the "allow apps to request to track" flag in your ios settings (privacy & security => tracking)

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

2 participants