How to handle events when application gets killed in IOS? [closed] - ios

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Is there any way to handle the ios application when it is killed or any way to open my app programatically in ios 9.

No.
When your app is killed, that is equivalent to being force quit. There is no signal or notification.
There is no way to cause the system to open your app automatically because that would be a security risk as well as being really annoying to the user.
You can use push notifications and/or extensions to make your app's presence known more to the user.

Related

Create a persistent iOS banner notification [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
The community reviewed whether to reopen this question 5 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I don't know about early versions of IOS, but iOS 11 has a feature:
How to create a persistent notification programmatically with swift in my IOS app? I didn't found any docs about it.
I also found this answer: Create a persistent notification in iOS but it was a long time ago, maybe the situation has changed ?
The feature you're describing is a local notification. See the docs here:
https://developer.apple.com/documentation/usernotifications
You cannot force notifications or their style on the user. That is what the Settings window in your screen shot is about. Only the user can decide whether your notification alert will appear as Temporary or Persistent. (The user can also decide to suppress your notifications completely.)

Users can't even open app and app won't let user delete it [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Recently, We received more iOS App Store reviews about that Users can't even open app and app won't let user delete it, This is strange, where there is a problem?
If you want to understand why your app crashes, you have to include some kind of crash Analytics code. (Crashlytics and Google Analytics have these feature.) On top of these, you can also check iTunesconnect for more information.
App not opening is an issue in your startup code. Check your code in these functions.
application:willFinishLaunchingWithOptions:
App not allowing to delete, is not possible on iOS. There is no public API that lets you interfere with App deletion. So it might not be your code issue.

Close another iOS app through a button [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I made an app. Now I want to close an other app (not mine) - does anybody here know how that is going to work?
I don't want to publish the App in the App Store - so it is only for private purposes but I dont want to jailbreak my iPhone.
For security reason an app cannot control another one.
You cannot do it.
It's not possible - your app is contained within its own sandbox separate from other apps on the device.
For more information, you can read Secutiy Overview: Code Security in the iOS Developer Library.

how can I get mail app's notification in iOS from my own app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to get notification of mail app that apple created from my app that I will create.
Is it possible that getting information of another app or built-in app?
Please, Let me Know.
No, it isn't possible. In iOS, your app is sandboxed and there is no interapplication communication.

Background GPS in iOS mobile safari [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I know it is possible to have an iOS app running in the background which transmits GPS data periodically.
I was wondering if the same is possible if a user is on a webpage in mobile safari. Can watchPosition be used even if the user is not actively on the webpage but the tab is open in mobile safari (i.e. in the background)?
Yes, it is possible, but you app would have to be running in the background for it to work. You would use the same Location Awareness API that Apple provides and run it in the background, so that even when your app closes, it is still running.
You can see the answer given for this question for this question.
By using the instructions laid out by Apple, you can achieve this, but your app has to be run for it to work. So if they never start your app, no location tracking.

Resources