title: Get Device Token in iOS 8
body: <p>I need device token to implement push notification in my app.
  <br>How can I get device token since <code>didRegisterForRemoteNotificationsWithDeviceToken</code> method is not working on iOS 8.
  I tried this code in app delegate but it is not giving me device token.</p>
  
  <pre><code>    [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
      [[UIApplication sharedApplication] registerForRemoteNotifications];
  </code></pre>