Chrome extension maximum message length -


i'm using google chrome notification api. question simple , short, possible change maximum length of message in notification?

example if question wasn't clear:

that's notification options:

var options = {   type: "basic",   title: title,   message: text,   iconurl: "152.png" } 

in case text = "time t oast toastt oastt oasttoas ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast ttoasttoast toastt oasttoa sttoastto astto ast oasttoasttoasttoa sttoasttoast toastt oastto asttoastto asttoast toastt oast."

it's example

as can see notifications api cut @ middle , added 3 dots:

enter image description here

so question is, can make notification show full message , not cut @ middle?

i've read few tutorials , saw there called expandedmessage , doesn't appear in api documentations , didn't success using it.

you're using expanded notification , number of lines hardcoded 5 plus first title line in source code of chromium/chrome. other types of text notifications may occupy lesser amount of lines can see in linked code. that's why see 5+1=6 lines.

the way overcome limit create image using canvas api, paint text , pass image chrome.notifications.create.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -