Hi, I use following code with FCM, inside $tokens there is a mixed array of iOS and Android tokens, running it iOS receives proper notifications, while android devices none. Using firebase console properly sends notifications.
Note: i had to set priority to high otherwise iOS didn't receive notifications, but Android still no, any help? best regards.
Hi, I use following code with FCM, inside $tokens there is a mixed array of iOS and Android tokens, running it iOS receives proper notifications, while android devices none. Using firebase console properly sends notifications.
Note: i had to set priority to high otherwise iOS didn't receive notifications, but Android still no, any help? best regards.
$push = new PushNotification('fcm'); $push ->setMessage([ 'notification' => [ 'title'=>'Title', 'body'=>$message, 'sound' => 'default' ] ] ) ->setConfig(['dry_run' => false,'priority' => 'high']) ->setApiKey($API_KEY) ->setDevicesToken($tokens) ->send();