meteor / meteor

Meteor, the JavaScript App Platform
https://meteor.com
Other
44.07k stars 5.16k forks source link

Support Cordova on Windows #4155

Closed mojochao closed 8 years ago

mojochao commented 9 years ago

_21 Upvotes_ When running 'meteor run android-device --verbose' command in Meteor 1.1.0.2 for Windows (on Win 8.1 OS), I receive the following error:

? Can't run on the following platforms on Windows: android-device

Is this expected? I didn't see anything in the release notes about this. If this is not implemented, any ETA on when this will be implemented?

keithn commented 9 years ago

on https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows it explicitly says its not supported.

engenheiro commented 9 years ago

I want Cordova with Meteor for Windows too. When will be implemented?

stubailo commented 9 years ago

We definitely need to make it more clear that Android is currently not supported on Windows, sorry about that.

engenheiro commented 9 years ago

No man, we just ask for a implementation date. For you, allowing Meteor to be used on mobile devices through Windows is a great marketing, because it will allow the community to grow .

tsamatech commented 8 years ago

@stubailo, any plan to make it available on windows ?

jwktje commented 8 years ago

Any indication of when/if it will be possible would be great! I would love to just test my Android app on my main (windows) machine.

EmbeddedSam commented 8 years ago

Was over the moon when I thought it could do android on windows, you should really update the tutorial to say it wont work on windows. It doesn't mention you need a mac.

stubailo commented 8 years ago

@EmbeddedSam you're totally right, we should definitely update that part of the tutorial to tell people it won't work on Windows. Sorry to get your hopes up!

shukritobi commented 8 years ago

Hey @stubailo, thanks for the great framework. Are you guys planning to add android sdk to windows?

robertocr commented 8 years ago

I'd love it too!

votivate commented 8 years ago

What is the timeline for this to be implemented?

Adiel-Sharabi commented 8 years ago

1+

ismaelaarab10 commented 8 years ago

+1

Type1J commented 8 years ago

What's stopping it exactly? If that were posted here, then maybe somebody with enough desire would have a good enough place to start to fix it and give a pull request.

stubailo commented 8 years ago

@martijnwalraven any thoughts?

martijnwalraven commented 8 years ago

As I recently posted in the forum, I'm currently working on some improvements to the Cordova integration that I hope to get into the Meteor 1.2 release.

One of the goals is to get Android development working on Windows. The Cordova integration was developed before Meteor added Windows support, and there are some dependencies on OS X/Linux that I'm in the process of removing. More specifically, the current integration uses bash scripts to call out to various tools (cordova, android, adb), and I'm replacing this with using the Cordova lib from NPM and relying on Cordova to control the Android emulator, etc.

abhisheksoni27 commented 8 years ago

That's a great news. When can we expect it to ship?

Type1J commented 8 years ago

@martijnwalraven: Thanks! I'm glad to know that it's on its way.

martijnwalraven commented 8 years ago

@abhisheksoni27 Meteor 1.2 will ship later this summer, see Matt's recent blog post about it.

caydenlund commented 8 years ago

+1

dhavalrajani92 commented 8 years ago

I am curious to see this version.

hkalic commented 8 years ago

+1 Any1 have info on adding the next platform - Windows Phone (killed by M$) or now Windows 10 Mobile (Universal Windows app)?

It's smaller market but it's not without any prospect. Right?

benjick commented 8 years ago

@hkalic i think you can just wrap a webapp and it will work fine. I saw a video of them wrapping a canvas game, took just a minute. I'll see if I can find it

kodybrown commented 8 years ago

@stubailo Is there anything I can do to help the Windows development. I am not trying to pester you, but I'd rather help it along on Windows than have to resort to using Linux, or even worse... a Mac... ;-)

stubailo commented 8 years ago

@kodybrown it's up to @martijnwalraven now!

kodybrown commented 8 years ago

@stubailo you're right, sorry.. What do you think @martijnwalraven?

martijnwalraven commented 8 years ago

