WorkLight Triggering iOS Push Notifications Permissions Dialog

132 Views Asked by At

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.

Push Notification Permission DIalog

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?

1

There are 1 best solutions below

0
On

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