Some UI APis ETA?

Hi Is there a rough ETA for these?

system.openURL

native.showAlert

native.showPopup

I could make my own custom showAlert and share it for time being. Just need something to give a standard message. Im assuming the open URL shouldn’t be too difficult and assume the Popups are a can of worms?

Apart from the SSL cipher thing that I think should be okay.

I have just tried porting a recent app over and realize quite a few bits are missing.

We’ll have native.showAlert() support by next week.

We have no plans on adding native.showPopup() support.  You’ll have to do that yourself via C# using our native/Lua bridge we documented via the link below.  I’ll be happy to give you some pointers with this if you need some help.  Plus, we have a couple other Corona developers who have posted here that have experience with this as well.

   http://docs.coronalabs.com/daily/coronacards/wp8/index.html#lua-interop-communications

We currently have no plans to implement system.openURL(), but if there is enough demand for it, then we’ll be willing to do it.  But I also know that other Corona developers easily did this themselves via our native/Lua bridge as well.

At the moment, we’re more focused on things that you can’t implement on the C# side via our native/Lua bridge or on features that are a bit more difficult to implement.  For example, a native.showAlert() equivalent on WP8 which displays a non-blocking message box with customizable button text is actually not simple to implement in C# at all.  It involves creating a custom XAML popup and is quite a bit of work.  I’ve spent a week working on it so far and am now adding all of the finishing touches.  I think you’ll be quite pleased with it in the end.

Regarding the SSL cipher, how are you handling this on iOS and Android right now?  Via the OpenSSL plugin?

Okay sounds great. I will for now just remove it. I can add all my links later. I will take a look at the bridge way for urls. I have managed to get the idle timer working so I hope to modifiy that. 

Yeah using that openSSL plugin. although its a bit buggy (on restaring) it did the job well

We actually already support the system.setIdleTimer() and system.getIdeTimer() functions on WP8.  We have beta developers who are already using it now.  I just noticed that we’ve forgotten to document this, so, I’ll update the documentation today.  Thanks for noticing that.

Regarding doing your own system.openURL() and native.showPopup() equivalents, you can do so via the .NET classes under the “Microsoft.Phone.Tasks” namespace.

   http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.aspx

For example, you would use the “Microsoft.Phone.Tasks.WebBrowserTask” to display a URL via the default browser app.  You would use the “Microsoft.Phone.Tasks.EmailComposeTask” class to do a mail popup equivalent.

Edit:

Oh wait.  We did document that we support setIdleTimer() and getIdleTimer().  It’s in our daily build documentation.  Never mind.  :slight_smile:

Thanks I will look at this next week and if I get any joy I will post

Rob,

We were ahead of schedule this week and ended up throwing in system.openURL() support.  The next CoronaCards update we distribute will include support.  Thought you’d like to hear that.  :slight_smile:

We’ve tested it with http://, https://, mailto:, and tel: URL schemes.  All of them worked as expected.

The following link on Microsoft’s site documents the other URLs that are supported.  I haven’t tried them, but feel free to give them a try.  You might be particularly interested in the “zune:reviewapp” URL, which is supposed to launch the Windows Phone Store review page for the calling app.

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

Thanks Joshua. I had just recently got some of these working. I’ve made a nice module that opens ads, urls and do native system alerts, Just need to figure out how to implement the options in the popup. I actually re coded the native alert function for ease of use but currently only accepts the first string. Not sure how to do the options yet but will have a look. Cheers for this though. I’ll also look at the rate function. At the moment I just direct it to the app which works white well as it automatically goes to where ratings are. What I would like to know is how I can make my own class with all my own custom programs instead of addimg alll to xaml.cs. Anyway I’m off for a sunny break, Thanks

I’m glad things are moving along nicely for you.  :slight_smile:

Sounds like you’re quickly mastering Microsoft’s .NET framework.

The next WP8 CoronaCards update will also include native.showAlert() and native.cancelAlert() support as well.  We’ve also exposed our custom XAML popup to .NET developers like you in case you want the same functionality outside of Lua.  It has not ties to Lua and is purely a .NET class.  We’ve already uploaded the documentation here…

   http://docs.coronalabs.com/daily/native/wp8/html/html/T_CoronaLabs_Corona_WinRT_Phone_CoronaMessageBox.htm

>> What I would like to know is how I can make my own class with all my own custom programs instead of adding all to xaml.cs.

Just do the following in Visual Studio:

  1. Go to the “Solution Explorer” panel.
  2. Right click on your project node.
  3. In the popup menu, click on “Add\Class”.
  4. In the “Add New Item” window, give your class a name and click the “Add” button.  (Make sure to keep the *.cs extension.)

