Try it in Developer mode
Load your plugin from a file, a link or the clipboard, try it on a text, reload it, and read what went wrong.
Developer mode loads a plugin you're making straight onto your own device, unreviewed, so you can try it, change it and load it again before anyone else sees it. Everything here is in Settings › Developer › Plugins in development, and on each plugin's own page there.
Developer mode
Turn it on with twelve taps on Settings › About › Version (how). Plugins in development load only in Developer mode, and run only while it's on: switch it off and they stop, switch it back on and they're there again. While one is on, the list of conversations says so in a quiet line: A plugin in development is on · Settings › Developer. They show in the Marketplace too, under Marketplace › In development and as In development · not reviewed on their pages, so one never looks like a reviewed plugin.
Tap a plugin's row in Settings › Developer for its page there: where this copy came from and when, its Problems, what it ran into Lately, Try it, its own settings once it's on, and Reload, Open in the Marketplace, Submit it to the Marketplace and Remove. Its page in the Marketplace leads back here, so changing it, reloading, trying it and reading what went wrong all happen in one place.
Three ways to load one
| Way | Android phone | Mac | Windows PC | iPhone |
|---|---|---|---|---|
| Load a plugin from a file | Yes, and a .uplinkplugin file shared into the app loads too | Yes | No | No |
| Paste a plugin: its words, copied from anywhere | Yes | Yes | Yes | Yes |
| Load a plugin from a link | Yes | Yes | Yes | Yes |
- A link is
httpsto anywhere, or plainhttponly to the device itself:http://127.0.0.1on Android, which reaches your computer throughadb reverse, and127.0.0.1,localhostor[::1]on a computer. Anything else says "Use http://127.0.0.1 with adb reverse, or https." - A link may redirect three times, each to an address the same rule allows. It has 10 seconds to answer and 20 in all, and the file is at most 256 KB.
- Each load says how it went: "Bills loaded", "Bills loaded. Switch it on to agree to what it can do now.", or what was wrong.
- Loading a copy with the same id as one loaded already takes its place, switched on or off as that was.
- An id a plugin from the Marketplace has on this device is refused: "Bills is installed from the Marketplace. Remove it there first, or give your copy another id."
python3 -m http.server 8080 # on your computer, in your plugin's folder
adb reverse tcp:8080 tcp:8080 # then load http://127.0.0.1:8080/yours.uplinkplugin on the phone
Try it, and the samples
A plugin's page in Settings › Developer has Try it, which runs it on words you type as if they'd come from a number not in your contacts. Nothing is sent, no text has to come, and it works on every platform, an iPhone's too.
- Type the text, and who it's from if it matters (
72975if you leave it). Every switch on tries it with all of its switches on. - Try it says the tags it gave and what each kept, the tab or kind it goes to, its row's value and caption, the buttons it offers in each place, what it would do as the text came (mark read, silence), and how long it took.
- Where a built-in plugin that's on would take the text first, it says which: "In this app, Kinds of text › Payment reminders takes this text first". That's built-in plugins sorting first; switch that kind off to let yours have it.
- Try the samples runs it on sixteen texts, and lists what it made of each one.
| Sample | Bills makes it | Parcels makes it |
|---|---|---|
| Your bill is ready. Amount due: $45.20 by 3 Dec. Pay at example.com/pay | bill: $45.20, Bills | |
| EnergyCo: your statement is ready to view online. | bill, Bills | |
| Thank you for your payment of £30.00. It may take 2 days to show. | paid, Receipts | |
| Payment of €12,50 received. Ref 88213. | paid: €12,50, Receipts | |
| Reminder: minimum payment due on your card. | bill, Bills | |
| Your council tax is due next week. | ||
| Your parcel has shipped! Tracking number: 1Z999AA10123456784 | parcel, track: 1Z999AA10123456784, Parcels | |
| Your order is out for delivery today. | parcel, Parcels | |
| We tried to deliver your parcel. Missed delivery, rebook at example.com | parcel, Parcels | |
| Good news, your order has been dispatched. | ||
| Your new blue parcel has shipped. Tracking no. JD014600006295117 | parcel, track: JD014600006295117, Parcels | |
| Your code is 482913. Don’t share it with anyone. | ||
| Are we still on for dinner on Friday? | ||
| Your appointment is on March 5th at 3pm. Reply C to cancel. | ||
| Congratulations! You have won a $500 gift card. Claim now: http://prize.example/win | ||
| Vote YES on Measure 12 this Tuesday. Paid for by Friends of the Park. |
Each sample is from 72975, with the plugin alone and its settings as they start. A blank is nothing: no tags, no tab.
Try it and Try the samples use the plugin's settings as they start, not what you've chosen on its page, and Every switch on turns its switches on, never a choice or words. So the council tax and dispatched samples come out blank here: Bills sorts the first only with council tax in More words for bills, and Parcels sorts the second only with What counts as a parcel on Anything about shipping. Try those on real texts once you've chosen them.
Reload
Reload, on a plugin's page, loads it again from where it came from: a link is fetched again, and a file loaded on a Mac is read again from where it is. A pasted plugin, or a file picked on Android, has no Reload: paste it or pick it again, and the new copy takes the old one's place.
- A copy with problems doesn't take the place of one that works: the last good copy keeps running, and the new copy's problems are listed.
- A copy whose id has changed is refused: "The copy's id is now billz: load it as a new plugin."
- A copy that can do more than you agreed to, a new permission, a new link or a new tab, is switched off until you agree again: switching it on shows the sheet again, with what it can do now.
Problems and errors
A plugin's page lists Problems, its newest copy's, each with its code, where it is in the file (rules.tags[0].any[2], or nothing for the whole file) and what's wrong in words, and Lately: what it ran into while running, newest first, such as a button the app refused. A load that isn't JSON, or has no id the app can use, adds no row at all: a sheet lists its problems, with Copy the problems.
Errors stop a plugin loading and being submitted, and its row counts them as problems. Warnings don't, and its row counts them apart (1 warning), but a reviewer sees them too:
| Warning | What it means |
|---|---|
broad_phrase | A phrase with no token that's one short word (four letters or fewer), or one like "your", "the" or "thanks": it matches far more texts than you mean. |
description_link | The description has a web address in it. |
unused_tag | A tag nothing uses: no condition, template or section reads it. |
opens_links | It opens its link when a button is pressed: check that's your own page. |
| Error | What it means |
|---|---|
too_large | The file is over 262,144 bytes. |
too_deep | It's nested more than 8 deep. |
bad_utf8, bad_json | It isn't UTF-8, or isn't JSON. |
not_object | The file, a rule, a setting or a condition isn't an object. |
format_unknown | format is missing, or isn't ghost-plugin/1. |
needs_newer_app | minApp is newer than this app. |
unknown_field | A key the format doesn't have, anywhere (a row's title, a section's hidden and a condition's group among them). |
missing | A required field isn't there. To submit, that includes icon, developer and support. |
wrong_type | A field is the wrong kind of JSON: a string where a list should be, say. |
fraction | A number with a fraction or an exponent. |
bad_text | Words that break the rules for words: a space at an end, a line break where there can't be one, an invisible character. |
too_long, too_short | Words longer or shorter than they may be. |
too_many, too_few | More or fewer of something than allowed: labels, links, settings, rules. |
duplicate | The same thing twice where each must be different: keys, ids, labels, permissions, links, screenshots, a choice's values. |
bad_id, id_reserved | The plugin's id breaks its pattern, or is one the app keeps. |
id_example | A submission with an example's id: "That's the example's id: give your plugin an id of its own." |
bad_version | version or minApp isn't three numbers with dots between. |
bad_hue, bad_shelf, bad_label, bad_permission | Not one of the words the format takes. |
bad_icon_name | Not one of the app's icon names, or one kept for the app. |
bad_icon | The icon isn't a square PNG of 64 to 512 pixels with only the chunks allowed, or is too large. |
bad_url, bad_email | An address the format doesn't take. |
bad_shot | A shots entry isn't 64 lower-case hex characters. |
bad_developer | developer isn't a username, or has uplink, ghost, gogho, official, verified or support in it. |
name_reserved | The name, or a section's label, is a built-in plugin's or one of their tabs' or kinds', even in look-alike letters, or has uplink, ghost or gogho in it. |
bad_color | A face's colour isn't #RRGGBB. |
bad_key | A setting's key, a section's key, a tag's name, an action's id or a choice's value breaks its pattern. |
bad_slot, bad_verb | Not a place a button can go, or not something a button can do. |
verb_fields | A button's fields are missing, or are ones its do doesn't take. |
verb_not_here | A button in a place that can't take it: a write in the list's menu or on a row, a move in a message's menu or to a kind, a row's tap that isn't a copy. |
unknown_setting, unknown_tag, unknown_section, unknown_action | A name for something the plugin doesn't have, or has of another kind. In a tag rule, a tag no earlier rule gives. |
section_condition | section in a condition that isn't a button's. |
from_with_incoming | from anywhere in a plugin with an incoming rule. |
bad_link_when | from anywhere in a plugin with a link button: in a tag rule's, a section's or a button's condition. |
needs_permission, permission_unused | A rule uses a permission the plugin doesn't list, or it lists one nothing uses. |
link_not_declared | A link button's address isn't the plugin's one link. |
incoming_needs_toggle | An incoming rule's setting isn't a switch that starts off. |
takes_nothing | A section's takes has neither tagged nor from. |
tag_rule_no_trigger | A tag rule with nothing to start it. |
leaves_main_on_filter | leavesMain on a kind. |
choice_default | A choice's default isn't one of its values. |
header_full, slot_full | More than one button in the header, or three lines in a menu. |
bad_template | A placeholder where none may be, a brace where none may be, or a {…} that isn't {tag:name}. |
too_many_phrases, too_many_anchorless | Over 200 phrases, or over 8 without an anchor, in the plugin; or over 1,600 phrases in all of this device's plugins. |
phrase_bad_text, phrase_bad_token, phrase_tokens_touch, phrase_token_touches_word, phrase_words_edge, phrase_url_followed, phrase_too_many_tokens, phrase_too_short | A phrase breaks one of its rules. |
empty_pack | No tag rule and no section. |
too_many_issues | A hundred problems or more: the first 99 are listed, and this one says how many more. Fix those and check it again. |
not_canonical | Only from the Marketplace: the file wasn't sent the way the app sends it. |
Loading can be refused for reasons outside the file too: too_many_packs (sixteen plugins on the device already), id_installed (the Marketplace's copy of that id is here), id_changed (a reload with another id), bad_link and fetch_failed (a link that isn't allowed, or didn't answer), and dev_mode_off.
From your computer, through the API
With the phone plugged in by USB and Settings › API › Serve the API on (Developer API), a script can load, try and remove plugins in development:
adb forward tcp:8765 tcp:8765
# Load it: the file's JSON as "pack" (or its words as a string, "text")
printf '{"pack": %s}' "$(cat bills.uplinkplugin)" | curl -s http://localhost:8765/api/plugins.devInstall \
-H 'Authorization: Bearer <token>' --data-binary @-
# Only check it, loading nothing
printf '{"dryRun": true, "pack": %s}' "$(cat bills.uplinkplugin)" | curl -s http://localhost:8765/api/plugins.devInstall \
-H 'Authorization: Bearer <token>' --data-binary @-
# What the phone's plugins that are on make of a text
curl -s http://localhost:8765/api/filters.classify -H 'Authorization: Bearer <token>' \
-d '{"text": "Your bill is ready. Amount due: $45.20 by 3 Dec."}'
# Remove it
curl -s http://localhost:8765/api/plugins.devRemove -H 'Authorization: Bearer <token>' -d '{"id": "bills"}'
plugins.devInstallanswers{"ok": true, "id": "bills", "plugin": "xbills", "on": false, "issues": []}inside the API's ownresult. A plugin with problems isn't an error: it answers"ok": falsewith every one inissues.- It loads switched off.
"on": trueswitches it on only where you've agreed on the phone to everything it can do already; otherwise it answers"on": falseand"needs": "consent on the phone". The phone says whenever a plugin was loaded from the API, so nobody with your token can load one unseen. filters.classifyasks only the plugins that are on. A plugin first loaded from the API is off until you've agreed on the phone to what it can do: switch it on once in Settings › Developer › Plugins in development. After that a load with"on": trueswitches it on too. Until thenfilters.classifyshows only the built-in plugins' tags.- Once it's on,
filters.classifygives the tags under their names in the app (xbills.bill:$45.20) and the section it would go to:xbills0bills, or another plugin's where a built-in plugin takes it first (with Kinds of text on, the example bill goes to itsreminders). plugins.listsays each plugin'ssource(builtIn,reviewedordev) andversion.- With Developer mode off they answer "Turn on developer mode first: tap Settings › About › Version twelve times."
Which texts a plugin sees
A plugin sees only texts from one person not in your contacts, in words known to be theirs, not sent with Uplink's encryption, and never chats on other networks, circles or spaces (all of it). When you test on real texts:
- A text from someone in your contacts does nothing, nor does a group, or your own message.
- A conversation you started that's had no answer yet isn't seen until something comes back.
- A text with a sign-in code in it is tagged, and nothing more.
- Try it (on or off) and
filters.classify(once it's on) always count as a stranger's text, so they're the quickest way to test.
Testing the next version of a listed plugin
Your copy in development and the Marketplace's copy of the same plugin can't both be on one device. To try your next version:
Remove the Marketplace's copy
On its page in the Marketplace, tap Remove. Your choices for it are kept.
Load yours
Load your new version in Settings › Developer › Plugins in development, and try it as above.
Then put things back
When you're done, remove your copy there, and add the Marketplace's again from its page. Once your new version is approved, it's an update like anyone else's.
Docs