I need to display a webpage inside my App, but native.newWebView doesn´t works on CoronaCards.
Is there any other simpler solution?
thanks
I need to display a webpage inside my App, but native.newWebView doesn´t works on CoronaCards.
Is there any other simpler solution?
thanks
You’ll have to display it yourself in .NET via your MainPage.xaml file. For WP8 .NET Silverlight applications, you’ll need to use the “Microsoft.Phone.Controls.WebBrowser” class. Microsoft documents how to use this class here…
http://msdn.microsoft.com/en-us/library/windows/apps/ff431797(v=vs.105).aspx
We also document how to communicate between Lua and .NET via the link below. With this, you can create your own Lua API to create and manipulate Microsoft’s WebBrowser control. It also shows you how to communicate from .NET to Lua as well.
http://docs.coronalabs.com/daily/coronacards/wp8/communication.html
Hi Joshua,
I have encountered a problem of similar kind like this.
I am developing app for Android/iOS. I am using same function(i.e. native.newWebView()) to open my web page(external link). I have implemented same function as mentioned in your documentation, but after making build to test it on device, it gives me following error:
“net::ERR_CACHE_MISS”
Along this, I have few more questions in my mind to ask. Please take out time to answer these as well:
Regards
Tarun Luthra
As I mentioned above, you need to use Microsoft’s WebBrowser control. My suggestion to you is to do a quick test purely in C# (no Lua) and create a WebBrowser control in your MainPage’s constructor, add it as a child control to the fCoronaPanel, and then have it display a URL. Once you’ve figured out how to display a web page purely in C#, then you’re ready to create a Lua/.NET bridge interface for it.
You’ll have to display it yourself in .NET via your MainPage.xaml file. For WP8 .NET Silverlight applications, you’ll need to use the “Microsoft.Phone.Controls.WebBrowser” class. Microsoft documents how to use this class here…
http://msdn.microsoft.com/en-us/library/windows/apps/ff431797(v=vs.105).aspx
We also document how to communicate between Lua and .NET via the link below. With this, you can create your own Lua API to create and manipulate Microsoft’s WebBrowser control. It also shows you how to communicate from .NET to Lua as well.
http://docs.coronalabs.com/daily/coronacards/wp8/communication.html
Hi Joshua,
I have encountered a problem of similar kind like this.
I am developing app for Android/iOS. I am using same function(i.e. native.newWebView()) to open my web page(external link). I have implemented same function as mentioned in your documentation, but after making build to test it on device, it gives me following error:
“net::ERR_CACHE_MISS”
Along this, I have few more questions in my mind to ask. Please take out time to answer these as well:
Regards
Tarun Luthra
As I mentioned above, you need to use Microsoft’s WebBrowser control. My suggestion to you is to do a quick test purely in C# (no Lua) and create a WebBrowser control in your MainPage’s constructor, add it as a child control to the fCoronaPanel, and then have it display a URL. Once you’ve figured out how to display a web page purely in C#, then you’re ready to create a Lua/.NET bridge interface for it.