Skip to content
Open
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
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,20 @@ Client-side integrations that drop the Pluggy Connect Widget into a page. See [`
| Flutter | [`frontend/flutter`](frontend/flutter) | Flutter + WebView |
| Vanilla HTML | [`frontend/html`](frontend/html) | Drop-in CDN script |
| Flask | [`frontend/flask`](frontend/flask) | Python Flask + server-rendered templates |
| Cordova | [`frontend/cordova`](frontend/cordova) | Apache Cordova iOS |

#### Integration patterns shipped as agent skills

Some platforms make more sense as agent skills than as wrapper projects — the integration is small, but the surrounding framework rots fast. The skill lives in [`pluggyai/agent-skills`](https://github.com/pluggyai/agent-skills) and is version-agnostic: bring your own up-to-date project.

| Platform | Skill | Replaces |
|----------|-------|----------|
| Apache Cordova (iOS / Android) | [`pluggy-cordova`](https://github.com/pluggyai/agent-skills/tree/main/skills/pluggy-cordova) | [`frontend/cordova`](frontend/cordova) (now a stub) |

Install in any Agent-Skills-format agent (Claude Code, Cursor, GitHub Copilot, …):

```bash
npx skills add pluggyai/agent-skills
```

### Backend — token, webhooks, persistence

Expand Down
26 changes: 0 additions & 26 deletions frontend/cordova/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion frontend/cordova/.npmrc

This file was deleted.

50 changes: 31 additions & 19 deletions frontend/cordova/README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,44 @@
# Pluggy Connect - Cordova Example
# Pluggy Connect for Apache Cordova — retired example

Apache Cordova integration of the Pluggy Connect widget for iOS.
> **This quickstart is no longer maintained as a runnable project.**
> The integration patterns are now published as an [agent skill](https://github.com/pluggyai/agent-skills/tree/main/skills/pluggy-cordova) so they stay up-to-date with whatever Cordova version your app is on.

## Prerequisites
## Why this changed

- macOS (for iOS builds)
- Node.js
- [Apache Cordova CLI](https://cordova.apache.org/docs/en/latest/guide/cli/)
- Xcode (for iOS simulator/device)
The previous `frontend/cordova` example pinned `cordova-ios@7.0.0` and a fixed CDN widget version. It made sense at the time but turned into a maintenance liability — Cordova plugins age fast, the widget pinning drifted, and a "Hello World + Pluggy Connect" wrapper isn't really *running* anywhere on its own.

## Setup
A skill is version-agnostic: you bring your own up-to-date Cordova project, and the skill teaches the integration on top of it.

1. Install dependencies:
## Use the skill

Install in any agent that supports the [Agent Skills](https://agentskills.io/) format (Claude Code, Cursor, GitHub Copilot, …):

```bash
npm install
npx skills add pluggyai/agent-skills
```

2. Edit `www/js/index.js` and replace `'https://my-own-api.vercel.app/api/token'` with your token endpoint URL
- You can deploy one using the [Vercel Connect Token example](../../examples/vercel-node-connect-token)
Then ask:

3. Build and run on iOS:
> Add Pluggy Connect to my Cordova app

```bash
cordova run ios
```
Or read it directly: [`pluggyai/agent-skills` → `skills/pluggy-cordova/`](https://github.com/pluggyai/agent-skills/tree/main/skills/pluggy-cordova).

The skill covers:

- WebView configuration (`config.xml` `allow-navigation`, CSP exceptions)
- Widget initialization on `deviceready` with a pinned CDN version
- Token + data flow — keeping the API key off the device, what to do after `onSuccess`, webhook handoff

## You still need a backend that issues connect tokens

The skill covers the Cordova side; the connect token has to come from a server. Any of these still-maintained examples in this repo work:

- [`examples/vercel-node-connect-token`](../../examples/vercel-node-connect-token) — minimal Vercel serverless endpoint
- [`examples/vercel-quickdeploy-nextjs`](../../examples/vercel-quickdeploy-nextjs) — full Next.js + Supabase + webhooks flagship
- [`examples/node-nestjs`](../../examples/node-nestjs) — NestJS + Postgres
- [`examples/aws-sst`](../../examples/aws-sst) — Lambda + DynamoDB on SST v4
- [`java`](../../java) — Spring Boot

## Resources
## Where the old code lives

- [Pluggy Connect Widget Docs](https://docs.pluggy.ai/#pluggy-connect-widget)
- [Apache Cordova Documentation](https://cordova.apache.org/docs/)
The original Cordova source is available in the git history of this directory before this commit. If you genuinely need a starting-point project rather than the skill, an earlier tag of this repo still has it — but the snippets in the skill are the same patterns with current best practice baked in.
13 changes: 0 additions & 13 deletions frontend/cordova/config.xml

This file was deleted.

Loading