Emojis support in Apple push notification

前端 未结 2 679
滥情空心
滥情空心 2021-02-09 02:58

I am working on iPhone app named \"INTERSTIZIO\".In this I have implemented functionality like chat between users.In this user can send text,location and text with emojis symbol

2条回答
  •  不思量自难忘°
    2021-02-09 03:55

    for the googlers. json_encode() adds double \

    $message = "\ue04a";
    $body['aps'] = array(
                       'alert' => $message,
                       'sound' => 'default',
                       'type'  => $type,
                       'param' => $param
                   );
    
    $payload = json_encode($body);
    $payload = str_replace("\", "\\", $payload);
    

提交回复
热议问题