iOS - notification center features without enabling push notifications? - ios

My app is handling messages among users in active and background modes using a separate queuing and delivery system.
Is there a way I can tie my app into the Settings | Notification Center so that users can pick the alert style, enable or disable the badge app icon, and all those other features, without setting up push notifications?

Probably not. See ``Can I have my app in notification centre by default?ยดยด for a similar issue.

Related

How to disable custom actions buttons on Apple Watch when receiving push notification

I am developing an iOS app with 3D Touch push notifications. The notification has a couple of custom actions defined.
When receiving the notification on an Apple Watch, these same custom actions are displayed. However, since:
I am not yet planning to create a companion Apple Watch app to handle the long-look interface of the notification, and
these custom actions require interaction with the iOS app based on an enhanced preview of the notification when received on an iOS device,
these actions make little sense on the watch.
Is there a way I can disable these actions when receiving a push notification on an Apple Watch?
Thanks in advance!

Can I disable a particular local notification banner when app is in foreground?

My application is currently set up to display local and push notifications even when in the foreground. There is one specific local notification I would like to disable when in the foreground, but keep enabled when the app is not active or in the background. Is there a way to accomplish this?
When app in foreground iOS will not show notification banner/alert by default on its own, you must have written code or used a third party frameworks to show some banner on App, just put a break point in that code to not to show the specific notification
https://github.com/nhdang103/HDNotificationView

Pushwoosh iOS SDK, disable alert generated by pushwoosh in Background mode

I want to disable alert generated by pushwoosh manager when i received notification when my app is in background mode. I have tried both Pushwoosh_SHOW_ALERT and Pushwoosh_ALERT_TYPE, it works fine in foreground mode. But i want to show custom message to user when received notifications.
When the app is in background the alert is generated by iOS itself by default.
You might want to deliver the notification silently and present notification yourself. See this article on how to achieve that:
http://docs.pushwoosh.com/docs/deletable-ios-push

How do I detect if user has set banner style alerts or 'normal' style alerts for local notifications in my app?

I simply want to detect if a user has set alert style notifications to 'banners', rather than 'alerts'.
I'm able to pull up
UIApplication.sharedApplication().currentUserNotificationSettings().types
to detect if user has set .None, .Badge, .Sound, or .Alert... but there's no 'Banner' type. So, is there some other way I can check this? Thanks.
EDIT: Will not be submitting this app to AppStore.
Banners are just a way that alerts can be presented. Alerts are either presented as banners, alerts or not at all depending on how the user has configured their device. In addition, a user can choose whether they should be shown in Notification Center, on the lock screen, on Apple Watch or other devices with Bluetooth LE with ANCS. All of this is up to the user and the alert should be delivered in the same way regardless.
Why is it interesting for you to figure out how the user has configured all these things?

Questions about Local notifications in iOS

I'm working on a project on iOS 7, 8 that use a lot of notifications (Remote, Local). I have some questions about Local Notification.
I'm using Local Notification to schedule an alarm or a count-down. As I know, the use of NSTimer is not really a good choice since it has only up to 10' in background & if the app process is killed it doesn't work anymore. Local Notification is managed by iOS but I have to accept its alert when the app is not in foreground. There's nothing like silent local notification (local notification without alert, sound or badge and app still knows about it although it's in background). Am I right ?
Let's assume that there're some simple local notifications in Notification Center, scheduled by our app. Normally when I touch on a notification to see it in my app, the others remain present until we interact with them. In some cases that I haven't figured out, all other notifications are removed from the Notification Center. Does anyone encounter this & understand why ?
I find the interactive notification feature in iOS very limited. I want to change the title of a defined UIMutableUserNotificationAction button & add an image for it, like I can do with UIButton. So the question is : Is it possible to customize the UI of an action button ?
Thanks for your help !
Unfortunately there is no correspondence in silent notification using local notifications.
The number of the visible notification in the notification center is a user decision, the user in Settings can decide to set a different number or decide to do not show them in notification center as well. As for the first point no. The third point is not clear, you can set the image you want for a remote just put in the payload the right name, local notifications use the app icon.
There is no silent notification for Local Notification. The user has to click to the notification to open your App.
I suppose that the associated application has deleted those notifications programmatically. Else, those notifications must stay in the notification center.
You cannot add image to action buttons but just the titles.
I tried more than two weeks to do the same. I had to show notification after 2 hrs even if the use doesn't click the notification. But the repetition facility is well handled in objective C. I could have created multiple local notification but it will also violates the total number of 64 notifications. Apple needs to improved the same.

Resources