使用Phonegap为Ios实施Urban Airship卡在注册上

时间:2011-10-26 18:43:09

标签: iphone ios cordova urbanairship.com

我正在尝试使用手机间隙实施Urban Airship,并且已按照以下网址中的所有内容进行操作:

https://support.urbanairship.com/customer/portal/articles/66970-implementing-with-phonegap

应用程序启动后,我无法注册。点击“注册”按钮后。

我的设置是Xcode 4.2 Build 4D199,我正在使用Phonegap 1.1.0。

如果有人需要更多信息来帮我解决这个问题,请告诉我。谢谢。

以下是我的xcode控制台日志

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
target remote-mobile /tmp/.XcodeGDBRemote-138-25
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 11523 thread 0x2d03]
[Switching to process 11523 thread 0x2d03]
sharedlibrary apply-load-rules all
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
warning: No copy of dns.so found locally, reading from memory on remote device.  This may slow down the debug session.
2011-10-26 11:34:19.837 UAPhoneGap[2395:307] active
[Switching to process 12803 thread 0x3203]
2011-10-26 11:34:21.250 UAPhoneGap[2395:307] Device initialization: DeviceInfo = {"name":"Michelle W’s iPodTouch","uuid":"beb3dbb33a034930cffc6bb80e754e9174db9c40","platform":"iPod touch","gap":"1.1.0","version":"4.2.1","connection":{"type":"wifi"}};

1 个答案:

答案 0 :(得分:1)

我终于弄清楚如何解决这个问题。问题是我运行的是Phonegap 1.1.0,此处列出的UAPhoneGap示例https://support.urbanairship.com/customer/portal/articles/66970-implementing-with-phonegap正在运行Phonegap 1.0.0。

为了解决这个问题,你要做的就是用phonegap1.1.0.js替换phonegap1.0.0.js,并在index.html中替换它的引用。

不要忘记将go.urbanairship.com添加到phonegap plist中的外部白名单。