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
Mallikarjuna Pikkili 1Mallikarjuna Pikkili 1 

apex trigger to send push notification

Hi, we are using apex trigger to send push notifications to ios device and we followed this tutorial https://developer.salesforce.com/docs/atlas.en-us.pushImplGuide.meta/pushImplGuide/pns_apex_trigger.htm.
well we are able to sending push notifications though salesforce console using devicetoken but while sending from apex trigger we need to send user id,  so here my question is  how device token mapped to user ,who is mapping and when is mapping?

salesforce tutorial doesn't have much information about device token mapping to user. can anyone please help me.

Thanks,
Mallikarjun
 
Niklas AlvaeusNiklas Alvaeus
Did you ever found out how to do this?