When calling registerDevice, the callback is made BEFORE the user chooses to allow notifications or not.

Platform : iOS 6 , Phonegap plugin.

Is this a bug, or am I doing something wrong?

    var registerDevice = function() {

    var deferred = $q.defer();

    pushNotification.registerDevice(
        function(status) {

            deferred.resolve(status);

        },
        function(status) {
            deferred.reject(status);
        }
    );

    return deferred.promise;

};
asked 13 Jun '14, 02:30
calendee-push's gravatar image

calendee-push
3115

Don't think that this is a bug. Are you sure that you are using the last version of pushwoosh plugin? Because now callback must be called AFTER didRegisterForRemoteNotificationsWithDeviceToken invocation. Also check samples: http://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/push-notification-sdk-integration-for-phonegap/.

If this does not help, create ticket to PW support and provide them your code.

permanent link
answered 19 Jun '14, 12:46
Fectum's gravatar image

Fectum
2604

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:

×444
×76
×64

question asked: 13 Jun '14, 02:30

question was seen: 952 times

last updated: 19 Jun '14, 12:46