最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - smart banner on chrome in IOS - Stack Overflow

programmeradmin4浏览0评论

I am working with this smart banner javascript library

.smartbanner

everything seems to be working well except from chrome on IOS

when clicking on the view button in chrome on IOS a screen full of text opens in the browser. It looks like json reply.

the view button is routing me to a url like this

It seems to be an issue with chrome. I was wondering if anyone else has seen this issue.

I have currently worked around it by not displaying the smart banner if browsings in chrome on IOS

Looking at the header information it appears that chrome is not handling the header information correctly

x-apple-lok-response-date: Thu May 30 08:43:40 PDT 2013
x-apple-translated-wo-url: /WebObjects/MZStore.woa/wa/viewSoftware?id=362872995&cc=us
x-apple-orig-url-path: /us/app/id362872995
x-apple-application-site: ST11
apple-timing-app: 122 ms
x-apple-aka-ttl: Generated Thu May 30 08:43:40 PDT 2013, Expires Thu May 30 08:44:40 PDT 2013, TTL 60s
x-apple-application-instance: 2126047
x-webobjects-loadaverage: 0
x-apple-jingle-correlation-key: JZ6JKEFVAVIEA
X-Apple-Partner: origin.0

I am working with this smart banner javascript library

https://github./jasny/jquery.smartbanner

everything seems to be working well except from chrome on IOS

when clicking on the view button in chrome on IOS a screen full of text opens in the browser. It looks like json reply.

the view button is routing me to a url like this

https://itunes.apple./us/app/id362872995 https://itunes.apple./us/app/id371707711

It seems to be an issue with chrome. I was wondering if anyone else has seen this issue.

I have currently worked around it by not displaying the smart banner if browsings in chrome on IOS

Looking at the header information it appears that chrome is not handling the header information correctly

x-apple-lok-response-date: Thu May 30 08:43:40 PDT 2013
x-apple-translated-wo-url: /WebObjects/MZStore.woa/wa/viewSoftware?id=362872995&cc=us
x-apple-orig-url-path: /us/app/id362872995
x-apple-application-site: ST11
apple-timing-app: 122 ms
x-apple-aka-ttl: Generated Thu May 30 08:43:40 PDT 2013, Expires Thu May 30 08:44:40 PDT 2013, TTL 60s
x-apple-application-instance: 2126047
x-webobjects-loadaverage: 0
x-apple-jingle-correlation-key: JZ6JKEFVAVIEA
X-Apple-Partner: origin.0
Share Improve this question edited May 31, 2013 at 18:52 nate_weldon asked May 30, 2013 at 14:20 nate_weldonnate_weldon 2,3491 gold badge26 silver badges34 bronze badges 1
  • appears the chrome is not handeling the header information that apple is passing back – nate_weldon Commented May 31, 2013 at 18:50
Add a ment  | 

2 Answers 2

Reset to default 6

I came across the same problem so instead of using https, I tried itms// or itms-app// . They didn't work as well. But then I tried itmss://, and it worked.

So solution is:

https://itunes.apple./us/app/id371707711

needs to be

itmss://itunes.apple./us/app/id371707711

This is a bug on itunes.apple., returning the wrong content for Chrome for iOS's user agent (easily tested with a tool that lets you request content with different User-Agent headers). The best thing to do would be to report the problem to Apple so that they fix their servers.

发布评论

评论列表(0)

  1. 暂无评论