function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ray C. KaoRay C. Kao 

[Visualforce mobile] Sfdc.canvas.publisher.publish and toast message

There is a toast message box after close publisher. But the message box has no message! Does anyone know how to set the message in the toast message box?

Here is the code and screen...

Visualforce mobile code
<apex:page >
    <meta charset="UTF-8" />
    <apex:includeScript value="/canvas/sdk/js/publisher.js" />
        function closeAction() {
            Sfdc.canvas.publisher.publish({ name : "publisher.close", payload : { refresh:"false" }});

    <h1>Sample Page</h1>
    <button onclick="closeAction()">Close Action</button>
Screen 1 - click "Close Action"
User-added image

Screen 2 - the next screen has a toast message but there is no message in it. How to set it?
User-added image