Skip to content

Commit

Permalink
Merge pull request #636 from SUI-Components/feat/sui-app-icons
Browse files Browse the repository at this point in the history
feat(components/tool/app): Local notifications
  • Loading branch information
oegea authored Nov 15, 2023
2 parents aef22e0 + 6fad502 commit d16a9d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/tool/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,8 @@ const isAvailable = await getBiometricLoginCredentials({
subtitle: 'Confirm your identity without having to remember your password',
description: 'Please use a biometric device to identify yourself',
})
```
```

## Local notifications

Please refer to the following documentation: `https://capacitorjs.com/docs/apis/local-notifications`
3 changes: 3 additions & 0 deletions components/tool/app/bin/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ module.exports = () => {
if (!hasDependency('@capgo/capacitor-native-biometric'))
installDependency('@capgo/capacitor-native-biometric')

if (!hasDependency('@capacitor/local-notifications'))
installDependency('@capacitor/local-notifications')

// If app has already been initialized
if (hasCapacitorConfig()) {
reportError(
Expand Down
1 change: 1 addition & 0 deletions components/tool/app/bin/commands/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const uninstallSuiApp = () => {

const uninstallPlugins = () => {
uninstallPackage('@capgo/capacitor-native-biometric')
uninstallPackage('@capacitor/local-notifications')
}

// Business logic
Expand Down

0 comments on commit d16a9d1

Please sign in to comment.