The code is a little over my head. I am trying to understand the best way to tie into the API system. The only way I figured it out is to insert a trigger event into the core code. I don't understand how the variables get passed through to the handler. I tried inserting my own variable as a test and it contains content from another variable. I am trying to build a plugin and have a rough skeleton going, but this part is a roadblock for me. Also, I would rather not have to insert a new trigger notification, so if anyone knows a better way with the existing codebase, please let me know.
Here is the link I am using:
public function handler_activityModel_remoteNotification($testVar)