gmail add-on detect if mobile device being used

119 Views Asked by At

I have an add-on working in my computers browser and mobile device for gmail.

I need to know when the add-on is being rendered in the mobile device.

The reason being I already have an extension that does all I need in the browser and the add-on really is only needed for the mobile device (as I can't run the extension in the gmail app).

Any suggestions appreciated

1

There are 1 best solutions below

0
On BEST ANSWER

This can be checked using clientPlatform property in action event object. Check this for details.