Send Push Notifications from application (via API) ionic

Please any know about this

Normally you use an API to send notifications to an Ionic 2 application. What are you trying to do and why?

i want to create push from my app and
send push notification to installed android apps

1 Like

That is old any new documents available ?

you can do this with firebase as well

ya i m working with it and tried yesterday . Now i am able to send message from firebase server . Now i wants to know how to send that with api using firebase,

you will use firebase api. and i used here topic .whenever user creates a topic with firebase

let headers = new Headers({ 'Content-Type': 'application/json', 'Authorization': 'key=' + Authkey });
            let body = { "to": "/topics/" + topic, "priority": "high", "notification": { "body": bodyMessage, "title": title, } };
            let URL = ""
            let options = new RequestOptions({ headers: headers });
  , body, options).subscribe(data => {


although this is not safe as i am using authorization key during network process

here is a link which described all in detail

Thanks for sharing code , Is Authkey that which is in google-service.json ? like
"api_key": [
“current_key”: “BIzbSyAmb1GBt564PzsnCe0fb-zFh-jDv5rAv4”

you can find authorization key in your firebase project.

yes got that , thanks . will let you know if stuck