Skip to main content
ben wu
Participant
November 6, 2014
Answered

StageWebView question

  • November 6, 2014
  • 1 reply
  • 563 views

Hi :

I can not connect to dropbox by using StageWebView to open a window inside my App in iPad Air,

but it works fine in PC iOS simulator. I get the user agent string by What's My User Agent?.

User agent string in PC iOS simulator:

Mozilla/5.0 (Linux; U; Android 2.2; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.19.4 AdobeAIR/14.

The user agent string is lacking of "Safari" on iPad Air as following by using StageWebView :

  • iOS in iPad Air with the test App
    Mozilla/5.0 (iPad; CPU OS 8_1 lik Mac OX S) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12B410

I think it should be the same as the native ? or at least I can get something like "Safari" ?

  • Safari in iPadAir
    Mozilla/5.0 (iPad; CPU OS 8_1 like Mac OSX) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B410 Safari/600.1.4

It would be appreciated if anyone could give me some suggestions.

Best Wishes,

Ben

This topic has been closed for replies.
Correct answer ben wu

I found the reason, I forgot to set the StageWebView() to true.

code:

webView = new StageWebView(true);

Once I set it for the constructor, the problem is solved.

1 reply

ben wu
ben wuAuthorCorrect answer
Participant
November 10, 2014

I found the reason, I forgot to set the StageWebView() to true.

code:

webView = new StageWebView(true);

Once I set it for the constructor, the problem is solved.