Not able to send email apps other than "Mail App"

For the below scenario we see the "Restore Mail?" popup when the default email app is Gmail/outlook.

Pre-Requisites:
Install Mail app, Gmail and Outlook apps and signin.\

Scenario :

  1. Go to Settings > Mail App >Tap on Default Mail App option and choose Mail
  2. Execute the below code snippet.
  3. Observe that Mail app opens (as expected).
  4. Uninstall Mail app.
  5. Go to Settings > Gmail > Observe that Gmail/Outlook is automatically set as Default Mail Option. (Do not change anything in this step)
  6. Execute the below code snippet again.
  7. Observe that "Restore Mail?" popup is shown. (expecting the email app (gmail/outlook) which was automatically set up after step 4 to show up)
  8. Now again go to Settings > Gmail > Tap on Default Mail App option and choose Gmail.
  9. Run the code snippet.
  10. Observe that the Gmail app opens as it is manually set as default email app in step 7.

Observed behavior:
When the Mail App is uninstalled, other email app is automatically set as default mail app. And when the code snippet is executed it shows the "Restore Mail?" popup.
Expected Behaviour :
When the Mail App is uninstalled, as other email app is automatically set as default mail app, it should be opened when we run the code snippet.

Code snippet: (Xamarin)

await Launcher.OpenAsync(new Uri("mailto:" + email));

 From the source code, we can see that it uses UIApplication.CanOpenUrl(NSUrl) method in iOS.

  • Can you please let us know if this is bug on iOS?
  • And is there a way that we show a popup and navigate the user to settings page where user can set the default app?
Not able to send email apps other than "Mail App"
 
 
Q