Resco JavaScript Bridge: Difference between revisions

Jump to navigation Jump to search
Line 75: Line 75:
In [[Resco mobile apps]], HTML pages are displayed by using Web Browser Component or its equivalent on the respective mobile platform. This means that the browser window is displayed in the mobile app with your custom content.
In [[Resco mobile apps]], HTML pages are displayed by using Web Browser Component or its equivalent on the respective mobile platform. This means that the browser window is displayed in the mobile app with your custom content.


The browser is, in fact, the standard browser installed on that particular device – on iOS it's Safari, on Android Chrome, and on Windows devices it's Edge or Internet Explorer. So, when creating your custom pages, consider the capabilities of the corresponding mobile browser. To display the content correctly on all platforms, make sure that you are using HTML and JavaScript features supported by all browsers and their versions on the targeted mobile devices.
The browser is, in fact, the standard browser core installed on that particular device:
* iOS: WKWebView (default, newer, faster, more secure; similar to Safari browser) or WebView (legacy option)
* Android: Chrome
* Windows 7: Internet Explorer or Chromium Embedded Framework
* Windows 10: Edge
 
So, when creating your custom pages, consider the capabilities of the corresponding mobile browser. To display the content correctly on all platforms, make sure that you are using HTML and JavaScript features supported by all browsers and their versions on the targeted mobile devices.


Another important aspect to consider is that when a page is displayed in Web Browser Component, some of the features might not be enabled. A typical example is Window.Print() – even though this function is supported by many mobile browsers, when the browsers are running in the Web Browser Component (i.e. in Resco mobile application) this feature is disabled.
Another important aspect to consider is that when a page is displayed in Web Browser Component, some of the features might not be enabled. A typical example is Window.Print() – even though this function is supported by many mobile browsers, when the browsers are running in the Web Browser Component (i.e. in Resco mobile application) this feature is disabled.

Navigation menu