Jump to content


Photo

UniGUI Touch Mobile and firemonkey TWebBrowser

Touch mobile TWebBrowser

  • Please log in to reply
3 replies to this topic

#1 arilotta

arilotta

    Member

  • uniGUI Subscriber
  • PipPip
  • 46 posts
  • LocationTrieste, Italy

Posted 20 June 2017 - 12:53 PM

I'm unable to open a unigui mobile site from a FireMonkey app using the TWebBrowser component, I always get

"Invalid session or session timeout. restart Application".

 

If I open the website from a mobile browser (Chrome) everything works smoothly.

 

Is there something I'm missing ?

 

Thanks

Andrea Arilotta


  • 0

#2 arilotta

arilotta

    Member

  • uniGUI Subscriber
  • PipPip
  • 46 posts
  • LocationTrieste, Italy

Posted 20 June 2017 - 01:30 PM

I found the issue was the standard port 8077 used by uniGui; for some strange reason moving the port to 8080 made the 

site available to TWebBrowser.

The port 8077 was reacheable by mobile Chrome, then I think it is a limitation of TWebBrowser component...


  • 0

#3 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 119 posts
  • LocationFlorida, USA

Posted 20 June 2017 - 04:15 PM

Are you doing this to create an app that just goes to your Unigui app?  Just a couple lines of code that sets the URL then opens?

 

If so does it work well?  Are you able to create an iOS app?  I don't have the latest version of XE (I have XE6) so I can't a mobile app for the current Android phones. So I used AppsGeyser, which works pretty well but can not make an iOS app.

 

One issue I have with the app is that if I click log out I go to:

  UniApplication.Restart;

Which work with my browser (goes back to the login screen) but in the app goes to the:

"Invalid session or session timeout. restart Application". message

 

Does this happen with your application?


  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#4 arilotta

arilotta

    Member

  • uniGUI Subscriber
  • PipPip
  • 46 posts
  • LocationTrieste, Italy

Posted 23 June 2017 - 02:05 PM

Yes, that's the idea, and it works as you would expect in a mobile browser. No difference between a FireMonkey app with TWebBrowser component and Chrome mobile browser.

Regarding the login form, I use a TUnimLoginForm form.

Then if from the main form you specify "ModalResult:=mrOk;" you'd go back to login form. It works perfectly, as in the mobile browser.


  • 0





Also tagged with one or more of these keywords: Touch, mobile TWebBrowser

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users