# How to know the Device Token in ionic

**URL:** <https://forum.ionicframework.com/t/how-to-know-the-device-token-in-ionic/39486>\
**Category:** ionic-v1\
**Created:** [December 18, 2015, 5:04am UTC](https://forum.ionicframework.com/t/how-to-know-the-device-token-in-ionic/39486 "2015-12-18T05:04:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prime](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@prime](https://forum.ionicframework.com/u/prime)\
**Post date:** [December 18, 2015, 5:04am UTC](https://forum.ionicframework.com/t/how-to-know-the-device-token-in-ionic/39486/1 "2015-12-18T05:04:51Z")

</div>

i already installed cordova push notification plugin but it not works

cordova plugin add [https://github.com/phonegap-build/PushPlugin.git](https://github.com/phonegap-build/PushPlugin.git)

Thanks in advance

PRIME

---

<div class="post-metadata">

**Author:** ![nicfo](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@nicfo](https://forum.ionicframework.com/u/nicfo)\
**Post date:** [December 18, 2015, 9:30am UTC](https://forum.ionicframework.com/t/how-to-know-the-device-token-in-ionic/39486/2 "2015-12-18T09:30:25Z")

</div>

as it says on the plugin you posted: it is deprecated.  
try [this plugin](https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/API.md), it’s the new version. the API-reference is pretty detailed.