Just got my first Cordova Android app running on Windows! More work to be done, but I think we're on track for inclusion in Meteor 1.2.

b14r commented 8 years ago

this is really great news, I am really excited to see it working on windows.

kodybrown commented 8 years ago

That is great! Can I beta-test for you!? :-)

leocavalcante commented 8 years ago

It seams that Cordova support for Win isn't working in 1.2rc12. Any plans?

martijnwalraven commented 8 years ago

It's almost there, but there are a few remaining issues and we didn't feel comfortable releasing it for 1.2. But it should come not too long after.

Leekao commented 8 years ago

@martijnwalraven Do you need beta testers?

Sandeep3005 commented 8 years ago

That is great we are waiting for it and then android app making will be great fun.

fabyeah commented 8 years ago

+1

leocavalcante commented 8 years ago

:+1: I can beta test too, if you like!

leocavalcante commented 8 years ago

Do you guys know some workaround to build Cordova apps with Meteor on Windows right now?

mibcadet commented 8 years ago

+1

douaberigoale commented 8 years ago

+1

raix commented 8 years ago

@martijnwalraven whats the status on this - will it be ready for the hackathon?

martijnwalraven commented 8 years ago

No, we've prioritized rewriting the file serving and hot code push plugin, which is what I'm currently working on. Windows support isn't too far off, but will require a few additional days of development and a round of testing. Unfortunately, that won't happen before the hackathon.

RiaanOos commented 8 years ago

It seems like the only solution for us folks on the Windows platform is to install a copy of Ubuntu onto our machines in the mean time and boot into it. I have risked it all to start to develop mobile apps with Meteor, so my disappointment was great when I found out (only yesterday) that this is not yet supported on Windows. Luckily the dual boot option with Ubuntu means that we can still carry on developing in Meteor with all of the functionality, Cordova included.

Looking forward to this being supported in Windows and sounds like it's not far off... :-)

mibcadet commented 8 years ago

Go VirtualBox from Oracle + Debian 8.2, need nothing else :)

Still +1 for Windows version.

manrajgrover commented 8 years ago

Eagerly waiting for this feature to be available on Windows.

@RiaanOos I tried it on Ubuntu on VMWare but on running Android simulator didn't open at all. I waited for more than half an hour. Were you able to pull it off?

leocavalcante commented 8 years ago

Well, for those who don't want to switch to a Linux-based desktop, I got this working with Vagrant. Creating Meteor app in ubuntu/trusty64 box, editing with Sublime on Windows (thanks to Vagrant's synced folders), building the Cordova project back to Ubuntu and building/running (emulating) on Windows. Those "switches" was just Alt-tabs between a Vagrant SSH terminal connection and a local pointed terminal.

image

rootux commented 8 years ago

+1

nosizejosh commented 8 years ago

@leocavalcante please provide some direction as to how you have been able to do this

Tealons commented 8 years ago

@martijnwalraven : Do you have an ETA for this issue/request? If support for windows will release soon, I can avoid installing ubuntu :)

stubailo commented 8 years ago

It probably won't release that soon!

leocavalcante commented 8 years ago

@nosizejosh There is the Vagrantfile with inline shell provision, haven't tested yet, was just the step-by-step I followed after finding some issues. Any trouble running it, let me know. https://gist.github.com/leocavalcante/46afaafeb10599797cc6

nosizejosh commented 8 years ago

@leocavalcante thanx for responding. I am very new to vagrant,virtual box etc.What I have is meteor working on my machine. I run into this because I want to be able to access camera on android device on a project I am working on ( I was fine with my xampp setup :) ). I currently installed vagrant and virtual box and am guessing I need to add the ubntu/trusty64 box. I am not sure whether to cd into my project directory in windows before doing this ( in-order to be able to have the synced folders as you described) or do it from the installation directory of vagrant. Not sure what to do after that either. Started with adding the box from my project directory but it was taking real long and I was not sure what I was doing so I cancelled it. pls help. Thanx