+ Start a Discussion
Ramakrishnan AyyanarRamakrishnan Ayyanar 

How to get PushNotification into mobile(Apple or Android) on creation record using trigger ?

Hi,
Test Push notification from connected app successfully sends alert, sound, badge to my IOS device. But Notification using apex code & connected app is not sending any notifications to my IOS Device.

any one help me
ShashankShashank (Salesforce Developers) 
Did you have a look at this? https://developer.salesforce.com/docs/atlas.en-us.pushImplGuide.meta/pushImplGuide/pns_apex_trigger.htm
Shabista Zaidi 5Shabista Zaidi 5
Hi ,
How do I add title to send Pus Notification to Apple device. Right now i am able to send alert message by using below method , but is there a way i can add title to my alert.
Map<String, Object> applePayload =  Messaging.PushNotificationPayload.apple(<alert text>,<alert sound>,<badge count>, <free-form data>);

My working Code:

 Map<String, Object> payload = 
            Messaging.PushNotificationPayload.apple(
                ''Verification complete and details updated successfully.' 
             , '', null,  null);