/
Request Notification at Best Time for Appoxee Standalone
Request Notification at Best Time for Appoxee Standalone
The ability to postpone the prompt to the user to opt-in to notifications.
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[Appoxee shared] setPostponeNotificationRequest:YES]; // call this method, prior to any Appoxee call, to not show the approve notifications alert by the operating system.
[[Appoxee shared] engageAndAutoIntegrateWithLaunchOptions:launchOptions andDelegate:nil];
return YES;
}
Swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
Appoxee.shared()?.postponeNotificationRequest = true // call this method, prior to any Appoxee call, to not show the approve notifications alert by the operating system.
Appoxee.shared()?.engageAndAutoIntegrateWithLaunchOptions(launchOptions, andDelegate: nil)
return true
}
To request notifications permissions , call setPostponeNotificationRequest:NO
Objective-C
- (IBACTION)userWantsToBeNotifiedByPushNotifications
{
[[Appoxee shared] setPostponeNotificationRequest:NO];
}
Swift
, multiple selections available,
Related content
Show Notification Permission Alert Dialog
Show Notification Permission Alert Dialog
More like this
Option 1 - Automated Integration In iOS App
Option 1 - Automated Integration In iOS App
More like this
Becoming UNUserNotificationCenterDelegate for Appoxee Standalone
Becoming UNUserNotificationCenterDelegate for Appoxee Standalone
More like this
Disable and re-enable Push Notifications for Appoxee Standalone
Disable and re-enable Push Notifications for Appoxee Standalone
More like this
Handle Foreground Notifications for Appoxee Standalone
Handle Foreground Notifications for Appoxee Standalone
More like this
Becoming UNUserNotificationCenterDelegate Observer
Becoming UNUserNotificationCenterDelegate Observer
More like this