AirshipConfigOptions:null不是有效的开发应用程序密钥

时间:2013-06-13 10:51:02

标签: javascript android cordova urbanairship.com

在aandroid中使用Urbanship的推送通知。我在Airship配置文件中收到错误。该文件与资产一起驻留在WWW文件夹中。

enter image description here

我认为配置文件位于正确的位置,这是我的config.properties。

developmentAppKey = _RfPLPfVfToWrU23hfRs5NivA
developmentAppSecret = uTqytKedER211CKXfhCpt4-G-w
productionAppKey = Your Production App Key
productionAppSecret = Your Production Secret

#transport is "gcm" or "helium".
transport = gcm

gcmSender = 655763901391
inProduction = false

iapEnabled = false

# 2 = Log.VERBOSE; 3 = Log.DEBUG; 4 = Log.INFO;
# 5 = Log.WARN; 6 = Log.ERROR; 7 = Log.ASSERT;
developmentLogLevel = 3
productionLogLevel = 6

1 个答案:

答案 0 :(得分:3)

删除该文本文件的“.sample”扩展名,即您的文件名应为“airshipconfig.properties”而不是“airshipconfig.properties.sample”,因为在下载的zip文件夹“.sample”扩展名中有希望这会对您有所帮助< / p>