GMail composer links don't work on Android

106
May 08, 2022, at 4:00 PM

I am using GMail links like

https://mail.google.com/?view=cm&to=some@email.com

or

https://mail.google.com/mail/?extsrc=mailto&url=mailto%3A%3Fto%3Dsome%40email.com

to simplify writing mails with prefilled receiver, subject, and body content. This works fine on desktop, but when I open either type of link in Firefox or Chrome on Android, it will just go to my inbox instead of opening a composer.

Any ideas how I can make this work?

Answer 1

Use mailto instead

mailto:some@email.com?subject=test&body=test

This will allow android and iOS to automatically use intents to offer the user a choice of email clients or selecting the default email client.

It will also use your default mail client on your pc. If gmail is not your default, you can make it so that links will open in your gmail browser

Rent Charter Buses Company
READ ALSO
junit.framework.AssertionFailedError: Expected<BuildersKt$flowOf$$inlined$unsafeFlow> but was:<kotlinx.coroutines.flow.SafeFlow>

junit.framework.AssertionFailedError: Expected<BuildersKt$flowOf$$inlined$unsafeFlow> but was:<kotlinx.coroutines.flow.SafeFlow>

I am trying to write android test cases for Room Dao, my return type is FlowI am getting the following error which I am not able to understand

154
Nested RecyclerView OnclickListener [closed]

Nested RecyclerView OnclickListener [closed]

Want to improve this question? Add details and clarify the problem by editing this post

110
Getting IMEI number using ADB commands Android 12

Getting IMEI number using ADB commands Android 12

For android versions before 11 I was using the below command to get IMEI number from my device:

194
Stopping Exoplayer on swiping in viewPager

Stopping Exoplayer on swiping in viewPager

I am making a reels type appI have made a ReelsFragment and ReelsAdapter

172