title: PushPlugin Not Asking for Permissions on iOS
body: <p>I'm working on setting up Push Notifications for an iOS app using the Ionic Framework but I'm running into a problem.</p>
  
  <p>I added the plugin using the following </p>
  
  <pre><code>ionic plugin add https://github.com/phonegap-build/PushPlugin.git
  </code></pre>
  
  <p>and then added the following to my services.js file:</p>
  
  <pre><code>window.onNotificationAPN = function(event){
      alert(event);
  }
  
  
  angular.module('starter.services', [])
  .run(function($ionicPlatform){
       $ionicPlatform.ready(function($scope, $window){
          var tokenHandler = function(result){
              alert('tokenHandler' + result);
          }
  
          var errorHandler = function(error){
              alert('errohandler' + error);
          }
  
          var pushNot = window.plugins.pushNotification;
          pushNot.register(
              tokenHandler,
              errorHandler,
              {
                   "badge":"true",
                   "sound":"true",
                   "alert":"true",
                   "ecb":"onNotificationAPN"
              }
          );
      });
  })
  </code></pre>
  
  <p>When I run the app on my test device (running iOS 6.1.6) using command+R or sending it using testflight the application runs but never asks for permission to send push notifications and the the tokenHandler function is never called.  Any help would be greatly appreciated.  </p>