Hello,

I need some help. I'm trying to integrate with some success pw with my ionic 2 app. I'm having one problem that's driving me crazy. I can't unregisterDevices using cordova API with success.

My complete code is:

let pushNotification = cordova.require("pushwoosh-cordova-plugin.PushNotification");

    pushNotification.unregisterDevice(
      function (status) {
        console.log('success', status);
      },
      function (status) {
        console.log('failure', status); // -> status = null
      }

    );

It's pretty the same code that I use to register User and works well, but when I call this unregisterDevice it's always returning: INVALID_PARAMETERS

I sorry to bother you with that but I tried to search the entire internet for this problem with nothing similar.

All methods, register, unregister, etc are in the same provider and the others work good, only this I got some problems.

Thank you for you help.

asked 29 Sep, 19:13
felipefda's gravatar image

felipefda
111

Hello,

As far as I can see you already have the ticket in our support system. Actually, for login and logout purposes it would be more convenient to use Tags.

You will find more detailed information in our Guide:

http://docs.pushwoosh.com/docs/segmentation-tags-and-filters

Regards, Ivan

permanent link
answered 02 Oct, 05:48
iskoritzky's gravatar image

iskoritzky
3127

Thank you for your quickly answer. I'll do it with tags. Case closed for me.

permanent link
answered 02 Oct, 13:42
felipefda's gravatar image

felipefda
111

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:

×185
×37
×19

question asked: 29 Sep, 19:13

question was seen: 59 times

last updated: 02 Oct, 13:42