I have an app that tracks some sensors. I am using MQTT and Adafruit to send the sensor information between sensor stations and Adafruit and my app. I have everything working great but have a small problem. I would like to be able to check my sensor reading on my app every 10 - 15 minutes when the app is in the background. I have the background function working and have scheduled it for every 15 minutes. When the app wakes in the background it checks the reading from Adafruit and sends those reading to a cloud account using CloudKit. This is used to update the AppleWatch extension of the App. I would also like to send notifications if certain sensor conditions are met. Like when water is detected and how much water is there.
I know that in order to moderate the impact of the background functionality of an app on processing and battery power Apple basically can delay the background function up to two days.
This poses a problem since the purpose of the app is to detect how much water is present. Say a leak developed and it is sensed but the owner isn't notified of the leak for two days. The app isn't much good since in two day a lot of damage can be caused which if notified within 10-15 minutes could have been avoided.
When my app wakes in background it runs for about 5 seconds. So over the course of one day that would be about 12 minutes.
Is there any way to petition Apple to let an app runs as needed in the background to promote the true function of the App?
I know that in order to moderate the impact of the background functionality of an app on processing and battery power Apple basically can delay the background function up to two days.
This poses a problem since the purpose of the app is to detect how much water is present. Say a leak developed and it is sensed but the owner isn't notified of the leak for two days. The app isn't much good since in two day a lot of damage can be caused which if notified within 10-15 minutes could have been avoided.
When my app wakes in background it runs for about 5 seconds. So over the course of one day that would be about 12 minutes.
Is there any way to petition Apple to let an app runs as needed in the background to promote the true function of the App?