This example shows how to open your app from browser URL.
Note: this example works only production build!
# with npx
$ npx create-nextron-app my-app --example basic-typescript
# with yarn
$ yarn create nextron-app my-app --example basic-typescript
# with pnpm
$ pnpm dlx create-nextron-app my-app --example basic-typescript
$ cd my-app
# using yarn or npm
$ yarn (or `npm install`)
# using pnpm
$ pnpm install --shamefully-hoist
# production build
$ yarn build (or `npm run build` or `pnpm run build`)
Open your-custom-protocol://open?token=jwt-value
in your browser, then the app will be shown like a magic!
If you want to change schema URL, please edit electron-builder.yml#protocols
:
protocols:
name: Your App Name
schemes: [your-custom-protocol-edited]
Then, you can see the app from URL: your-custom-protocol-edited://any-uri-here?data=include-any-data
.