Skip to main content

Posts

Showing posts with the label Salesforce1

Send Push Notification on Salesforce1 Mobile app using apex in Salesforce.com

Salesforce chatter API has sends a Push notification to salesforce1 mobile app is we add a post and mention a user to it. The prerequisites are :- 1. User need to installed Salesforce1 mobile app on it mobile device. Google play  : https://play.google.com/store/apps/details?id=com.salesforce.chatter Apple store   : https://itunes.apple.com/app/id404249815?mt=8 2. The users's profile should have "Chatter enabled". Apex code for mentioning user on a chatter post :- Note : This code is works on class version : 33 , there might be change in method signature in latest versions.   // mentionIds - list of user ids who should recieve notification // recordId - Id of the record iof any // recordURL - custom record url public static void mentionChatter(String body, Id recordId , List<Id> mentionIds , String recordURL){          try{              if(body!=null && body!=...