Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Ionic 3 http post click_action

$
0
0

click_action does not redirected when i push to notification on android ? what’s wrong ? and how i can be redirected to the specific url link ?

let body = {

  "notification": {

     "title": "IONIC NOTIFIFCATION",

     "body": "NOTIFICATION title :" ,

     "sound": "default",

     "vibrate": "true",

     "click_action": "https://forum.ionicframework.com/",

     "icon": "fcm_push_icon"

  },

  "to": tokens,

  "priority": "high",

  "restricted_package_name": ""

};
let header: HttpHeaders = new HttpHeaders();

header = header.set(‘Authorization’, appKEY);

header = header.append(“Content-Type”, “application/json”);

const options = {

headers: header

}

this.http.post(url, body, options)

.subscribe(data => {
console.log(data);
}, error => {
console.log("Error! ",error);
});

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>