Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
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
Next Next commit
[DOC][Android] - Add Android theme compatibility documentation
  • Loading branch information
Abel1027 committed Dec 22, 2022
commit eb0e98ba3cfc6299115a0ac4bc1db727f6d1cb54
18 changes: 18 additions & 0 deletions packages/local_auth/local_auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,24 @@ types (such as face scanning) and you want to support SDKs lower than Q,
_do not_ call `getAvailableBiometrics`. Simply call `authenticate` with `biometricOnly: true`.
This will return an error if there was no hardware available.

Furthermore, you need to update the `AndroidManifest.xml` file with the
`Theme.AppCompat.Light` theme to be compatible with **Android version 8 and below**;
otherwise the app crashes for those versions.

```xml
...
<application
...
<activity
...
android:theme="@style/Theme.AppCompat.Light"
...
>
</activity>
</application>
...
```

## Sticky Auth

You can set the `stickyAuth` option on the plugin to true so that plugin does not
Expand Down