Is there a way to get iOS System alarm notifications? - ios

I'm coding a timer app, and I've noticed a major drawback: while I can make the alarm send the user a notification when the timer is done, it can only send notifications, while the built-in Clock app triggers a fullscreen alert no matter what screen you are on, ensuring the user sees the end of the timer. Is there any way to integrate my app with iOS to allow this fullscreen alert functionality? I send a notification when the alarm finishes - is there a specific type of notification that I need to send?

Unfortunately not. You have to stay within the confines of your app. The iOS Clock app has special privileges because...well, it's made by Apple.
Is the notification not enough? I would think that would alert the user adequately.

Related

iOS: open the app (foreground, background, closed) when a notification is received

I'm a manufacturer of intrusion alarm systems. Now I'd like to send an alarm (a very critical event) to the mobile phone of the user. However it's not acceptable to have a "standard" notification in the tray bar, because the user could ignore it at first. Or another notification could stop my notification.
I'd like to mimic the behaviour of the phone when an incoming call arrives: custom ringtone starts playing for many seconds, the display backlight activates, the vibration starts and so on. Only when the user taps something the ringtone should stop (or after many seconds or minutes).
I think the best method to send messages to a mobile device is through push notifications. However I don't know if the push notification could wake my app, even if it is in background or stopped.
It seems only apps targeting VoIP application can behave in this way. However my app isn't a real VoIP app, so there's a possibility Apple will not accept it.

Send activity/update ios app to a user while in background

I am building my first app but wanted to know if there is a way to send updates or activity notifications to a user without a push notification.
These updates could include:
icon badge
Sound
Alert that appears on the lockscreen (I believe this is the push notification)
What can be done without requiring the user to give permission? I have tasks for the user at x time and want to remind them at that time.

how to start my App in a particular time of the Day in Swift iOS

I have an App built on Swift, I want this App to start every day at some particular time. Logically its like Calendar notification, which gives notification in that particular window whatever we set.
Does is the same scenario is possible with an App in iOS Swift.
What you can probably do is to create a local notification, but this is not opening your app. A local notification is just a way to show a notification on your iPhone and then, if the user taps, it's opening your app.
See more here: https://www.codebeaulieu.com/49/How-to-add-local-notifications-to-your-app
I am not sure what you want to do, you cannot force your application upon the user without the user's consent. What you can do is schedule a local notification so the user knows when to open your app like jomafer proposed already. Also possible is to wake up the app to do stuff in the background:
https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
For example a silent push notification that will trigger some code, or a scheduled background download.
NONE OF THESE METHODS ARE 100% RELIABLE THOUGH!

Cancel Local Notifications after app is unused for a certain period of time

I am wondering if it's possible to do what the titles says. I have an application that has a refill reminder to refill your prescription drug via local notifications. I have seen that some apps (pill reminder apps mostly) push a notification if you have not taken your pill, or have not answered back to that notification, and was wondering if I can do the same if a user doesn't open/interact with the app after a certain period of time.
I have not began implementation but have thought about this thoroughly. What I am thinking of doing is having some sort of flag when the app is opened that removes that local notification and sets a new one once the app has gone in the background/inactive. The local notification would be set to three months from when the app has gone in the background/inactive. The question then becomes, how do I handle canceling all notifications after this notification has been received, regardless of whether the user opens the app at that notification or not?
If the user opens the app on that notification, I can have a check the method application:didReceiveLocalNotification and then handle the case where that local notification has been set and then use [[UIApplication sharedApplication] cancelAllLocalNotifications]
But if the user does not tap or open the app, how can I check and cancel all local notifications?
Sorry if this is a bit long or worded weirdly (sorry not good with words and explaining things). Let me know if you need more info or better explanation. Thanks in advance!
If I understand your question correctly, you want to know how to keep notifications from repeating when the user does not respond to a notification by opening your app.
You might consider configuring your local notification not to repeat. Instead, you might reschedule notification batches each time the application is launched.
Alternatively, if your application has a server-side component, you can use push notifications on iOS 7+ to wake your app, briefly. There is no equivalent to this behavior using UILocalNotification.

waking up ios applications without using ios notification

Is it possible to wake up a background application with a non ios notification center? e.g. if I were creating a calling or messaging application is it possible to wake the application via SMS.
Nope. If you want to call app outside the device, you should use APNS. On the device you can use local notification. Sending SMS to wake up app is kinda wrong. People don't like such solutions - imagine bunch of SMS every day for different apps. Sorry.
No.
If you have background code running, you can schedule a local notification to yourself. If the user clicks "Ok" then you will come to the foreground. See here for a description and sample code.
As far as I can tell, the only ways to launch an app without user input is via a custom URL handler or via an accessory. It doesn't sound like an accessory fits your use case. Sadly you can't open URLs from the background, so you can't use this to wake yourself.

Resources