title: OneSignal - How to get PlayerId after user subscribes?
body: <p>In my javascript code I ask user to subscribe for website notifications using OnceSignal service, so I do:</p>
  
  <pre><code>    OneSignal.registerForPushNotifications();
  </code></pre>
  
  <p>Then I'm trying to catch PlayerId of subscribed user with the following:</p>
  
  <pre><code>    OneSignal.push(function() {
          OneSignal.on('notificationPermissionChange', function(permissionChange) {
              var currentPermission = permissionChange.to;
  
              if (currentPermission == "granted") {
                  OneSignal.getUserId(function(userId) { 
                      console.log(userId);
                  });
              }
          });
  </code></pre>
  
  <p>Then I get that userId and store it in my mysql database so I can send notifications later. But for some reason that userId is different from PlayerId stored on OneSignal Server while the format is the same. Are UserId and PlayerId different things? If it is so, how can I get PlayerId after user subscribes for Pushes?</p>