Publish your application to various platforms with PhoneGap Build

     PhoneGap platform enables a developer to create an app that runs on a variety of mobile devices.      

     PhoneGap build is a service allows you to publish your application to various platforms without changing a bit of code. Simply you can upload your HTML, CSS, and JavaScript to the PhoneGap Build. And you can get easily app-store ready apps for iOs, Android, BlackBerry, and more. There’s a few steps that you need to follow in order to get your app published.      

     If you don’t already have an account, Then create an account. Launch the browser and head on over to https://build.phonegap.com/ to get an account. Just click the “Get started!” button to initiate the publishing process, as such:

 

Screen Shot 2014-03-13 at 8.30.13 PM

 

     Choose plan if you want your application become more private then you have to choose paid plan. But for this tutorial we choose free plan.

 

Screen Shot 2014-03-13 at 3.45.40 PM

 

     If you have an existing Adobe ID you can use that to login. If you don’t have Adobe ID, you can create new account to log in, as shown below:

 

Screen Shot 2014-03-13 at 4.09.26 PM

     

     Once you’ve completed registration. Then you need to compress your project. Now you are ready to upload the compressed archive you created.

      You can also upload your code using git repository. For that you have to connect your git account.

     For this tutorial we have to upload zip file as shown in bellow – Once you uploading zip click the ready to build button.

 

Screen Shot 2014-03-13 at 4.27.12 PM

     

      Once the build is uploaded, you’ll see a screen showing the compile state of the multiple mobile OS that PhoneGap supports. Notice that for iOS indicators shown in red, while the others are blue, as shown in the screenshot below:

 

Screen Shot 2014-03-13 at 5.03.54 PM

 

     This indicates that there were issues when building the application for that particular platform. In order to build your app for iOS, there are a few more things that you need to take care of.      

     The iOS button will immediately turn red because the iOS build requires that you upload your Apple Developer certificate and an application provisioning profile. Click the red iOS button and Select “add a key” in the “No key selected” drop down You’ll see the screen below:

 

Screen Shot 2014-03-13 at 6.10.07 PM

 

     Provide a title for your developer certificate/provisioning profile combination, select your developer certificate and provisioning profile, enter your developer certificate password, and click on “submit key” button.      

     Go back to the list of apps. Click the iOS button for your application again. Select your newly added key in the iOS drop down. The iOS build will start automatically. And you will get .ipa file for download.