# Cordova Plugin Push [![Node CI](https://github.com/havesource/cordova-plugin-push/actions/workflows/ci.yml/badge.svg)](https://github.com/havesource/cordova-plugin-push/actions/workflows/ci.yml) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/422c67b5e70c4a0eadae7b9fc794d3c1)](https://app.codacy.com/gh/havesource/cordova-plugin-push?utm_source=github.com&utm_medium=referral&utm_content=havesource/cordova-plugin-push&utm_campaign=Badge_Grade_Settings) > Register and receive push notifications # What is this? This plugin offers support to receive and handle native push notifications with a **single unified API**. This does not mean you will be able to send a single push message and have it arrive on devices running different operating systems. By default Android uses FCM and iOS uses APNS and their payloads are significantly different. Even if you are using FCM for both Android and iOS there are differences in the payload required for the plugin to work correctly. For Android **always** put your push payload in the `data` section of the push notification. For more information on why that is the case read [Notification vs Data Payload](https://github.com/havesource/cordova-plugin-push/blob/master/docs/PAYLOAD.md#notification-vs-data-payloads). For iOS follow the regular [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref). This plugin does not provide a way to determine which platform you are running on. The best way to do that is use the `device.platform` property provided by [cordova-plugin-device](https://github.com/apache/cordova-plugin-device). * [Reporting Issues](docs/ISSUES.md) * [Installation](docs/INSTALLATION.md) * [API reference](docs/API.md) * [Typescript support](docs/TYPESCRIPT.md) * [Examples](docs/EXAMPLES.md) * [Platform support](docs/PLATFORM_SUPPORT.md) * [Cloud build support (PG Build, IntelXDK)](docs/PHONEGAP_BUILD.md) * [Push notification payload details](docs/PAYLOAD.md) * [Contributing](.github/CONTRIBUTING.md) * [License (MIT)](MIT-LICENSE) # Do you like tutorial? You get tutorial! * [PhoneGap Day US Push Workshop 2016 (using node-gcm)](http://macdonst.github.io/push-workshop/) # Thanks to all our contributors [10ko](https://github.com/10ko)[TVolly](https://github.com/TVolly)[waptaxi](https://github.com/waptaxi)[viktormuller](https://github.com/viktormuller)[devgeeks](https://github.com/devgeeks)[rastafan](https://github.com/rastafan) [mdoelker](https://github.com/mdoelker)[markeeftb](https://github.com/markeeftb)[malwatte](https://github.com/malwatte)[madebycm](https://github.com/madebycm)[kelvinhokk](https://github.com/kelvinhokk)[keab42](https://github.com/keab42) [jomarocas](https://github.com/jomarocas)[giuseppelt](https://github.com/giuseppelt)[ericb](https://github.com/ericb)[eKazim](https://github.com/eKazim)[clementcontet](https://github.com/clementcontet)[yaswanthsvist](https://github.com/yaswanthsvist) [Vabs28](https://github.com/Vabs28)[TillaTheHun0](https://github.com/TillaTheHun0)[tomasvarg](https://github.com/tomasvarg)[tobmaster](https://github.com/tobmaster)[ThiagoBueno](https://github.com/ThiagoBueno)[szh](https://github.com/szh) [SharUpOff](https://github.com/SharUpOff)[smorstabilini](https://github.com/smorstabilini)[fesor](https://github.com/fesor)[GreyDekart](https://github.com/GreyDekart)[sebastiansier](https://github.com/sebastiansier)[olastor](https://github.com/olastor) [tanansatpal](https://github.com/tanansatpal)[SandroGrzicic](https://github.com/SandroGrzicic)[xorxor](https://github.com/xorxor)[rubenstolk](https://github.com/rubenstolk)[roel-sluper](https://github.com/roel-sluper)[pataar](https://github.com/pataar) [peteonrails](https://github.com/peteonrails)[pjalbuquerque](https://github.com/pjalbuquerque)[NitroGhost](https://github.com/NitroGhost)[matrosov-nikita](https://github.com/matrosov-nikita)[Mikejo5000](https://github.com/Mikejo5000)[michellarcari](https://github.com/michellarcari) [adamschachne](https://github.com/adamschachne)[alharding](https://github.com/alharding)[albertleao](https://github.com/albertleao)[gotev](https://github.com/gotev)[Alex-Sessler](https://github.com/Alex-Sessler)[ben-8409](https://github.com/ben-8409) [bmwertman](https://github.com/bmwertman)[bmatto](https://github.com/bmatto)[countcain](https://github.com/countcain)[CookieCookson](https://github.com/CookieCookson)[cdorner](https://github.com/cdorner)[colene](https://github.com/colene) [cfsnyder](https://github.com/cfsnyder)[cmalard](https://github.com/cmalard)[dansumption](https://github.com/dansumption)[dannywillems](https://github.com/dannywillems)[DrMoriarty](https://github.com/DrMoriarty)[eladmoshe](https://github.com/eladmoshe) [mlabarca](https://github.com/mlabarca)[bromeostasis](https://github.com/bromeostasis)[filmaj](https://github.com/filmaj)[geo242](https://github.com/geo242)[gbenvenuti](https://github.com/gbenvenuti)[polyn0m](https://github.com/polyn0m) [jacquesdev](https://github.com/jacquesdev)[janpio](https://github.com/janpio)[jakari](https://github.com/jakari)[purplecabbage](https://github.com/purplecabbage)[theaccordance](https://github.com/theaccordance)[jonas-m-](https://github.com/jonas-m-) [Chuckytuh](https://github.com/Chuckytuh)[leonardobazico](https://github.com/leonardobazico)[loslislo-lshift](https://github.com/loslislo-lshift)[luka5](https://github.com/luka5)[mac89](https://github.com/mac89)[markokeeffe](https://github.com/markokeeffe) [mbektchiev](https://github.com/mbektchiev)[goya](https://github.com/goya)[slorber](https://github.com/slorber)[daserge](https://github.com/daserge)[smdvdsn](https://github.com/smdvdsn)[ryanluker](https://github.com/ryanluker) [russellbeattie](https://github.com/russellbeattie)[rjmunro](https://github.com/rjmunro)[hanicker](https://github.com/hanicker)[mwbrooks](https://github.com/mwbrooks)[LightZam](https://github.com/LightZam)[laagland](https://github.com/laagland) [cuatl](https://github.com/cuatl)[gianpaj](https://github.com/gianpaj)[EdMcBane](https://github.com/EdMcBane)[chriswiggins](https://github.com/chriswiggins)[barryvdh](https://github.com/barryvdh)[armno](https://github.com/armno) [archananaik](https://github.com/archananaik)[jakub-g](https://github.com/jakub-g)[shazron](https://github.com/shazron)[sclement41](https://github.com/sclement41)[hung-doan](https://github.com/hung-doan)[BBosman](https://github.com/BBosman) [giordanocardillo](https://github.com/giordanocardillo)[mikepsinn](https://github.com/mikepsinn)[AdriVanHoudt](https://github.com/AdriVanHoudt)[alexislg2](https://github.com/alexislg2)[jcesarmobile](https://github.com/jcesarmobile)[nadyaA](https://github.com/nadyaA) [jdhiro](https://github.com/jdhiro)[edewit](https://github.com/edewit)[wildabeast](https://github.com/wildabeast)[mkuklis](https://github.com/mkuklis)[ashconnell](https://github.com/ashconnell)[zwacky](https://github.com/zwacky) [rakatyal](https://github.com/rakatyal)[jtbdevelopment](https://github.com/jtbdevelopment)[EddyVerbruggen](https://github.com/EddyVerbruggen)[fredgalvao](https://github.com/fredgalvao)[bobeast](https://github.com/bobeast)[macdonst](https://github.com/macdonst) [larrybahr](https://github.com/larrybahr)