Does someone knows how to use TWebbrowser FMX for mobile? I have contacted Xavier who bring to us GMLib (http://www.cadetill.com/gmlib/) and would like to help him to port into mobile dev. He needs to know how to use javascript and get vars from the browser...

Does someone knows how to use TWebbrowser FMX for mobile? I have contacted Xavier who bring to us GMLib (http://www.cadetill.com/gmlib/) and would like to help him to port into mobile dev. He needs to know how to use javascript and get vars from the browser...
http://www.cadetill.com/gmlib/

Comments

  1. The mobile TWebBrowser is very limited with no access to javascript or the document. I talked to Marco Cantu bout it and he says they are aware of the current limitations. Hopefully they will improve the situation in a future release.

    I think you have two options, both of which involve translating native APIs to Delphi. The first is to implement the additional parts of the iOS/Android WebBrowser APIs in order to access the additional functionality required to display a map. The second is to translate the platform specific mapping APIs in iOS and Android. If you decide on the second approach I may be able to help you get started as I already have a translation of the iOS MapKit API written by Lars Meyer.

    I'll also be happy to help you guys out (if I can) as I really need maps in iOS and Android.

    ReplyDelete
  2. That´s bad news... Not only because of GMLib.  Does the native Android browser could be accessible via JNI? Problem here will be with iOS... two different codes.

    ReplyDelete
  3. Take a look at the way the TwebBrowser is implemented. It adds an extra wrapper with a common interface that implements the required iOS or Android API.

    I'm pretty sure that it can be done via JNI. Does this help? https://github.com/android/platform_frameworks_base/blob/master/core/java/android/webkit/WebView.java.

    ReplyDelete

Post a Comment