FaxStore
When an app is created it's recommended to have the app registered to ensure it's visible on FaxStore's staff panel and internally within the FaxStore application.
Register your app so it shows in the staff panel and other apps can find it. faxstore.registerExtension works the same as faxstore.apps.register:
faxstore.apps.register({
id: 'myapp',
name: 'My App',
version: '1.0.0',
author: 'Your Name',
description: 'What the app does.',
staffPage: {name: 'My App', link: '/staff/myapp', icon: 'puzzle-piece'}
}, __filename);Option | Notes |
|---|---|
| Required. Shown on Integrations. |
| What other apps use to find yours, e.g. |
| Functions other apps can call. See Using Other Apps. |
| Adds a link to the staff sidebar and a button on Integrations: |
| Shown on Integrations. |
| Adds a Learn More button on Integrations. |
| Saved with your app, so other apps can read them. |
register() returns true when your app is registered. If it can't register your app, it returns the reason and logs it to the console, for example when name is missing or another app already uses the id or name.
Pick an id that no other app uses. If two apps use the same id or name, FaxStore keeps the first one to register and skips the other. Apps start at the same time, so which one registers first can change between restarts.