Documentation

Remote content

Remote content

Lists your app downloads when it needs them (quotes, tips, levels, word lists), edited or imported under Remote content and published without a new release. Each item is any JSON under a stable key; your app decides what the fields mean. Nothing downloads until the app asks, and after the first time only what changed.

In your app, with the SDK
public record Affirmation(string Text, string? Author);

var content = await BeeAppieSdk.Instance.Content.GetAsync<Affirmation>("affirmations");
foreach (var item in content.Items)              // Key and Value
    Show(item.Value.Text);
if (content.Items.Count == 0 && !content.IsUpToDate) { /* first launch offline: your built-in copy */ }

var cached = BeeAppieSdk.Instance.Content.GetCached<Affirmation>("affirmations"); // device copy, no network
@Serializable data class Affirmation(val text: String, val author: String? = null)

val content = BeeAppie.content.get("affirmations", Affirmation.serializer())
content.items.forEach { show(it.value.text) }    // key and value
if (content.items.isEmpty() && !content.isUpToDate) { /* first launch offline */ }
struct Affirmation: Decodable { let text: String; let author: String? }

let content = await BeeAppieSDK.content.get(Affirmation.self, from: "affirmations")
for item in content.items { show(item.value.text) } // key and value
if content.items.isEmpty && !content.isUpToDate { /* first launch offline */ }
final content = await BeeAppie.content.get('affirmations', Affirmation.fromJson);
for (final item in content.items) {              // key and value
  show(item.value.text);
}
if (content.items.isEmpty && !content.isUpToDate) { /* first launch offline */ }
interface Affirmation { text: string; author?: string }

const content = await BeeAppie.content.get<Affirmation>('affirmations');
content.items.forEach((item) => show(item.value.text)); // key and value
if (content.items.length === 0 && !content.isUpToDate) { /* first launch offline */ }
[Serializable] public class Level { public string grid; public int difficulty; }

var content = await BeeAppieSdk.Content.GetAsync<Level>("levels-easy");
foreach (var item in content.Items)               // Key and Value
    Load(item.Value.grid);
Or with the HTTP API
GET /v1/content/affirmations
GET /v1/content/affirmations?since=<token of your copy>

{ "name": "affirmations", "version": 3, "token": "3.col_…", "full": false,
  "items": [{ "key": "a12", "value": { "text": "Small steps count" } }],
  "removed": ["a07"], "nextAt": null }
  • Anyone with your app can read it: the app key ships in your app. Never put passwords, API keys or private data in remote content.
  • It never throws: offline, when BeeAppie can't be reached, or past the month's downloads, you get the copy on the device (empty the first time) with IsUpToDate false. Ship a copy in your app for the first launch: Export on the collection gives you the JSON.
  • A call within 5 minutes of the last one for the same collection answers from the device without a request; pass forceRefresh to check anyway. An optional timeout returns the device copy and finishes the download in the background.
  • An item that doesn't decode into your type is skipped (and logged); the others are returned. Items have no order: sort them in the app.
  • Release on a date (a daily puzzle, a word of the day): give an item an Available from time on its page, or _availableFrom when importing, and publish it ahead. Until then BeeAppie doesn't send the item or its key, whatever the device's clock says; at its time it arrives as a change. NextAt on the result (nextAt in the HTTP answer) says when the next one is due, never what it is, and once it has passed the 5-minute check doesn't hold the call back. Once released, everything in the collection is readable by anyone with your app, as before.
  • Over the HTTP API, send Accept-Encoding: gzip: answers are compressed and downloads are counted as sent. full: true means replace your copy; otherwise apply items and removed, and keep token for next time. 404 means there is no such published collection.
  • Your server can import and publish too, with a server key (/v1/manage/content): for example levels made by a script.

Ready when you are

BeeAppie opens to new apps soon. Leave your email and we will tell you when you can sign up.

Join the waitlist SDKs and downloads