Hello! You're right, you need to use pushNotificationDeviceID localStorage variable whis is automatically set on device ready event. If you add your code on device ready event most likely localStorage variable pushNotificationDeviceID is not set at the moment when your code is running. That's why if you need to get pushNotificationDeviceID specifically on device ready event there should be a little delay, for example 0.1 (use setTimeout).