title: WorkLight Triggering iOS Push Notifications Permissions Dialog
body: <p>We're working on a native iOS App (iOS 8.0 and newer, Objective-C) that is using WorkLight (v. 7.0.0) and WorkLight Push Notifications.</p>
  
  <p>The issue we're encountering is the timing of when the user is presented with the permission dialog from the operating system. </p>
  
  <p><a href="https://i.stack.imgur.com/3uELA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3uELA.png" alt="Push Notification Permission DIalog"></a></p>
  
  <p>The dialog is being presented as soon as we call <code>[[WLClient sharedInstance] wlConnectWithDelegate:self.listener]</code>. We don't want it to be presented at this point. We want to present it after the user has successfully logged into our app or successfully registered as a new user.</p>
  
  <p>Normally this dialog isn't presented until you call the UIApplication class's method <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/registerForRemoteNotifications" rel="nofollow noreferrer">registerForRemoteNotifications</a> so I assume that somewhere in wlConnectWithDelegate: that this method is being called.</p>
  
  <p>Is there a way to suppress this dialog when connecting to the WorkLight server for the first time? Or, is there a newer version of WorkLight that fixes this?</p>