I am trying to build a parental control application which can apply restrictions to another apps in android devices. The restrictions can be like :-
- The app can restrict the opening of any game app selected by parents during the study time of the kid like between 7-8 pm etc.
- The app can restrict opening blocked urls. These urls will be selected by the parent.
I know that there is no such flutter plugin available for this purpose and that's why I am looking to develop a plugin for it. As per my understanding, we need to call native android api for android devices and screentime api for iOS devices. I am struggling to implement for android devices. The device policy manager file (open sourced by Google) has methods like setApplicationRestrictions but the caller of this api should be either device owner or profile owner. For making device owner, all the accounts in the device should be removed and no user will want this to happen. Profile owner creates work profile and is different from parental control.
I am lost into most of the resources I found online. I just want my app (android) to apply restrictions to another apps. I need help how to proceed regarding this implementation. Is there anyways to achieve this?.
I looked into the native android api but I am unable to use it due to device owner or profile owner restrictions.