hasRequiredPermissions method
Whether this probe is allowed to run.
On Android the SmartphoneStudyController requests all deployment permissions in a single batch (SmartphoneStudyController.askForAllPermissions), so probes only check - requesting again here would collide, as permission_handler forbids concurrent requests. On iOS permissions are requested automatically when a resource is accessed.
Implementation
Future<bool> hasRequiredPermissions() async =>
Platform.isIOS ? true : await arePermissionsGranted();