Seein the changes that you made for PG/AppMobi, are you exporting for PhoneGap or Cordova. As you may know PhoneGap has changed name and with it all the functions have been renamed to from the suffix PG to CDV.
My project still uses PhoneGap as Cordova is not supported yet by plugins and other amenities. So my question is: "Are you exporting to PG or CDV functions?"
I hope PG and I would like to ask you to wait to convert to Cordova until the situation is more stable.