An hack to simulate the rendering by the Gmail App for Android in a simple browser
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Latest commit e9cdd98 Feb 12, 2017
Permalink
Failed to load latest commit information.
assets Initial import Dec 17, 2015
lib Initial import Dec 17, 2015
res/raw Initial import Dec 17, 2015
README.md Update README.md Feb 11, 2017
emulator.html example default template Dec 18, 2015

README.md

Update 2016/10

Gmail updated the Gmail App so this may not apply to the latest version. We didn't check.

android-gmail-emulator

An hack to simulate the rendering by the Gmail App for Android in a simple browser

This is very partial, but contains the logic for which the Android app tries to make your email narrow by applying special "munged" classes. This does also try to sanitize the HTML the same way the APP does, but this DOES NOT clean the STYLE attribute at all (while there is a lot the Gmail app does in this regard).

A list of common smartphone viewport sizes