📜 ⬆️ ⬇️

Get Google Mail Chrome application to work with mail on your domain in Google AppEngine

Not so long ago a note appeared that the next dev-build of Google Chrome began to support Chrome Apps. Undoubtedly, this is good news, only the Google Mail application by default only works with standard mail @ gmail.com , and it has no settings. This problem is easy to fix.

Find the file corresponding to the application manifest.json (in ubuntu it is located in the directory / opt / google / chrome / resources / gmail_app). Now, in this file, you need to replace the web_url value from standard with mail.google.com/a your_domain / .
If you want that when you click on any link to mail in your domain, the browser opens the tab with the application, immediately after the line
"urls": [
add a line
" *: //mail.google.com/a/ your_domain / ",

Under the cut version of manifest.json "before" and "after."

manifest.js before editing:

{
"key" : "XX2fMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfjDZDDE/CHFEYjpPSDjdI3zphzGo7fSxO3+/pQs++FwvA+OpKKhmBga2Sa+f53ujDlPR8Q6mCvy1lXM4M4zD4Hg3lH2LC1wT/YXxJ28afRYW1yEo6/pbpHazij3+FneGMT2xcTyGvgoacJHXOTUqWyCN7qMOCiFDwQ6Uk1zJOPQIDAQAB" ,
"name" : "Google Mail" ,
"version" : "1" ,
"icons" : {
"128" : "128.png" ,
"24" : "24.png" ,
"32" : "32.png" ,
"48" : "48.png"
},
"permissions" : [ "notifications" ],
"app" : {
"urls" : [
"*://mail.google.com/mail/" ,
"*://gmail.com/" ,
"*://www.gmail.com/"
],
"launch" : {
"web_url" : "https://mail.google.com/mail/"
}
}
}

* This source code was highlighted with Source Code Highlighter .

')
manifest.js after editing:

{
"key" : "XX2fMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfjDZDDE/CHFEYjpPSDjdI3zphzGo7fSxO3+/pQs++FwvA+OpKKhmBga2Sa+f53ujDlPR8Q6mCvy1lXM4M4zD4Hg3lH2LC1wT/YXxJ28afRYW1yEo6/pbpHazij3+FneGMT2xcTyGvgoacJHXOTUqWyCN7qMOCiFDwQ6Uk1zJOPQIDAQAB" ,
"name" : "Google Mail" ,
"version" : "1" ,
"icons" : {
"128" : "128.png" ,
"24" : "24.png" ,
"32" : "32.png" ,
"48" : "48.png"
},
"permissions" : [ "notifications" ],
"app" : {
"urls" : [
"*://mail.google.com/a/ _ /" ,
"*://mail.google.com/mail/" ,
"*://gmail.com/" ,
"*://www.gmail.com/"
],
"launch" : {
"web_url" : "https://mail.google.com/a/ _ /"
}
}
}

* This source code was highlighted with Source Code Highlighter .

Source: https://habr.com/ru/post/98229/


All Articles