If you “Add\Class” under your project node, then Visual Studio will automatically add it under your project’s root namespace.  This means that your “MainPage.xaml.cs” class can directly access your new class.

We’ll have native.showAlert() support by next week.

We have no plans on adding native.showPopup() support.  You’ll have to do that yourself via C# using our native/Lua bridge we documented via the link below.  I’ll be happy to give you some pointers with this if you need some help.  Plus, we have a couple other Corona developers who have posted here that have experience with this as well.

   http://docs.coronalabs.com/daily/coronacards/wp8/index.html#lua-interop-communications

We currently have no plans to implement system.openURL(), but if there is enough demand for it, then we’ll be willing to do it.  But I also know that other Corona developers easily did this themselves via our native/Lua bridge as well.

At the moment, we’re more focused on things that you can’t implement on the C# side via our native/Lua bridge or on features that are a bit more difficult to implement.  For example, a native.showAlert() equivalent on WP8 which displays a non-blocking message box with customizable button text is actually not simple to implement in C# at all.  It involves creating a custom XAML popup and is quite a bit of work.  I’ve spent a week working on it so far and am now adding all of the finishing touches.  I think you’ll be quite pleased with it in the end.

Regarding the SSL cipher, how are you handling this on iOS and Android right now?  Via the OpenSSL plugin?

Okay sounds great. I will for now just remove it. I can add all my links later. I will take a look at the bridge way for urls. I have managed to get the idle timer working so I hope to modifiy that. 

Yeah using that openSSL plugin. although its a bit buggy (on restaring) it did the job well

We actually already support the system.setIdleTimer() and system.getIdeTimer() functions on WP8.  We have beta developers who are already using it now.  I just noticed that we’ve forgotten to document this, so, I’ll update the documentation today.  Thanks for noticing that.

Regarding doing your own system.openURL() and native.showPopup() equivalents, you can do so via the .NET classes under the “Microsoft.Phone.Tasks” namespace.

   http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.aspx

For example, you would use the “Microsoft.Phone.Tasks.WebBrowserTask” to display a URL via the default browser app.  You would use the “Microsoft.Phone.Tasks.EmailComposeTask” class to do a mail popup equivalent.

Edit:

Oh wait.  We did document that we support setIdleTimer() and getIdleTimer().  It’s in our daily build documentation.  Never mind.  :slight_smile:

Thanks I will look at this next week and if I get any joy I will post

Rob,

We were ahead of schedule this week and ended up throwing in system.openURL() support.  The next CoronaCards update we distribute will include support.  Thought you’d like to hear that.  :slight_smile:

We’ve tested it with http://, https://, mailto:, and tel: URL schemes.  All of them worked as expected.

The following link on Microsoft’s site documents the other URLs that are supported.  I haven’t tried them, but feel free to give them a try.  You might be particularly interested in the “zune:reviewapp” URL, which is supposed to launch the Windows Phone Store review page for the calling app.

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

Thanks Joshua. I had just recently got some of these working. I’ve made a nice module that opens ads, urls and do native system alerts, Just need to figure out how to implement the options in the popup. I actually re coded the native alert function for ease of use but currently only accepts the first string. Not sure how to do the options yet but will have a look. Cheers for this though. I’ll also look at the rate function. At the moment I just direct it to the app which works white well as it automatically goes to where ratings are. What I would like to know is how I can make my own class with all my own custom programs instead of addimg alll to xaml.cs. Anyway I’m off for a sunny break, Thanks

I’m glad things are moving along nicely for you.  :slight_smile:

Sounds like you’re quickly mastering Microsoft’s .NET framework.

The next WP8 CoronaCards update will also include native.showAlert() and native.cancelAlert() support as well.  We’ve also exposed our custom XAML popup to .NET developers like you in case you want the same functionality outside of Lua.  It has not ties to Lua and is purely a .NET class.  We’ve already uploaded the documentation here…

   http://docs.coronalabs.com/daily/native/wp8/html/html/T_CoronaLabs_Corona_WinRT_Phone_CoronaMessageBox.htm

>> What I would like to know is how I can make my own class with all my own custom programs instead of adding all to xaml.cs.

Just do the following in Visual Studio:

  1. Go to the “Solution Explorer” panel.
  2. Right click on your project node.
  3. In the popup menu, click on “Add\Class”.
  4. In the “Add New Item” window, give your class a name and click the “Add” button.  (Make sure to keep the *.cs extension.)

If you “Add\Class” under your project node, then Visual Studio will automatically add it under your project’s root namespace.  This means that your “MainPage.xaml.cs” class can directly access your new class.