Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@supernotes/capacitor-app-actions
Advanced tools
Capacitor plugin for App Actions on iOS and Android
capacitor-app-actions
Capacitor iOS and Android Plugin for App Actions
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
npm install capacitor-app-actions
npx cap sync
No additional configuration required.
Add the following to AppDelegate.swift
. This snippet allows the plugin to recognize when an app action has been selected so that you can respond to those events.
func application(_ application: UIApplication,
performActionFor shortcutItem: UIApplicationShortcutItem,
completionHandler: @escaping (Bool) -> Void)
{
NotificationCenter.default.post(name: NSNotification.Name("appActionReceived"), object: nil, userInfo: ["actionId" : shortcutItem.type])
}
Typically app actions are added at application startup, but you can add them where appropriate:
import { AppActions } from 'capacitor-app-actions'
await Capacitor.Plugins.AppActions.set({ "actions": [
{ id: "order", title: "Order", subtitle: "Place an Order", icon: "star.fill" },
{ id: "locations", title: "Find location", subtitle: "Find nearby location", icon: "star.fill"}
]});
Listen to an event triggered by an existing app action:
AppActions.addListener("order", (info) => {
// Do your in app work. Navigate to the appropriate page or trigger other in app actions.
});
// clean up listeners when you are done
AppActions.removeAllListeners()
Thanks goes to these wonderful people (emoji key):
Nitish Sachar 🚧 💻 | Connor 🚧 | Tobias 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
Capacitor plugin for App Actions on iOS and Android
We found that @supernotes/capacitor-app-actions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.