I have a radio application. The application have a option, like alarm. You set a hour and the application will become active.
Is a way to do this? Thanks
No, this is not possible. You can play a sound at a specific time, even if your app is in the background, or you can send a notification (local or remote) to tell the user that he/she should open the app.
No. You could try creating a UILocalNotification which on action would activate your app.
No, it's not possible to open application automatically on any specific time.
Related
I created an app that will send text messages through an API similar to Twilio, and I have an NSTimer that fires a function every set amount of time. The problem is that if you press the home button, it will totally stop the timing, which defeats the purpose.
I have read that it is possible to have your phone play a mute sound until closed to make sure it still runs in the background, but I can't find a resource on how to do this. Here is an example: To run NSTimer in background
If anyone has any information on how to do this, I'm sure it is very simple, and I very much appreciate the help.
Thank you.
If you set up your app as a background sound playing app then yes, it is technically possible to play a "silent sound" in order to keep it active in the background, but your app will be rejected by Apple if you do this.
Apple expressly forbids what you are trying to do.
You should look at using scheduled local notifications. Those will alert the user, who can bring your app to the foreground and let it perform the desired task.
I would like to know, if I am able to force my iOS application to use only alert notifications for it.
Or is there a way to check what kind of settings the user has for my application and act on that respectively? Or at least set a default notification type to alert when the user accepts notifications from my application first time it launches.
I would prefer an answer in SWIFT, but I would just really like to know if it is possible.
Sorry.There's no way we can check or set what type of notification user has set for an application.
I'm trying to create a little reminder-app for my special needs ;-)
Is there a way to tell iOS to wake my app up from the background at a specific time/in regular intervals?
The app would then decide to turn on the screen or play a sound, if required.
So far I can't figure out how to do this. All I can find on iOS 7 multitasking is about playing music, downloading data etc. Nothing time based...
As far as I know, it is not possible.
The closest you can get to that is by sending either a local or a push notification.
Take a look at local notifications: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction.html
The main class is UILocalNotification, documented at https://developer.apple.com/library/ios/documentation/iphone/Reference/UILocalNotification_Class/Reference/Reference.html
I am trying to build an app in which I want to trigger a video using timer, i.e. similar to alarm instead of alarm pop-up(with snooze & dismiss option) with music, i want my app to open the video page.
Please suggest me how to proceed.
It's not possible to have an application start at a specific time. Apps can only be started in direct response to a user interaction.
There should be no problem in calling play on a mediaelement when a time (countdown) fires (expires). What specific problems have you had.
Can we close any other applicaton running in background from our application.
Want functionality just similar to Task manager.
Is it possible? Any hint.
Thanx in advance
"Victim" application should implement GlobalEventListener, and "killer" application should send a global event for the "victim" application. When "victim" app receives the specific event it closes.
If you want to close not your application, there is no way to do that. It just does not know that you want to close it.