Tuesday, September 9, 2014

PhoneGap build

Phonegap build is a great tool for quick testing of your mobile-app as a deployed app. Copy all the relevant client file locally  (including /js /img /css folders). Make sure you have index.html file. create a simple config.xml file.

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"  xmlns:gap="http://phonegap.com/ns/1.0" id="org.me.myname"  versionCode="10" version="1.1.0">
  <!-- versionCode is optional and Android only -->
  <name>MyName</name>
  <description>
    MyName application
  </description>
  <author href="http:/mynameme.org" email="myname@gmail.com">
    Developer name
  </author>
</widget>


Problems 

Facebook login depends on a domain which you configure at facebook. If your local app is deployed on the phone and the page is not served from the server, it will fail to work.

TODO: solution: load your facebook-login page from the server.

beauty:  to have integration with facebook native app, you will need to work harder and use a plugin, lets ignore for now.


No comments: