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

查看:29
本文介绍了如何从外部打开 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.

如果该 URL 有效或无效,以及您有其他相关问题,请在此处回复.我要求这对夫妇也密切关注这个线程.

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天全站免登陆