jeudi 7 septembre 2017

Push Notification with image for Ios by Laravel

I'm trying to send push notifications with image using Firebase and Laravel framework. I use this code for loading push and in android it works perfectly, but is ios they need another stucture.

 $load = array('title' =>  html_entity_decode(strip_tags( $request->title)),'body' =>  html_entity_decode(strip_tags( $request->body)),'icon' => $input['imagename'],'click_action' => $request->type,'id_entity' => $request->object);

I was consulting with the ios guys and the srtucture they need for image push is this way:

{ "aps" : { "alert" : { "title" :"Push Remote Rich Notifications", "subtitle" :"iOS 10 - New API", "body" :"Media Image Rich notification" }, "mutable-content" :1, "category" :"imageIdentifier" }, "data" : { "attachment-url": "http://ift.tt/2gO4DPJ" } }

but firebase does not allows this structure (as much as i know), so do you suggest any plugin or another way of sending Push Notification with image for ios. Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire