0

I'm Using Ionic Framework V1. I've already get push notifications through Postman using and I've already save all devicetokens in my DB, but i'm stuck at getting any push for specific devices in php functions.

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!"
}

Example:

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'));
    }
}

Ionic io uses Bearer key and profileapp Any idea?

1 Answer 1

0

I've already solve this without using php. I did it through my internal ionic app code. Thank you to everybody!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.