Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/permission_handler_watchos/example/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# permission_handler_example

A watch demo of `permission_handler_watchos`: every permission watchOS has,
with its status. Tapping one asks for it.
`permission_handler_apple`'s own example app, on watchOS: it lists every
permission with its status and asks for one when tapped. Run it, and its
integration test, on an Apple Watch simulator with:

```sh
flutter-watchos run -d <watch-sim>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ void main() {
expect(await Permission.storage.status, PermissionStatus.granted);
expect(await Permission.storage.request(), PermissionStatus.granted);
// The example has neither the Critical Alerts entitlement nor Siri, so
// neither has been asked for. Its Info.plist has no
// NSSiriUsageDescription, so Siri is not even asked about: INPreferences
// ends an app without the Siri entitlement.
// neither has been asked for. Its Info.plist does not set
// PermissionHandlerWatchosSiri, so Siri is not even asked about:
// INPreferences ends an app without the Siri entitlement.
expect(await Permission.criticalAlerts.status, PermissionStatus.denied);
expect(await Permission.assistant.status, PermissionStatus.denied);
});
Expand Down
Loading