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
michael_hymichael_hy 

How to get the unread chatter message and send a notification to device.

Hi friends:

About this I have a scenerio: if we are not log in to our application or the application is not active, someone sends me a message. The next time, I success to login or the application is active, the message should be displayed as a push notification on the device.

 

So far I can get message by using ChatterMessage Object.

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_chattermessage.htm

But this object do not have a field to know whether this message has been read. And if we want to use SentDate to judge it, We also donot know when the user has offline.

How to resolve this, do anybody can help about this.

Thanks.

Jia HuJia Hu
After login, the end user can see the unread Chatter Message count on the Chatter tab, ...
The unread count is just after the "Messages" below the user photo.

But this kind of info. cannot be accessed by API.