I am currently saving a flag to disable notifiations in my user preferences. I use that flag in my didReceieveRemoteNotifications
to show or skip the notification that comes in. However, when my app is in the background it still shows and I believe I have all my methods setup correctly and it's not being hit. Is there a way to catch this notification while app is in the background and skip it from showing?
NSNumber* enabled = [Helper getBooleanPreference:[Config subscriptionsEnabled]];
if(enabled == nil || [enabled integerValue] == 1) {
completionHandler(UIBackgroundFetchResultNewData);
}