Get the latest tech news
Preventing app removal on iOS
These days, I am developing an alarm app called ‘SuperAlarm’. To ensure a user is awake, SuperAlarm can be turned off only after a user completes a mission(e.g., taking a picture...
This problem does not exist on SuperAlarm for Android, since users cannot exit from the app to the home screen while the alarm is going off. The key is using Screen Time API of iOS.After getting approval from the user, the developer can set a flag to deny app removal. Note 1 To use this API, you should be approved for Family Controls & Personal Device Usage Entitlement by Apple.
Or read this on Hacker News