tabris icon indicating copy to clipboard operation
tabris copied to clipboard

Browser Widget - EntryPoint URL fails on iOS

Open tpittner opened this issue 9 years ago • 6 comments

setting the URL of the browser widget fails on iOS devices, if the URL represents an entrypoint.

This can be reproduced e.g. by using tabris demo-application. We've added a new EntryPoint to the demo-application e.g. "application.addEntryPoint("/test", Test.class, null);" ... while corresponding class implements nothing more than a browser widget.

Now if the URL of an existing EntryPoint is invoked (e.g. setUrl("http://localhost:1234/input") the browser shows strange output.

It seems that the embedded javascript in file "test" (which is first of all transferred from tabris server to the client) was misinterpreted by iOS internal browser.

This could not be reproduced on web- or android-client. We used Tabris 1.4 and iPhone5c/iOS8 for testing.

tpittner avatar Oct 15 '14 15:10 tpittner

Thanks for the bug report. Which iOS8 version are you using? iOS 8.0, 8.0.1 or 8.0.2?

jordiboehme avatar Oct 16 '14 10:10 jordiboehme

we are using version 8.0.2, but this also occurs with version 8.0.1

tpittner avatar Oct 16 '14 11:10 tpittner

Can you post a screenshot of the "strange output"?

jordiboehme avatar Oct 16 '14 11:10 jordiboehme

here you go! On second view it seems like json-data...

img_0070_1

tpittner avatar Oct 16 '14 12:10 tpittner

Ok, thanks again. We identified the problem. In iOS8 the Browser widget (UIWebView) inherits the User-Agent from the Tabris framework. The User-Agent on the other hand is used by the RAP-based Tabris Server to distinguish between an Browser (to send HTML) and a tabris client (to send JSON). So basically the server thinks your browser widget is a tabris client.

We will fix this and provide you with a new build in the next days.

jordiboehme avatar Oct 16 '14 14:10 jordiboehme

Great, looking forward for the new build!

tpittner avatar Oct 16 '14 15:10 tpittner