I have a simple question as to why in your Android/Cordova example (located here) is calling registerDevice() every time the app is launched (or rather when deviceready is triggered)? Is this by design/necessity?


asked 08 Aug '14, 21:57
nokturnal's gravatar image



Generally, it is not required to call registerDevice each time the application is launched. However, please note that push tokens tend to expire from time to time, and it is important to re-subcscribe the device from time to time in order to keep our userbase up-to-date. This way, we can assure that your users would receive your notifications.

permanent link
answered 10 Aug '14, 13:47
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev

ok, that's good to know. Are there any negative side effects to calling it as frequently as the example? Also, can you break down exactly what the registerDevice() method actually does (does it do a call out to your servers.. if so what if the device is offline)?

Cheers :)

permanent link
answered 11 Aug '14, 13:11
nokturnal's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 08 Aug '14, 21:57

question was seen: 1,308 times

last updated: 11 Aug '14, 13:11