-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[local_auth] Add Android theme compatibility documentation #6875
Changes from 4 commits
eb0e98b
a39808b
144d4b1
043b928
1b1ab97
f444f14
890e7c7
51bfbca
0d70eb5
d507452
7964add
3feee16
443aa37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -252,6 +252,37 @@ 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. | ||
|
|
||
| #### Android theme | ||
|
|
||
| On Android, ensure that the `LaunchTheme` of your app has a parent style with the `Theme.AppCompat.Light` theme; otherwise the app may crash. To do that go to `android > app > src > main > res > values > styles.xml` and look for the style with name `LaunchTheme` (Notice that `LaunchTheme` must be referenced in the `AndroidManifest.xml` file). Then, change the parent style with the new value and you should have set up something like this: | ||
|
||
|
|
||
| ```xml | ||
| ... | ||
| <resources> | ||
| <style name="LaunchTheme" parent="Theme.AppCompat.Light"> | ||
| ... | ||
| </style> | ||
| ... | ||
| </resources> | ||
| ... | ||
| ``` | ||
|
|
||
| In case you don't have a `styles.xml` file for your Android project you can set up the Android theme directly on your `android > app > src > main > AndroidManifest.xml` file: | ||
|
||
|
|
||
| ```xml | ||
| ... | ||
| <application | ||
| ... | ||
| <activity | ||
| ... | ||
| android:theme="@style/Theme.AppCompat.Light" | ||
| ... | ||
| > | ||
| </activity> | ||
| </application> | ||
| ... | ||
| ``` | ||
|
|
||
camsim99 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ## Sticky Auth | ||
|
|
||
| You can set the `stickyAuth` option on the plugin to true so that plugin does not | ||
|
|
||




There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Please wrap all of the new text here to 80 characters, as with the rest of the README.