android - Where is the "airshipconfig.properties"? -
i've been following tutorial implementing urban airship functionality, i'm stuck @ step:
4. open airshipconfig.properties file , add following line...
i don't know find file. not inside android project.
the next instruction confusing, because have no idea "app secret" is:
5. make sure set developmentappkey, developmentappsecret, productionappkey, , productionappsecret...
can please clarify these me? thanks
i figured not necessary have airshipconfig.properties
@ all. properties file can set programmatically. worked me, in oncreate
of application
file:
airshipconfigoptions options = airshipconfigoptions.loaddefaultoptions(this.getapplicationcontext()); if (!options.isvalid()) { options.gcmsender = "932487653294"; options.transport = "gcm"; options.developmentappkey = "41fdslhbc827dgc2cdj"; options.developmentappsecret = "svigivyeubwohubvsdv"; options.productionappkey = "41fdslhbc827dgc2cdj"; options.productionappsecret = "svigivyeubwohubvsdv"; options.inproduction = true; options.richpushenabled = true; } uairship.takeoff(this, options); pushmanager.enablepush(); string apid = pushmanager.shared().getapid(); log.i("my_tag", "my application oncreate - app apid: " + apid); pushmanager.shared().setintentreceiver(intentreceiver.class);
Comments
Post a Comment