How do you get the hwid? Docs say it is "used in registerDevice, but I don't see the request parameters. I only see deviceToken in the result.

function initPushwoosh() {

            var pushNotification = window.plugins.pushNotification;
            pushNotification.onDeviceReady();

            pushNotification.registerDevice({alert:true, badge:true, sound:true, pw_appid:appid, appname:appName},
                function(status) {
                    deviceToken = status['deviceToken'];
                    $('#notif').prepend('<p>'+JSON.stringify(status)+'</p>');
                    //console.warn('registerDevice: ' + deviceToken);
                   setPushTags(userId,projectId);
                },
                function(status) {
                     $('#notif').prepend('<p>'+JSON.stringify(status)+'</p>');
                    //console.warn('failed to register : ' + JSON.stringify(status));
                    navigator.notification.alert(JSON.stringify(['failed to register ', status]));
                }
            );

            pushNotification.setApplicationIconBadgeNumber(0);

            document.addEventListener('push-notification', function(event) {
                var notification = event.notification;
                $('#notif').prepend('<p>'+JSON.stringify(notification)+'</p>');
                navigator.notification.alert(notification.aps.alert);
                pushNotification.setApplicationIconBadgeNumber(0);
            });
        }
asked 17 Feb '14, 18:34
doubletake's gravatar image

doubletake
2113

I had the same problem and I was wondering the no one explains how to get the hwid. At the end found it.

pushNotification.getPushwooshHWID(function(token) {
                    alert('Pushwoosh HWID: ' + token);
                    });
permanent link
answered 23 Oct '14, 09:25
Simon's gravatar image

Simon
465

I am getting error : TypeError: Pushwoosh.getPushwooshHWID is not a function

(13 Oct '16, 06:58) nileshonj nileshonj's gravatar image

If hwid = UUID , then I know how to get that value. Is it UUID?

permanent link
answered 19 Feb '14, 00:18
doubletake's gravatar image

doubletake
2113

You can get iPhone hwid in the log:

Sending request: {"request":{"hwid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","application":"xxxxx-xxxxx","v":"2.0"}}
permanent link
answered 16 Jun '14, 08:12
Linerd_push's gravatar image

Linerd_push
215

Also, you can retrieve it by setting a callback after successful /registerDevice request!

permanent link
answered 25 Oct '16, 06:50
Nikolai's gravatar image

Nikolai
3585

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:

×76
×15

question asked: 17 Feb '14, 18:34

question was seen: 3,726 times

last updated: 25 Oct '16, 06:50