Please make sure that you have real apple device like iPad, iPhone or iPod touch to test this. This will not work in Simulator.
To register device for push notifications add following in your AppDelegate.m file. Find method
First create folder inside plugins folder of your project folder and name it as PushToken and add two files to it PushToken.m and PushToken.h
Open PushToken.h file and add following code to it.