I am sending notification from server (PHP) using sdk to named user with some extra data. but the notification type shown on urban console as Silent notification. and payload also empty. Things are working fine before. but don't know what happened now.
When i set audience P\all. then it's message type is fine. in case of named user it's type become Silent Message. which is wrong. can you tell me what is wrong in my code.
Code:
$airship = new Airship('APP_UA_APP_KEY', 'APP_UA_MASTER');
$response = $airship->push()
->setAudience(P\namedUser("name_user_id"))
->setNotification(P\notification($message,
['android' =>
['extra' =>
['extra_info' => json_encode($object)],
],
'ios' =>
['extra' =>
['extra_info' => json_encode($object)],
],
]))
->setDeviceTypes(['ios', 'android'])
->send();
Comments
3 comments