iPhone设备UUID - PhoneGap [英] iPhone Device UUID - PhoneGap

查看:149
本文介绍了iPhone设备UUID - PhoneGap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在iPhone 4.x模拟器上获取UUID,但 device.uuid 会停止我的应用程序运行。我也尝试过 DeviceInfo.uuid ,但是这返回未定义,尽管能够在调试器控制台的DeviceInfo对象中看到uuid。

I'm trying to get the UUID on iPhone 4.x simulator, however device.uuid stops my app from running. I've also tried DeviceInfo.uuid but this returns undefined despite being able to see the uuid in the DeviceInfo object in the debugger console.

任何想法我应该使用什么?

Any ideas what I should be using?

我使用PhoneGap 1.0.0

I'm using PhoneGap 1.0.0

谢谢!

推荐答案

我遇到了同样的问题,不仅仅是 device.uui ,但与其他事件。在我的情况下,问题是XCode 4在html文件中引用 phonegap.js 而不是 phonegap。{ver} .js

I experienced the same problem, not just with device.uui, but with other events. In my case the problem was that XCode 4 put a reference in the html file to phonegap.js instead of phonegap.{ver}.js.

这篇关于iPhone设备UUID - PhoneGap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