Retrieve device token from device using ionic framework
<p>I am using <code>ionic</code> to develop an application and I need to get the device token for push notifications, but having trouble.  The application isn't receiving notifications, but I still need to send device token when user login into the application (e.g. I need to get device token without receiving notifications). I tried using the Cordova push notification plugin also.</p>