React Native
One call that wraps the HTTP API's bearer door, with nothing else in the dependency tree. The token is your source's ylk_…, from its page.
Install
The Node package, as it is: it uses the platform's fetch and nothing from Node, so it runs in React Native and in Expo without a native module.
$ npm install youlmk
Send
import { notify } from "youlmk";
await notify(token, "order placed", { body: "#2041 · $84.00", priority: "high" });
The options, the answer and the errors are the Node package's: { id, receipt, grouped, held } back, a YouLMKError with status, code, field and retryAfter on failure.
Inside an app you ship
A token that ships inside an app is public: an app you distribute sends through its own server, or through a source whose Reach you are happy to let strangers reach.
Next
Node: One call from Node, Bun or Deno. ESM and CommonJS, with types, no dependencies. · Swift · Kotlin