title: RegisterForRemoteNotifications throws com.apple.UNSNotificationRegistrarConnection
body: <p>The app called the following methods to register push notification when the app launched</p>
  
  <pre><code>[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil]];
  [[UIApplication sharedApplication] registerForRemoteNotifications];
  </code></pre>
  
  <p>However there is a small chance that the app will throw the following exception when it executes registerForRemoteNotifications</p>
  
  <blockquote>
    <p>Crashed: com.apple.UNSNotificationRegistrarConnection
    EXC_BAD_ACCESS KERN_INVALID_ADDRESS </p>
  </blockquote>
  
  <p>It is difficult to reproduce and not always happens. Does anyone know what is the root cause of this issue? Many thanks.</p>