outlook getAsync方法在移动浏览器的compose模式下返回always null [英] outlook getAsync method return always null in compose mode on mobile browsers
问题描述
嘿,我尝试使用我的加载项 移动浏览器 。我成功看到我的加载项并使用他。
我成功使用setAsync方法在撰写模式下设置文本,但我没有成功到使用getAsync方法获取 文本。无论我尝试使用更正类型和许多其他东西,它在回调响应的值
中返回null ...
在读取模式下,我成功使用getAsync并从我的消息中获取正确的文本...
所以我想也许我的加载项有问题所以我创建了一个只带getAsync的文本,但它总是在移动设备上返回null。在计算机中一切正常..
示例 - 在计算机上确定移动设备上的确定无效!(显示提醒只是在我的html页面上提醒它)
Office.context.mailbox.item.body.getAsync(
" text",
{asyncContext:"这传递给回调"},
函数回调(结果){
//做一些结果
if(result.value = = null)
showAlerts(" this is null");
else
showAlerts(result.value);
});
可能是它的错误?也许我做错了什么?
谢谢大家。
I可以重现你的问题。
它在计算机上工作正常,但在移动浏览器的复合模式下返回null 。
我建议您在Office Developer Platform UserVoice页面上提交反馈:
https://officespdev.uservoice.com/ 跨度>
问候,
蔚
Hey , I try to use my add-in on mobile browsers . I success to see my add-in and to use him .
I success to set text on compose mode with setAsync method , but I not success to get the text with getAsync method . no matter what I try with correction Type and many another things it's return null in the value
of the call back response...
On read mode I success to use getAsync and to get the correct text from my message...
So I think maybe I have a problem on my add-in so I create one that just take the text with getAsync but it's always return null on mobile. in computer everything is OK..
Example -- on computer OK on mobile always null!(show alerts just alert it on my html page)
Office.context.mailbox.item.body.getAsync( "text", { asyncContext: "This is passed to the callback" }, function callback(result) { // Do something with the result if (result.value == null) showAlerts("this is null"); else showAlerts(result.value); });
Maybe it's bug? maybe I do something wrong ?
Thank you all.
Hi,
I could reproduce your issue.
It works fine on computer but returns null in compose mode on mobile browsers.
I suggest you submit a feedback on Office Developer Platform UserVoice page:
https://officespdev.uservoice.com/
Regards,
Celeste
这篇关于outlook getAsync方法在移动浏览器的compose模式下返回always null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!