You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Toplak Daniel <D....@cadenas.de> on 2013/07/02 01:44:31 UTC
Windows 8 (not Phone 8) - native plugin support
Hi,
we are very interested in phonegap/cordova and we like the concept of HTML5/JS/CSS + native plugin APPs.
We have created a proof of concept to embed a OpenGL Render Engine into a the Html-Views (not WebGL).
The native plugin which renders on a native view is running on iOS and Android very well.
Now we whant to go a bit further and whant to bring this technic to Windows 8 (RT) platform to support the Windows 8 Desktop and the Windows RT Tablets.
For this we would like to try to get a DirectX Engine running as a native plugin. But here comes the hurdle:
Cordova-windows-8 is build on top of the Windows HTML/JS/CSS stack not as a XAML APP. We were able to build a Windows Runtime Component DLL in C++ but there we are not able to access the XAML GUI to create a view as the DirectX Rendering Context.
So are there any plans to port the cordova-windows-8 over to a XAML APP like the cordova-windows-phone8?
Mit freundlichen Grüßen / Best regards
CADENAS GmbH
Head of Mobile Development
Daniel Toplak
Re: Windows 8 (not Phone 8) - native plugin support
Posted by Daniel Toplak <da...@gmx.de>.
Hi,
any news here?
Greets Daniel
Am 02.07.2013 01:44, schrieb Toplak Daniel:
> Hi,
>
> we are very interested in phonegap/cordova and we like the concept of HTML5/JS/CSS + native plugin APPs.
> We have created a proof of concept to embed a OpenGL Render Engine into a the Html-Views (not WebGL).
> The native plugin which renders on a native view is running on iOS and Android very well.
>
> Now we whant to go a bit further and whant to bring this technic to Windows 8 (RT) platform to support the Windows 8 Desktop and the Windows RT Tablets.
> For this we would like to try to get a DirectX Engine running as a native plugin. But here comes the hurdle:
> Cordova-windows-8 is build on top of the Windows HTML/JS/CSS stack not as a XAML APP. We were able to build a Windows Runtime Component DLL in C++ but there we are not able to access the XAML GUI to create a view as the DirectX Rendering Context.
>
> So are there any plans to port the cordova-windows-8 over to a XAML APP like the cordova-windows-phone8?
>
> Mit freundlichen Grüßen / Best regards
>
> CADENAS GmbH
> Head of Mobile Development
> Daniel Toplak
>
Re: Windows 8 (not Phone 8) - native plugin support
Posted by Daniel Toplak <da...@gmx.de>.
I think, the windows phone 8 codebase is a good point to start porting
because most of this will be reusable. I think I will start at the end
of December or in the begining of January if I had enough time for this.
Mit freundlichen Grüßen / Best regards
*Daniel Toplak*
Am 10.12.2013 01:34, schrieb Jesse:
> Nothing close, but if you wanted to work on it, I could help you
> along. I have done similar explorations.
> Essentially, the code becomes closer to the Windows Phone 8
> implementation this way ...
>
> Also, Microsoft is committed to making phonegap apps work well in the
> windows8 store, so they are aware of issues, like the no UI component
> limitations, and will probably address them at some point. No word on
> when though.
>
> @purplecabbage
> risingj.com <http://risingj.com>
>
>
> On Mon, Dec 9, 2013 at 4:12 PM, Daniel Toplak <daniel.toplak@gmx.de
> <ma...@gmx.de>> wrote:
>
> Hi Jesse,
>
> yes this was a way I tried a few month ago and it works with a
> Windows Runtime Component written in C++/CX (a simple hello world
> thing, call async from JS).
> But you will be very limited in Windows Runtime Components,
> particular in creating XAML UI components. This is not
> allowed/available:
> http://social.msdn.microsoft.com/Forums/en-US/bd764f1e-887f-49b5-beb6-848cea93fb44/lauch-xaml-ui-from-c-runtime-component-in-html5javascipt-ws-app?forum=winappswithhtml5
>
> So the only way (if I understand this correctly) is to port the
> WinJS project over to a XAML C# or C++/CX project. To get this
> working.
> Is there a near or far plan on doing this? Maybe as a separate
> platform in the cordova-windows repo named "windows8xaml".
>
> I will need this for our APP project, I will do the porting my
> self when there is no work done yet and hopefully get this running :-)
>
> Mit freundlichen Grüßen / Best regards
>
> *Daniel Toplak*
>
> Am 09.12.2013 21:42, schrieb Jesse:
>> Windows 8 apps *will* be able to include plugins authored in
>> other languages, but it is not yet supported.
>> For now, you can create/add a new portable-library project to
>> your solution, and access it from async javascript.
>>
>> More details here:
>> http://msdn.microsoft.com/en-us/library/windows/apps/br230301%28v=vs.110%29.aspx
>>
>> Unfortunately, you will have to set this up yourself, and plugins
>> authored this way are not yet distributable/installable with
>> plugman/cordova-cli.
>>
>>
>> @purplecabbage
>> risingj.com <http://risingj.com>
>>
>>
>> On Mon, Dec 9, 2013 at 12:32 PM, Daniel Toplak
>> <daniel.toplak@gmx.de <ma...@gmx.de>> wrote:
>>
>> Hi,
>>
>> are there any work done on porting the windows 8 platform to
>> XAML C# or C++ implementation?
>> AFAIK if I am correct this is the only way to fully support
>> native XAML C#/C++ plugins on Windows 8 and Windows 8 RT
>> store APPs.
>>
>>
>> Mit freundlichen Grüßen / Best regards
>>
>> *Daniel Toplak*
>>
>> Am 07.07.2013 22:16, schrieb Jesse MacFadyen:
>>
>> No immediate plans. Maybe post 3.0.0
>>
>> Cheers,
>> Jesse
>>
>> Sent from my iPhone5
>>
>> On Jul 7, 2013, at 2:18 AM, Daniel Toplak
>> <daniel.toplak@gmx.de <ma...@gmx.de>> wrote:
>>
>> Hi,
>>
>> any news here?
>>
>> Greets Daniel
>>
>> Am 02.07.2013 01:44, schrieb Toplak Daniel:
>>
>> Hi,
>>
>> we are very interested in phonegap/cordova and we
>> like the concept of HTML5/JS/CSS + native plugin APPs.
>> We have created a proof of concept to embed a OpenGL
>> Render Engine into a the Html-Views (not WebGL).
>> The native plugin which renders on a native view is
>> running on iOS and Android very well.
>>
>> Now we whant to go a bit further and whant to bring
>> this technic to Windows 8 (RT) platform to support
>> the Windows 8 Desktop and the Windows RT Tablets.
>> For this we would like to try to get a DirectX Engine
>> running as a native plugin. But here comes the hurdle:
>> Cordova-windows-8 is build on top of the Windows
>> HTML/JS/CSS stack not as a XAML APP. We were able to
>> build a Windows Runtime Component DLL in C++ but
>> there we are not able to access the XAML GUI to
>> create a view as the DirectX Rendering Context.
>>
>> So are there any plans to port the cordova-windows-8
>> over to a XAML APP like the cordova-windows-phone8?
>>
>> Mit freundlichen Grüßen / Best regards
>>
>> CADENAS GmbH
>> Head of Mobile Development
>> Daniel Toplak
>>
>>
>>
>
>
Re: Windows 8 (not Phone 8) - native plugin support
Posted by Daniel Toplak <da...@gmx.de>.
Hi Jesse,
yes this was a way I tried a few month ago and it works with a Windows
Runtime Component written in C++/CX (a simple hello world thing, call
async from JS).
But you will be very limited in Windows Runtime Components, particular
in creating XAML UI components. This is not allowed/available:
http://social.msdn.microsoft.com/Forums/en-US/bd764f1e-887f-49b5-beb6-848cea93fb44/lauch-xaml-ui-from-c-runtime-component-in-html5javascipt-ws-app?forum=winappswithhtml5
So the only way (if I understand this correctly) is to port the WinJS
project over to a XAML C# or C++/CX project. To get this working.
Is there a near or far plan on doing this? Maybe as a separate platform
in the cordova-windows repo named "windows8xaml".
I will need this for our APP project, I will do the porting my self when
there is no work done yet and hopefully get this running :-)
Mit freundlichen Grüßen / Best regards
*Daniel Toplak*
Am 09.12.2013 21:42, schrieb Jesse:
> Windows 8 apps *will* be able to include plugins authored in other
> languages, but it is not yet supported.
> For now, you can create/add a new portable-library project to your
> solution, and access it from async javascript.
>
> More details here:
> http://msdn.microsoft.com/en-us/library/windows/apps/br230301%28v=vs.110%29.aspx
>
> Unfortunately, you will have to set this up yourself, and plugins
> authored this way are not yet distributable/installable with
> plugman/cordova-cli.
>
>
> @purplecabbage
> risingj.com <http://risingj.com>
>
>
> On Mon, Dec 9, 2013 at 12:32 PM, Daniel Toplak <daniel.toplak@gmx.de
> <ma...@gmx.de>> wrote:
>
> Hi,
>
> are there any work done on porting the windows 8 platform to XAML
> C# or C++ implementation?
> AFAIK if I am correct this is the only way to fully support native
> XAML C#/C++ plugins on Windows 8 and Windows 8 RT store APPs.
>
>
> Mit freundlichen Grüßen / Best regards
>
> *Daniel Toplak*
>
> Am 07.07.2013 22:16, schrieb Jesse MacFadyen:
>
> No immediate plans. Maybe post 3.0.0
>
> Cheers,
> Jesse
>
> Sent from my iPhone5
>
> On Jul 7, 2013, at 2:18 AM, Daniel Toplak
> <daniel.toplak@gmx.de <ma...@gmx.de>> wrote:
>
> Hi,
>
> any news here?
>
> Greets Daniel
>
> Am 02.07.2013 01:44, schrieb Toplak Daniel:
>
> Hi,
>
> we are very interested in phonegap/cordova and we like the
> concept of HTML5/JS/CSS + native plugin APPs.
> We have created a proof of concept to embed a OpenGL
> Render Engine into a the Html-Views (not WebGL).
> The native plugin which renders on a native view is
> running on iOS and Android very well.
>
> Now we whant to go a bit further and whant to bring this
> technic to Windows 8 (RT) platform to support the Windows
> 8 Desktop and the Windows RT Tablets.
> For this we would like to try to get a DirectX Engine
> running as a native plugin. But here comes the hurdle:
> Cordova-windows-8 is build on top of the Windows
> HTML/JS/CSS stack not as a XAML APP. We were able to build
> a Windows Runtime Component DLL in C++ but there we are
> not able to access the XAML GUI to create a view as the
> DirectX Rendering Context.
>
> So are there any plans to port the cordova-windows-8 over
> to a XAML APP like the cordova-windows-phone8?
>
> Mit freundlichen Grüßen / Best regards
>
> CADENAS GmbH
> Head of Mobile Development
> Daniel Toplak
>
>
>
Re: Windows 8 (not Phone 8) - native plugin support
Posted by Jesse <pu...@gmail.com>.
Windows 8 apps *will* be able to include plugins authored in other
languages, but it is not yet supported.
For now, you can create/add a new portable-library project to your
solution, and access it from async javascript.
More details here:
http://msdn.microsoft.com/en-us/library/windows/apps/br230301%28v=vs.110%29.aspx
Unfortunately, you will have to set this up yourself, and plugins authored
this way are not yet distributable/installable with plugman/cordova-cli.
@purplecabbage
risingj.com
On Mon, Dec 9, 2013 at 12:32 PM, Daniel Toplak <da...@gmx.de> wrote:
> Hi,
>
> are there any work done on porting the windows 8 platform to XAML C# or
> C++ implementation?
> AFAIK if I am correct this is the only way to fully support native XAML
> C#/C++ plugins on Windows 8 and Windows 8 RT store APPs.
>
>
> Mit freundlichen Grüßen / Best regards
>
> *Daniel Toplak*
>
> Am 07.07.2013 22:16, schrieb Jesse MacFadyen:
>
> No immediate plans. Maybe post 3.0.0
>>
>> Cheers,
>> Jesse
>>
>> Sent from my iPhone5
>>
>> On Jul 7, 2013, at 2:18 AM, Daniel Toplak <da...@gmx.de> wrote:
>>
>> Hi,
>>
>> any news here?
>>
>> Greets Daniel
>>
>> Am 02.07.2013 01:44, schrieb Toplak Daniel:
>>
>>> Hi,
>>>
>>> we are very interested in phonegap/cordova and we like the concept of
>>> HTML5/JS/CSS + native plugin APPs.
>>> We have created a proof of concept to embed a OpenGL Render Engine into
>>> a the Html-Views (not WebGL).
>>> The native plugin which renders on a native view is running on iOS and
>>> Android very well.
>>>
>>> Now we whant to go a bit further and whant to bring this technic to
>>> Windows 8 (RT) platform to support the Windows 8 Desktop and the Windows RT
>>> Tablets.
>>> For this we would like to try to get a DirectX Engine running as a
>>> native plugin. But here comes the hurdle:
>>> Cordova-windows-8 is build on top of the Windows HTML/JS/CSS stack not
>>> as a XAML APP. We were able to build a Windows Runtime Component DLL in C++
>>> but there we are not able to access the XAML GUI to create a view as the
>>> DirectX Rendering Context.
>>>
>>> So are there any plans to port the cordova-windows-8 over to a XAML APP
>>> like the cordova-windows-phone8?
>>>
>>> Mit freundlichen Grüßen / Best regards
>>>
>>> CADENAS GmbH
>>> Head of Mobile Development
>>> Daniel Toplak
>>>
>>
>
Re: Windows 8 (not Phone 8) - native plugin support
Posted by Daniel Toplak <da...@gmx.de>.
Hi,
are there any work done on porting the windows 8 platform to XAML C# or
C++ implementation?
AFAIK if I am correct this is the only way to fully support native XAML
C#/C++ plugins on Windows 8 and Windows 8 RT store APPs.
Mit freundlichen Grüßen / Best regards
*Daniel Toplak*
Am 07.07.2013 22:16, schrieb Jesse MacFadyen:
> No immediate plans. Maybe post 3.0.0
>
> Cheers,
> Jesse
>
> Sent from my iPhone5
>
> On Jul 7, 2013, at 2:18 AM, Daniel Toplak <da...@gmx.de> wrote:
>
> Hi,
>
> any news here?
>
> Greets Daniel
>
> Am 02.07.2013 01:44, schrieb Toplak Daniel:
>> Hi,
>>
>> we are very interested in phonegap/cordova and we like the concept of HTML5/JS/CSS + native plugin APPs.
>> We have created a proof of concept to embed a OpenGL Render Engine into a the Html-Views (not WebGL).
>> The native plugin which renders on a native view is running on iOS and Android very well.
>>
>> Now we whant to go a bit further and whant to bring this technic to Windows 8 (RT) platform to support the Windows 8 Desktop and the Windows RT Tablets.
>> For this we would like to try to get a DirectX Engine running as a native plugin. But here comes the hurdle:
>> Cordova-windows-8 is build on top of the Windows HTML/JS/CSS stack not as a XAML APP. We were able to build a Windows Runtime Component DLL in C++ but there we are not able to access the XAML GUI to create a view as the DirectX Rendering Context.
>>
>> So are there any plans to port the cordova-windows-8 over to a XAML APP like the cordova-windows-phone8?
>>
>> Mit freundlichen Grüßen / Best regards
>>
>> CADENAS GmbH
>> Head of Mobile Development
>> Daniel Toplak
Re: Windows 8 (not Phone 8) - native plugin support
Posted by Jesse MacFadyen <pu...@gmail.com>.
No immediate plans. Maybe post 3.0.0
Cheers,
Jesse
Sent from my iPhone5
On Jul 7, 2013, at 2:18 AM, Daniel Toplak <da...@gmx.de> wrote:
Hi,
any news here?
Greets Daniel
Am 02.07.2013 01:44, schrieb Toplak Daniel:
> Hi,
>
> we are very interested in phonegap/cordova and we like the concept of HTML5/JS/CSS + native plugin APPs.
> We have created a proof of concept to embed a OpenGL Render Engine into a the Html-Views (not WebGL).
> The native plugin which renders on a native view is running on iOS and Android very well.
>
> Now we whant to go a bit further and whant to bring this technic to Windows 8 (RT) platform to support the Windows 8 Desktop and the Windows RT Tablets.
> For this we would like to try to get a DirectX Engine running as a native plugin. But here comes the hurdle:
> Cordova-windows-8 is build on top of the Windows HTML/JS/CSS stack not as a XAML APP. We were able to build a Windows Runtime Component DLL in C++ but there we are not able to access the XAML GUI to create a view as the DirectX Rendering Context.
>
> So are there any plans to port the cordova-windows-8 over to a XAML APP like the cordova-windows-phone8?
>
> Mit freundlichen Grüßen / Best regards
>
> CADENAS GmbH
> Head of Mobile Development
> Daniel Toplak