Akash Deshpande
Akash Deshpande

Reputation: 2645

How to migrate an existing phonegap android project to windows8 or IOS

I have created an application using phonegap on android. I was wondering how to migrate or reuse it completely for windows 8 and IOS. I have tried Windows8 Phonegap. But it works only for very simple apps.

For a little complicated apps like mobile web apps what are the things we have to do ? In short has anyone used the same code base for windows8 and android in phonegap.

Upvotes: 0

Views: 1154

Answers (1)

sachatouille
sachatouille

Reputation: 36

I think the good thing about phonegap/cordova is that you don't really have to 'migrate' anything.

Using the CLI (Command Line Interface), you can simply add the platforms that you want your app to be built for. see full doc here

So in your situation, using your terminal/cmd line, change directory to your main app and you could use:

for windows phone 8

$ cordova platform add wp8

or windows 8

$ cordova platform add windows8

and ios

$ cordova platform add ios

and then by using

$ cordova build

cordova will build for all the platforms that you added so far. you can also build for only a specific platform, have a look at the documentation for more details.

Upvotes: 2

Related Questions