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