Documentation
Getting started
- Create an account and verify your email address.
- Choose Applications → New application and enter your website's address. It must be a public site on a real domain; local and private addresses are refused.
- Review what BeastView read from your site (name, colours, icons) and adjust it through the wizard's steps.
- Create the application and start a build. When it completes, download the APK and the AAB from the build page.
Configuration
Open an application and choose Configuration. Changes are saved as the working copy and used by the next build; earlier builds keep the configuration they were made with.
Identity
- Package name — the app's permanent ID, such as com.yourcompany.shop. Lowercase letters, digits and underscores, at least two parts separated by dots, each starting with a letter. It cannot be changed once the app is on Google Play.
- Version name and code — the name is what users see; the code is a number that must rise with every release. BeastView raises the code automatically on each build.
Branding
- Icon — a square PNG, JPEG or WebP of at least 512 × 512 pixels. Keep the artwork away from the edges: Android masks icons into circles and rounded squares.
- Splash and logo — optional; the icon is used when they are missing.
WebView
- Allowed domains — pages on these domains load inside the app. Use *.example.com to include every subdomain. Add the domains of your login or payment provider if those pages must stay in the app.
- External links — what happens to links that leave the allowed domains: open in the browser (default), block, or open in the app.
- Camera and location — off by default. Turning one on adds the Android permission; users are still asked before your site can use it.
Builds
A build runs in the background through these stages: queued, preparing, building, signing, validating, uploading, completed. You can leave the page; the build page updates by itself.
- Release key — signs with your application's own key. Use this for anything you distribute.
- Debug key — signs with a throwaway key, for quick testing only. A debug build cannot be uploaded to Google Play or installed over a release build.
After a build, BeastView inspects both files and lists the result: package name, version, label, permissions, manifest and signature. Build files are deleted after their retention period, shown on the build page.
Installing and publishing
Install the APK on a phone
- Download the APK on the phone, or copy it there.
- Open it. Android asks you to allow installs from that source the first time.
Publish on Google Play
- Create the app in your Google Play Console with the same package name.
- Upload the AAB from a release build to a testing or production track.
- For updates, run a new build and upload its AAB; the version code is already higher.
Test the APK on a real device before publishing. Google reviews apps under its own policies.
Deep links
- Turn on Deep links under Configuration → Features and add the domains (and optionally paths) to open in the app.
- Run a release build.
- Open the application's Settings tab, copy the assetlinks.json content shown there, and publish it at https://your-domain/.well-known/assetlinks.json.
- Install the new build. Android verifies the file and starts opening matching links in your app.
Push notifications
- Turn on Push notifications under Configuration → Features.
- In the Firebase console, add an Android app with your exact package name and download google-services.json. Upload it on the application's Notifications tab.
- In Firebase, open Project settings → Service accounts, generate a new private key, and upload that file too. It is stored encrypted and used only to send your notifications.
- Run a new build and install it. Devices register when the app is opened.
- Send a notification from the Notifications tab or the API. Links in notifications must be on the app's allowed domains.
Sending to some users only
To notify only some of your website's users, for example everyone who can open /admin or /confirmator, let your website tell BeastView who is on each device:
- Apps built from template 1.3.0 on give your website a cookie named
beastview_device. It is only present inside the app, and only your server can read it. - When a user logs in, your server reads the cookie and sends that user's roles to BeastView as tags. On logout it clears them.
- Send the notification with those tags, from the Notifications tab or the API. Only devices with one of the tags receive it.
# On login (your server)
curl -X PUT https://beastview.ecombeast.space/api/applications/APP_ID/devices/COOKIE_VALUE \
-H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" \
-d '{"tags": ["admin"], "user": "42"}'
# On logout
curl -X PUT https://beastview.ecombeast.space/api/applications/APP_ID/devices/COOKIE_VALUE \
-H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" \
-d '{"tags": [], "user": null}'
# Notify admins and confirmators only
curl -X POST https://beastview.ecombeast.space/api/applications/APP_ID/notifications \
-H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" \
-d '{"title": "New order #1042", "body": "Waiting for confirmation", "tags": ["admin", "confirmator"]}'
Set tags from your server only, after checking who is logged in, and keep the API token on the server. Tags use lowercase letters, digits and _ . : - (up to 50 characters, 20 per device). Tagging is limited to 600 requests per minute. A device that has not registered yet returns 404 device_not_found; it registers a few seconds after the app is first opened.
Laravel encrypts cookies by default: exclude beastview_device in bootstrap/app.php with $middleware->encryptCookies(except: ['beastview_device']).
API
The full reference, with every field, error code, webhook and the Partner API for platforms, is in the API reference.
Create a token under Settings → API tokens. A token works for one organization. Send it as a bearer token:
curl https://beastview.ecombeast.space/api/applications \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json"
| Method | Path | Purpose |
|---|---|---|
GET | /applications | List applications |
POST | /applications | Create an application (website_url required) |
GET | /applications/{id} | Show one, with its configuration |
PATCH | /applications/{id} | Change description or configuration |
DELETE | /applications/{id} | Delete |
POST | /applications/{id}/builds | Start a build; returns 202 |
GET | /builds | List builds; filter with status and application |
GET | /builds/{id} | Build status, failure and validation |
GET | /builds/{id}/artifacts | APK and AAB with SHA-256 and short-lived download links |
POST | /applications/{id}/notifications | Send or schedule a push notification, optionally to some tags or users only |
PUT | /applications/{id}/devices/{device_id} | Set a device's tags and user (from your website's server) |
GET | /applications/{id}/devices | List devices; filter with tag and user |
Identifiers are 26-character strings. Lists are paginated (per_page up to 100). Errors are JSON with a message; validation errors list each field. Requests are limited to 120 per minute per token, and build and notification requests to 10 per minute.
# Start a build, then wait for it
curl -X POST https://beastview.ecombeast.space/api/applications/APP_ID/builds -H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json"
curl https://beastview.ecombeast.space/api/builds/BUILD_ID -H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json"
curl https://beastview.ecombeast.space/api/builds/BUILD_ID/artifacts -H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json"