Reputation: 143
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.
The issue we're encountering is the timing of when the user is presented with the permission dialog from the operating system.
The dialog is being presented as soon as we call [[WLClient sharedInstance] wlConnectWithDelegate:self.listener]
. 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.
Normally this dialog isn't presented until you call the UIApplication class's method registerForRemoteNotifications so I assume that somewhere in wlConnectWithDelegate: that this method is being called.
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?
Upvotes: 0
Views: 123
Reputation: 10600
No! this is a system dialog which cannot be customized.
You cannot change the behavior in iOS
more details check this link please Customizing the iOS permission dialog for push notifications
Upvotes: 0