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

Prebid.js gives error on some iphone models such as 11 #12500

Closed
opskn opened this issue Nov 26, 2024 · 4 comments
Closed

Prebid.js gives error on some iphone models such as 11 #12500

opskn opened this issue Nov 26, 2024 · 4 comments

Comments

@opskn
Copy link

opskn commented Nov 26, 2024

Type of issue

Prebid.js gives error on some iphone models such as 11

Description

Hello,
Prebid.js version created from prebid.org website gives error on some iphone models such as 11 or 8
When I try to debug error, I can't. Because I can not see in developer console. When I open by clicking error message, nothing happnes instead og going error source.

Steps to reproduce

I created very basic blank page for testing.
https://pigeoon-native.b-cdn.net/common/v8/prebid.html
You can also create blank html page and paste belowed code into html page

<script async src="https://pigeoon-native.b-cdn.net/common/v8/prebid9.20.0.js"></script>

If you test with "BrowserStack" on iPhone 11 chrome or safari you can see error on console

Test page

https://pigeoon-native.b-cdn.net/common/v8/prebid.html

Expected results

Gives error
SyntaxError: Unexpected token '?'

Actual results

Platform details

Other information

@opskn
Copy link
Author

opskn commented Nov 26, 2024

If anyone can help I would be very happy

@patmmccann
Copy link
Collaborator

patmmccann commented Nov 26, 2024

https://browserslist.dev/?q=Pi4xOSU%3D we use > .25% for the version on the download page; it is adjusted here

"> 0.25%",
. You're welcome to change that value before building your package. 0.19 captures Safari 12+

Do you find iphone 11 with safari belowe 13.4 is popular?

@dgirardi
Copy link
Collaborator

To elaborate: the error is due to the browser not supporting some JS features; for example ?? is supported from IOS 13.4, and the iphone 11 available on Browserstack is running 13.1. I am not an iphone user so I don't know if that means that "real" devices are stuck on that version - an OS update would solve the issue.

We compile against browsers that have at least 0.25% market share and the earliest IOS version that passes that test is 15.6. You can adjust that as @patmmccann mentioned.

@opskn
Copy link
Author

opskn commented Nov 26, 2024

Thank you @patmmccann and @dgirardi

This was very helpful information. It works!

Actually you're right. But one of our manager noticed this situation.

Thanks a lot again

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

No branches or pull requests

3 participants