V Vern Member Licensed User Longtime User Oct 20, 2017 #1 I've been staring at this for hours and can't see the problem. The code below loads the web page into the webview but in the IDE Log panel it displays "Not supported". I don't know what's "Not supported" and if I try to display another webpage in a different sub, I get the "*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener:..." message. I'm using B4i 4.3, a local Mac and IOS 11.0.3 on the phone. Does anyone see a problem? Sub Process_Globals Private WebView1 As WebView Private Btn_finish As Button Private Page3 As Page End Sub Sub Show_View If Page3.IsInitialized = False Then Page3.Initialize("Page3") End If Page3.RootPanel.LoadLayout("mywebview") Main.NavControl.ShowPage(Page3) WebView1.LoadURL("http://www.google.com") End Sub
I've been staring at this for hours and can't see the problem. The code below loads the web page into the webview but in the IDE Log panel it displays "Not supported". I don't know what's "Not supported" and if I try to display another webpage in a different sub, I get the "*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener:..." message. I'm using B4i 4.3, a local Mac and IOS 11.0.3 on the phone. Does anyone see a problem? Sub Process_Globals Private WebView1 As WebView Private Btn_finish As Button Private Page3 As Page End Sub Sub Show_View If Page3.IsInitialized = False Then Page3.Initialize("Page3") End If Page3.RootPanel.LoadLayout("mywebview") Main.NavControl.ShowPage(Page3) WebView1.LoadURL("http://www.google.com") End Sub
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2017 #2 Please use [code]code here...[/code] tags when posting code. Does it work with https instead of http? Upvote 0
Please use [code]code here...[/code] tags when posting code. Does it work with https instead of http?
V Vern Member Licensed User Longtime User Oct 22, 2017 #3 No. I thought of that and tried it both ways and it makes no difference. I'm upgrading the Mac OS and xcode to see if it makes any difference (taking hours). Upvote 0
No. I thought of that and tried it both ways and it makes no difference. I'm upgrading the Mac OS and xcode to see if it makes any difference (taking hours).
V Vern Member Licensed User Longtime User Oct 22, 2017 #4 Upgraded the Mac OS to High Sierra and xcode 9.0.1 but the problem is still there. Looks like there may be a bug with webview. Upvote 0
Upgraded the Mac OS to High Sierra and xcode 9.0.1 but the problem is still there. Looks like there may be a bug with webview.
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2017 #5 Are you testing it on a real device? Can you upload the project? Upvote 0
V Vern Member Licensed User Longtime User Oct 23, 2017 #6 Yes, this is being tested on real devices. We had Apple update the Mac and iPhone and still the problem persists. Unfortunately we cannot post the project, but the subs listed above is the exact code that generated the problem in the first place. Upvote 0
Yes, this is being tested on real devices. We had Apple update the Mac and iPhone and still the problem persists. Unfortunately we cannot post the project, but the subs listed above is the exact code that generated the problem in the first place.
eps Expert Licensed User Longtime User Oct 23, 2017 #7 Can you upload a mini project which displays the same issue? Upvote 0
V Vern Member Licensed User Longtime User Oct 26, 2017 #8 Didn't have time to create a project but I figured it out. There was a line of code in a sub copied from a B4A program that called "GetEncryptedObject" to retrieve an encrypted object from keyvaluestore. This had nothing to do with the sub that used the webview but somehow it caused the "Not Supported" message. Got rid of the call and everything works. Thanks. Upvote 0
Didn't have time to create a project but I figured it out. There was a line of code in a sub copied from a B4A program that called "GetEncryptedObject" to retrieve an encrypted object from keyvaluestore. This had nothing to do with the sub that used the webview but somehow it caused the "Not Supported" message. Got rid of the call and everything works. Thanks.