Is there a way to put code in iOS that is always watching in the background for the contact store to change? If I put it in my app, then the user can close the app, and the app won't receive notifications when the contact store changes? Is there an app extension I can use that would allow me to do this, whether that is the intent of the extension or not?
Replies
Look at BackgroundTasks Framework, hope that will meet your needs.
Some details here
https://www.raywenderlich.com/21242372-background-tasks-in-ios/lessons/1
or
https://www.spaceotechnologies.com/ios-background-task-framework-app-update/
-
I think Background Tasks is a good solution. What happens when the user turns off and then turns on the device? I there a way for my app to start the background task again or for my app itself to open on startup? I found (this thread)[https://developer.apple.com/forums/thread/108561) that suggests going into kiosk mode and has a link to another thread about MDM. My app is one that anyone would be able to purchase from App Store, so I think MDM wouldn't work, but is there a way to use kiosk mode without additional setup, so that my app uses kiosk mode right after the user installs the app from App Store? Guided Access still requires the user to do additional setup, as far as I can tell. If there is no other way around requiring user setup, what is the best way to go about it?
-
Am I correct that the only way for my app to start automatically on iOS startup or for anything I want to be done automatically on iOS startup is for the iOS device to be supervised, and that an app installed from App Store can never be automatically supervised without another system supervising the device the app is installed on? I apologize for my bad wording. I don't have the vocabulary to describe what might be required in order for a device to be supervised. I am basically asking if there is a way for my app or background task to automatically start up on iOS startup without the device to be part of a system that runs independently of Apple's App Store. I think that's the best wording I can come up with.
-
What about using a Shortcut. Does this open up any possibilities?