NotificationPusher icon indicating copy to clipboard operation
NotificationPusher copied to clipboard

Is there way to translate the exception like python gcmclient

Open pentatonicfunk opened this issue 10 years ago • 3 comments

as you can see in http://gcm-client.readthedocs.org/en/latest/intro.html

there is different result on response

  • new_reg_id
  • not_registered
  • err_code
  • needs_retry

can we get this on information by using this notification pusher package

pentatonicfunk avatar Apr 23 '14 07:04 pentatonicfunk

Hum I think a better way could be to add specific exceptions and catch them as needed, throwing a translated one for example.

Any other ideas about that?

Ph3nol avatar Apr 23 '14 08:04 Ph3nol

yep i think that is the most appropriate solution, giving specific exception like \DeviceNotRegistered or something else

pentatonicfunk avatar Apr 23 '14 08:04 pentatonicfunk

Just added this point to 2.3.0 version milestone.

Ph3nol avatar Apr 23 '14 08:04 Ph3nol