framework icon indicating copy to clipboard operation
framework copied to clipboard

Nativescript integration

Open jasoncarreira opened this issue 7 years ago • 13 comments

I'm submitting a feature request

Current behavior:

Nativescript has a Typescript / Angular2 integration to allow for building mobile apps with Angular2, but no integration with Aurelia. The Nativescript / Angular2 integration is discussed here: https://www.nativescript.org/nativescript-is-how-you-build-native-mobile-apps-with-angular

Expected/desired behavior:

Implement an equivalent integration with Nativescript for Aurelia (either Typescript or ES6)

  • What is the motivation / use case for changing the behavior?

There's currently no good way to build mobile apps with Aurelia as Cordova is often too slow to be useful. This would provide a good semi-native framework for building mobile apps using Aurelia.

jasoncarreira avatar May 18 '17 04:05 jasoncarreira

I really would like this too. I really do want to use Aurelia over Angular2. With Angular2 you have 2 very good choices for mobile: Ionic and NativeScript. Aurelia UX could be an alternative for Ionic if it is used with Cordova, but I think NativeScript is a better option.

I would like to help, but do not know where to start. The first issue is how to use the Aurelia templating syntax not for the DOM but use it in an XML syntax, so it can be used in NativeScript views. It would also be very nice if the same ViewModel could be used for a HTML view for the web and an XML view for NativeScript. So we could have a home.js, home.html and home.xml.

arjendeblok avatar May 18 '17 17:05 arjendeblok

Discussion on NativeScript site. https://github.com/NativeScript/NativeScript/issues/536

arjendeblok avatar May 18 '17 17:05 arjendeblok

I would also be interested in helping on this, but also have no idea where to start and no familiarity with Aurelia internals

jasoncarreira avatar May 18 '17 17:05 jasoncarreira

We have spoken to the NativeScript team about this from time to time, and the constant response we get from them is "Nobody is asking us to implement Aurelia support."

Basically, until the community badgers the team over at Telerik enought that they realize we have a great developer community, if a bit quiet, that would greatly appreciate them supporting Aurelia, it isn't likely to happen.

So @jasoncarreira, @arjendeblok push for this. Get out and ask other community members to push for it. Call Telerik at the numbers on the NativeScript home page. Tweet to @jbristowe (that's his GitHub name, he's @johnbristowe on Twitter), @toddanglin, @burkeholland and others at Telerk/Progress letting them know you want this and that you'll pay for NativeScript if they implement it.

We on the team are quite willing to work with Telerik/Progress to help them however necessary. But they need to be interested in implementing this.

AshleyGrant avatar May 18 '17 18:05 AshleyGrant

So the way to go about doing this has been modeled here by a community dev who decided to build a Vue plugin for NativeScript. We are making good progress - and I'd be happy to have you join an Aurelia channel on the NativeScript Community Slack to get a port going! Here's the repo: https://github.com/rigor789/nativescript-vue

jlooper avatar May 18 '17 19:05 jlooper

Thanks @jlooper for the info. @jasoncarreira @arjendeblok have a look!

AshleyGrant avatar May 18 '17 19:05 AshleyGrant

I'll throw in a +1 for this!

andrewransom avatar May 18 '17 23:05 andrewransom

You can also upvote for this implementation on the NativeScript page.

Lichtjaeger avatar Jun 15 '17 07:06 Lichtjaeger

This is probably related to this thread:

https://discourse.aurelia.io/t/aurelia-2018-roadmap/589/10 https://github.com/bigopon/aurelia-nativescript

eriklieben avatar Jan 15 '18 18:01 eriklieben

I am wondering if anyone has made progress with this? Thank you

weoreference avatar Jun 22 '20 01:06 weoreference

I've made good progress on v2, for v6+. You can have a try with the example here https://github.com/aurelia/aurelia/tree/nativescript/examples/au-ns in v2 repo. Though at the moment, I'm preparing for alpha and have put it on hold a bit.

bigopon avatar Jun 22 '20 04:06 bigopon

@bigopon That is awesome, thank you, you are always so nice :)

I will try your demo

weoreference avatar Jun 22 '20 06:06 weoreference

@bigopon , Does Aurelia v2 supports native script officially ? Can you share any integration docs which can be helpful !

PrasanKumar93 avatar Sep 13 '21 11:09 PrasanKumar93