sengroty wrote:1. Is there any possible way to push notification via a ProcessMaker mobile app both iOS and Android?
Do you want to send a custom notification?
You can try this code in a trigger:
Code: Select all
$oND = new \ProcessMaker\BusinessModel\Light\NotificationDevice();
//an array of user IDs to receive message:
$aUsers = array('XXXXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXX');
$message="This is a test of the emergency broadcast system" ;
Also you can see the NOTIFICATION_QUEUE table in the database.
sengroty wrote:2. Does the badge automatically visible once the request came in (run in the background)? From my experiences, the badge won't be visible until we go to the app and the app sync the data from the server.
Did you set the sendnotificationscron.php script
to periodically execute on your ProcessMaker server?
I think that should fix your problem.