I have this peice of code to unregister the device but it does not work:

      PushNotification.unregisterDevice (
        function(token){
            console.log("unregistered success!" + token);
        },

        function(status){
            console.log("unregistered failed!" + status);
        }

but it does not work. I am still sending notifications even after it is called. Is there anything I am doing wrong?

asked 13 May '14, 01:11
dtl's gravatar image

dtl
215

edited 13 May '14, 01:12

  1. Is it a new SDK? (updated on 13th of May).
  2. You don't call registerDevice on start, right?
permanent link
answered 17 May '14, 02:22
shader's gravatar image

shader
3.9k7

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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:

×21
×12

question asked: 13 May '14, 01:11

question was seen: 1,556 times

last updated: 17 May '14, 02:22