如何从外部打开Android Outlook应用程序 [英] How to open Android Outlook application from an external one

查看:217
本文介绍了如何从外部打开Android Outlook应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个Android应用程序,以显示主屏幕小部件.这些事件与Microsoft Outlook(事件+消息)相关,以便以一种动态磁贴形式显示传入事件和未读新消息.

I'm currently developing an Android application in order to display home screen widgets. Those ones are related to Microsoft Outlook (Events + Messages) in order to show incoming events and unread new messages in a kind of dynamic tiles.

Msal图库对我进行身份验证和检索的形式有很大帮助,其中包含每个事件/消息结果的标识符

The Msal graph library helps me a lot to authenticate and retrieve in formations which contains an identifier for each event / message results

但是现在我想知道用户设备上是否安装了Outlook应用程序,以及当用户单击窗口小部件时是否可以打开Outlook.此外,用户是否可以打开带有标识符的相应单击事件或消息.

But now I want to know if the outlook application is installed on the user device and if there is a way to open Outlook when the user click on the widget. Moreover if the user can open the corresponding clicked event or message with the identifier.

例如,当前显示生日事件的事件"小部件.用户单击它.然后打开Outlook并直接显示该生日事件.

For example the Event widget currently displaying a birthday event. The user click on it. Then it opens Outlook and display directly that birthday event.

致谢

推荐答案

我要传达一些内部人士的建议:

I am relaying a suggestion from a couple of internal folks:

请尝试使用以下URL之一打开活动:

Please try to open the event using one of the following URLs:

  1. ms-outlook://events/open?restid =%s& account=test@om.com(如果您有常规的REST ID)

  1. ms-outlook://events/open?restid=%s&account=test@om.com (if you have a regular REST id)

ms-outlook://events/open?immutableid =%s& account=test@om.com(如果您使用的是不变ID)

ms-outlook://events/open?immutableid=%s&account=test@om.com (if you are using an immutable id)

由于不可变ID在Microsoft Graph中仍处于预览阶段,并且客户不应在其生产应用程序中使用预览API,因此我认为选项#1适用于您的情况.

Since immutable IDs are still in preview stage in Microsoft Graph, and customers should not use preview APIs in their production apps, I think option #1 applies to your case.

如果该网址有效,或者您还有其他相关问题,请在此处回复.我要求这对夫妇也要密切注意这一话题.

Please reply here if the URL works, or not, and if you have other related questions. I requested the couple of folks to keep an eye on this thread as well.

这篇关于如何从外部打开Android Outlook应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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