How to display HTML ?

As far as I can see, the webView is not supported.

In all our games we have screens (e.g. help, about…) which uses HTML and webView.

What is the alternative here?

In what way is a webView not supported?
 

Rob

I came to that conclusion, can’t find any info if this is true or not.

On the game I ported, when I open the screen with webView, nothing is displayed and there is no error in the log.

I take a look here: http://docs.coronalabs.com/daily/coronacards/wp8/support.html and native.newWebView nor native.showWebPopup are listed as supported SDK features.

Oh, sorry, another case of me not reading the forum label to see you’re talking about WP8.  Pretty much if it starts with native.*, I would not expect it to work.  Since WP8 is implemented directly in Visual Studio and you build a native app that runs a Corona View, you can implement native features the way you need them.

So, correct, native.newWebView() does not work in WP8.  You need to build your own.

Rob

You have to implement it yourself via a .NET “WebBrowser” control.  Microsoft documents it here…

   https://msdn.microsoft.com/en-us/library/windows/apps/ff431797(v=vs.105).aspx

   https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.controls.webbrowser(v=vs.105).aspx

You’ll need to use our Lua/.NET bridging interface.  You can display Microsoft’s WebBrowser control in your “MainPage.xaml.cs” source code by adding the control to your CoronaPanel via the Children.Add() method like this…

   fCoronaPanel.Children.Add(myWebBrowser);

And you would remove the control from the screen by reference like this…

   fCoronaPanel.Children.Remove(myWebBrowser);

In what way is a webView not supported?
 

Rob

I came to that conclusion, can’t find any info if this is true or not.

On the game I ported, when I open the screen with webView, nothing is displayed and there is no error in the log.

I take a look here: http://docs.coronalabs.com/daily/coronacards/wp8/support.html and native.newWebView nor native.showWebPopup are listed as supported SDK features.

Oh, sorry, another case of me not reading the forum label to see you’re talking about WP8.  Pretty much if it starts with native.*, I would not expect it to work.  Since WP8 is implemented directly in Visual Studio and you build a native app that runs a Corona View, you can implement native features the way you need them.

So, correct, native.newWebView() does not work in WP8.  You need to build your own.

Rob

You have to implement it yourself via a .NET “WebBrowser” control.  Microsoft documents it here…

   https://msdn.microsoft.com/en-us/library/windows/apps/ff431797(v=vs.105).aspx

   https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.controls.webbrowser(v=vs.105).aspx

You’ll need to use our Lua/.NET bridging interface.  You can display Microsoft’s WebBrowser control in your “MainPage.xaml.cs” source code by adding the control to your CoronaPanel via the Children.Add() method like this…

   fCoronaPanel.Children.Add(myWebBrowser);

And you would remove the control from the screen by reference like this…

   fCoronaPanel.Children.Remove(myWebBrowser);