0
私はIonic Framework V1を使用しています。 私はすでに を使用してPostmanを通じてプッシュ通知を受け取りました。私はすでにDB内にすべてのdevicetokensを保存していますが、PHP関数内の特定のデバイスのプッシュを取得するのには止まっています。php関数で特定のdevicetokenを送信する方法
curl -X POST -H "Authorization: Bearer API_TOKEN" -H "Content-Type: application/json" -d '{
"tokens": ["DEV_DEVICE_TOKEN"],
"profile": "PROFILE_NAME",
"notification": {
"message": "This is my demo push!"
}
例:
public function confirmAction($request){
$action = $this->find($request->idtblAction);
$action->idtblStatus=1;
if($action->save()){
//I need to send notification in this part
return Response::json(array('success'=>'true'));
}else{
return Response::json(array('success'=>'false'));
}
}
イオン性ioはベアラキーとprofileapp 任意のアイデアを使用していますか?