Thursday, 8 August 2013

PhoneGap Urban Airship integration

PhoneGap Urban Airship integration

thank you in advance for reading this relatively long request. I'm trying
to integrate my phonegap application with Urban Airship (UA). I only have
javascript and html knowledge. Here are my questions:
) I am reading the docs
(http://docs.urbanairship.com/build/android.html)I have the Google API
key, project number, and I'm up to the part "Setting up GCM support for
your app". Step#4 tells me to open my airshipconfig.properties file, but
where can I find this file?
2.) Once I somehow access the airshipconfig, are these following values
correct ? gcmSender is the "Project Number" that is displayed in Google
apis Dashboard? transport has value gcm, developmentAppKey is the App Key
that Urban Airship (UA) has provided me?, developmentAppSecret is the Dev
secret that UA has provided me? productionAppKey is the same as
developmentAppKey?, productionAppSecret is the same as
developmentAppSecret? inProduction is false?
3.) After this part, I'm lost. I've downloaded the phonegap plugin
(http://urbanairship.com/resources/developer-resources). After I
completed the above steps 1.) and 2.), should I go back to the parent page
(...urbanairship.com/build/phonegap.html) and go to "Manual Integration"
section?
4.) In "Manual Integration : Android Integration" section, what
src/Android/*.java files do I copy from? And should I create a new empty
directory src/com/urbanairship/phonegap folder and move files in it?
5.) I see urbanairship-lib-3.0.0.jar in the UA phonegap plugin, do I put
this into the root of my project's libs directory?
6.) Assuming I can get through the above steps, the last section of "In
"Manual Integration : Android Integration" section" tells me to modify the
AndroidManifest.xml and config.xml, have I successfully integrated UA into
phoneGap ? Can you show me how to send a push notification to my
application?
7.) Also, the plugin states that it works only for Phonegap 3.0.0+ but I
went to Phonegap.com and it is only up to version 2.9.0? I have phonegap
2.5, will it work? Thanks so much for your help! Ning

No comments:

Post a Comment