Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: EDN/Member services    [ Add a report in this area ]  
Report #:  137705   Status: Reported
TWebBrowser compatability issue with iOS on Delphi 10.1
Project:  EDN Build #:  24.0.22858.6822
Version:    2 Submitted By:   Jason West
Report Type:  Basic functionality failure Date Reported:  7/11/2016 5:25:29 PM
Severity:    Commonly encountered problem Last Updated:
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Code that used to work on Delphi 10.0 (Seattle) no longer functions as expected on Delphi 10.1 (Berlin).

When developing a Firemonkey multi device application - and only when deployed onto iOS - the TWebBrowser appears to become disabled or unusable when a new multi device form is created (for example a dialog or settings form).  If the form is removed from being automatically created (under the project options) AND never used in the app, the WebBrowser works as expected, however as soon as the form is created in the application (either on startup or on demand) the WebBrowser is compromised.  In my particular case I am using the 'LoadFromStrings' functionality to load up a google maps & calling 'EvaluateJavaScript' to enact functions for plotting markers.  After the new multi device form is created the WebBrowser no longer functions as expected.  This behaviour is not observed on Windows or Android and the TWebBrowser works fine on these mobile platforms.
Steps to Reproduce:
Create a Multidevice application, drop a TWebBrowser on the main form.  Place a button on the form that when clicked will perform a basic 'LoadFromStrings' example that loads a google map or alternate functionality.  Add a new multi device form to the application (it will become an 'Auto-create form).  Target the iOS platform and deploy.  On running the application try clicking the button to 'LoadFromStrings'.  In my testing the WebBrowser is not functional.

Close the application.

Remove the second form from as an 'auto-create' form under the project options.

Re-run the application targeting iOS and observe the TWebBrowser behaving as expected.
None found - this functionality worked fine on Delphi 10.0 (Seattle)


Server Response from: ETNACODE01