问题描述
你好,
我对这些论坛很新,而且我是WP的初学者,所以我不确定这是这个问题的地方但是希望有人可能能指出我正确的方向。
I'm rather new to these forums and I'm a beginner in WP so I'm not really sure this is the place for this question but hopefully someone might be able to point me in the right direction.
我正在学习如何使用JS和Windows构建适用于Windows Phone 8 / 8.1的应用程序我想做的是能够使用手机的移动连接发送/阅读短信。
I am learning about building apps for Windows Phone 8/8.1 using JS and what I'd like to do is being able to send/read SMS messages using the phone's mobile connection.
现在我找到了以下样本: http://code.msdn.microsoft.com/windowsapps/Sms-SendReceive-fa02e55e
Now I found these samples: http://code.msdn.microsoft.com/windowsapps/Sms-SendReceive-fa02e55e
然而,它们似乎适用于Windows 8.1而不是Windows Phone 8.1以及每当我启动它时使用手机模拟器我得到一个错误,说Sms为空(基本上"无法获取未定义或空引用的属性'SmsDevice')。
However they seem to be for Windows 8.1 rather than Windows Phone 8.1 and whenever I start it with the phone emulator I get an error saying that Sms is null (basically "Unable to get property 'SmsDevice' of undefined or null reference").
Windows似乎很奇怪。 Windows Phone上下文中不存在Devices.Sms。有什么我可以使用的吗?我的目标是诺基亚Lumia手机。
It seems rather strange that Windows.Devices.Sms doesn't exist in the context of Windows Phone. Is there something I could use? My target are the Nokia Lumia phones.
谢谢!
推荐答案
http://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.chat.aspx
其他API限制。
这篇关于用于Windows Phone 8.1的JS API发送/接收短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!