hasRequiredPermissions method
Whether this probe is allowed to run.
The SmartphoneStudyController asks for all deployment permissions up
front (SmartphoneStudyController.askForAllPermissions), so probes only
check. Not on iOS: permission_handler reports Android-only groups (e.g.
activityRecognition, phone) as denied there, and iOS prompts on first use.
Implementation
Future<bool> hasRequiredPermissions() async =>
Platform.isIOS ? true : await arePermissionsGranted();