-
Book Overview & Buying
-
Table Of Contents
PhoneGap and AngularJS for Cross-platform Development
By :
PhoneGap has gone through quite a bit of changes not only for the main library, but also the plugin system. In this section, you will see that we can quickly install PhoneGap plugins using the command-line tool, without the usual multiple steps that we have to follow if we want to install it manually.
Since we have already added iOS and Android platforms, this plugin installation will add plugins for both iOS and Android. To install the Facebook plugin, you will need to navigate to your todo app project. Next, issue the following command:
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin, --variable APP_ID="XXXXX" --variable APP_NAME="AngularPhoneGapTest".
You will need to replace XXXX with your app ID and you can name your app_name app any name you want.
The installation process is now complete. For Android, you will need three more steps:
Import your todo app into your Eclipse development environment as an Android...
Change the font size
Change margin width
Change background colour