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

The iOS 15 user-agent string no longer contains the term "iPad" #150

Open
u01jmg3 opened this issue Mar 7, 2022 · 1 comment
Open

The iOS 15 user-agent string no longer contains the term "iPad" #150

u01jmg3 opened this issue Mar 7, 2022 · 1 comment

Comments

@u01jmg3
Copy link

u01jmg3 commented Mar 7, 2022

The user-agent string for an iPad running iOS 15.3.1:


isIOS = ua.indexOf('ipad') > -1 || ua.indexOf('iphone') > -1,

exports.requestPermission = function (callback, scope) {
if (isIOS) {
this.exec('request', null, callback, scope);
} else {
this.createCallbackFn(callback, scope)(true);
}
};

@u01jmg3
Copy link
Author

u01jmg3 commented Mar 7, 2022

This is one possible solution.

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

1 participant