Italiano

Configurations

This is the guide for the people who prepare configurations in the dashboard: those who decide what a fleet of installed apps will receive at the next start, those who connect the apps to Squiddy, those who publish. It explains how to write a configuration that does what you want, how to try it before publishing it and how to notice before your users when something goes wrong.

Where projects and environments are created, how to invite your colleagues and how to generate API keys: you find it in the guide to the Dashboard.

The mental model in five lines

A configuration is one JSON document for each app, in each environment. The app asks for it at start, sending its own context: version, platform, mode, language, custom parameters. Squiddy does not return the whole document, but its resolution for that context: a single API block, the force update message if there is one, the maintenance message if there is one, the translations. To change how the installed apps behave you do not need a new version in the store: you publish a configuration.

The two consequences that matter to whoever writes it:

The service that answers the apps is called the data plane: it is the word the dashboard uses when it says that a configuration is published “to the data plane”.

How to read

#PageAnswers
1Concepts and coordinatesWhere a configuration lives, how the app reaches the right one, who can change it
2Drafts, publishing and historyWhat Save draft does, what Publish does, how to go back
3Configuration formatEvery field of the JSON: what it means, how it is checked, which values it accepts
4Resolution rulesHow Squiddy picks a block: versions, rules, segments, percentage rollout
5Validation and previewThe error messages one by one, the Tester, the traps validation does not see
6RecipesThe procedures that come back: force update, maintenance, gradual rollout, going back
7Push updateHow to ask the apps to check the published version right away: the Firebase credential, the button, Publish and notify, the outcome, the history of push updates

If you have to set up your first configuration, read 1 → 2 → 6. If a published configuration does not reach the app the way you expect, read 4 → 5.

The six golden rules

These are the six things that, when wrong, do not produce an error but the wrong behavior. Each one is explained further on the page given.

  1. In api the first block that matches wins, in appUpdate and inFoPoint the last one. The order of the blocks matters (page 4).
  2. A block with empty appTypes or appModes matches nobody. It needs the explicit values or all (page 4).
  3. Versions are compared by removing the dots and reading the number: 1.2.0 becomes 120, 1.10.0 becomes 1100. Use fixed-width fields, with leading zeros: the recommended format is YYYY.MM.DD (page 3).
  4. The configuration is case-sensitive, the app's request is not. Squiddy lowercases the fields of the request and then compares letter by letter: "iOS" in appTypes never matches (page 4).
  5. Without languagesSupported in the chosen API block, the app receives no translations, even if the dictionary is complete. From the Form the field follows the Translations grid, and the editor warns you when a language is served by no block (page 3).
  6. The draft is tolerant, publishing is not. A misspelled key (appUpdates instead of appUpdate) is saved without objection and blocks publishing. The validation badge points it out while you write: watching it is the only way not to find out at the wrong moment (page 5).