'React Native Linking to open Outlook on Inbox screen?
In React Native I can open the Outlook mail client with this (You also need to add ms-outlook to the Info.plist):
function openMailClient() {
Linking.openURL('ms-outlook://');
}
This works however if Outlook was already open and looking at an email, then it's opened in the same state ie looking at this email. Instead I would like it to open at the inbox page, as it does when you first open the app.
Is there any way to do this?
Solution 1:[1]
On Android, it seems like this is not possible at the moment.
I had a similar question, and since I couldn't find any documentation, I decompiled the Outlook apk (version 4.2212.2). I found there are a couple ways to navigate to the inbox if the app is running in the background:
'ms-outlook://'
'ms-outlook://emails'
'ms-outlook://emails/inbox'
'ms-outlook://emails/inbox/focused'
'ms-outlook://emails/inbox/other'
This is a gist with some more findings.
When the Outlook app is in the background and you bring it forward with one of these urls, it will navigate to the inbox screen from any page except when it is displaying an email. I doubt this is intentional so I think it's best to file a bug report and hope you get a response.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Siarl |
