/
Disable and re-enable Push Notifications for Appoxee Standalone
Disable and re-enable Push Notifications for Appoxee Standalone
Opt-in/Opt-out methods within your app's setting screen, so the user can switch on/off option of receiving Push Notifications.
Objective-C
// Disable & Enable
[[Appoxee shared] disablePushNotifications:booleanArgument withCompletionHandler:^(NSError *appoxeeError, id data) {
if (!appoxeeError) {
// operation was successful.
}
}];
// State (enabled or disabled)
[[Appoxee shared] isPushEnabled:^(NSError *appoxeeError, id data) {
if (!appoxeeError) {
BOOL state = [(NSNumber *)data boolValue];
}
}];
Swift
Appoxee.shared()?.disablePushNotifications(booleanArgument, withCompletionHandler: { (appoxeeError, data) in
if appoxeeError == nil {
// Operation was successful.
}
})
Appoxee.shared()?.isPushEnabled({ (appoxeeError, data) in
if appoxeeError == nil {
let isEnabled = data as? NSNumber
}
})
, multiple selections available,
Related content
Disable and re enable Push Notifications
Disable and re enable Push Notifications
More like this
Becoming UNUserNotificationCenterDelegate for Appoxee Standalone
Becoming UNUserNotificationCenterDelegate for Appoxee Standalone
More like this
Handle Foreground Notifications for Appoxee Standalone
Handle Foreground Notifications for Appoxee Standalone
More like this
Request Notification at Best Time for Appoxee Standalone
Request Notification at Best Time for Appoxee Standalone
More like this
Add the Mobile Push SDK for Appoxee Standalone
Add the Mobile Push SDK for Appoxee Standalone
More like this
Silent push for iOS
Silent push for iOS
More like this