GenericJam

GenericJam

Mob 0.9.40 has been released.

Added

  • Named screen-reader actions on a box: accessibility_actions. A list
    of {label, {pid, tag}}; each shows in VoiceOver’s actions rotor and
    TalkBack’s actions menu, and choosing one delivers {:tap, tag}, as
    on_tap does. With a box’s existing accessibility_label and the
    offset_x/offset_y every node takes (now documented), this makes
    regions drawn on a :canvas reachable: lay an empty labelled box over
    each one, with actions for what a finger would do there. A box without
    on_tap takes no touches, so the canvas keeps its drag. Android needs
    mob_new’s matching MobBridge.kt change. See the components guide,
    :box and :canvas. (MOB-608)

  • Per-screen status and navigation bar appearance. A root node’s
    system_bars: :light_content | :dark_content | :auto sets the bars’ icons
    for as long as that screen shows. :auto (the default) picks whichever
    contrasts better with what is behind the bars: a Scroll, or a square Column or
    Row, root’s opaque background, else the theme’s :background. So a dark
    app in light mode, or a dark camera screen, gets light icons instead of
    following the phone’s light/dark setting. iOS applies it in
    MobHostingController; Android needs mob_new’s matching MainActivity.kt
    and MobBridge.kt change, which also paints the root’s background under
    the bars as iOS does, so release this together with that mob_new change.
    See the theming guide, “Status and navigation bars”. (MOB-604)

  • Screens can intercept the system back gesture (MOB-611). An optional
    handle_back/1 returns {:pop, socket} to let back go ahead or
    {:stay, socket} to stay, e.g. to ask “Discard 2 pages?” first. It covers
    the Android back button and gesture and the iOS edge swipe.
    Mob.ScreenCase.render_back/1 tests it in the BEAM; Mob.Test.back/2 on a
    device.

  • Tests can see and answer alerts. Mob.Test.alerts/1 lists the alerts
    and action sheets open in the window (title, message, buttons, and the
    screen that showed each), the one in front first, and
    Mob.Test.answer_alert/2 presses a button by its label: the native layer
    presses it through the same path a tap takes, the dialog closes, and the
    screen that showed it receives that button’s {:alert, action}. An alert
    is answered once, whether a tap and an answer race or two answers do.
    Mob.ScreenCase gets the same alerts/1 and answer_alert/2 for host
    tests, where Mob.Alert now skips the native dialog instead of crashing
    (as does toast/3). Tests list an alert only if the screen kept the
    socket Mob.Alert returns, so return it from your callback. (MOB-610)

    Two behaviour changes come with it. An alert’s answer now goes to the
    screen whose socket showed it: the screen itself, the screen that handed a
    task its socket, or the screen a component belongs to. Before, it went to
    whichever screen was current when the alert was answered. The answer still
    arrives if the callback dropped the socket; if that screen has stopped by
    then, it goes to the window’s current screen. A screen that is no longer on
    top gets its answer but can’t push or pop from it. And an alert kept on a
    screen’s socket closes, unanswered, when that screen stops (it is popped,
    say), as a component’s does when the component stops.

    Release order: this mob first (as 0.9.40), then mob_new’s matching
    MobBridge.kt and beam_jni.c change, whose generated apps link mob’s
    new mob_deliver_alert_answer. An Android app without that change shows
    alerts as before, but tests can’t see or answer them, and
    Mob.Test.capabilities/1 reports alert_answer: false. See the testing
    guide, “Testing alerts and action sheets”.

Changed

  • Upgrading: rebuild natively (mix mob.deploy --native, or a release
    build). This release changes mob_nif’s native functions (alerts and
    action sheets, system bars, screen-reader actions) and Mob’s own iOS
    sources. A BEAM-only deploy of 0.9.40 onto an app built with an older mob
    fails to load mob_nif, and every screen crashes on launch, on both
    platforms.
  • Over-the-air bundles (mob_deliver) and the new features. A bundle
    carries only your modules, so it never brings these NIF changes to a
    device. Publish screens that use handle_back/1 or accessibility_actions
    with the manifest’s min_app_version set to a 0.9.40 build: on
    an older build handle_back/1 is ignored (back pops without asking) and
    accessibility_actions fails the render.
  • iPad action sheets without a cancel button. Tapping outside one now
    answers {:alert, :dismiss}; it used to send nothing. A screen that
    defines handle_info/2 without a catch-all crashes on it; match
    {:alert, :dismiss} or keep a catch-all.
  • Docs: screen orientation. Device Capabilities shows mob_dev 0.7.37’s
    orientations: :portrait | :landscape | :all in mob.exs, which locks both
    the iPhone and the Android launcher activity.
  • Docs: push registration failures. The Push Notifications and Device
    Capabilities guides show mob_notify 0.3.0’s
    {:push_token_error, :android, reason} and keep a catch-all
    handle_info/2 in their examples: a screen that defines handle_info/2
    loses Mob.Screen’s default catch-all, and an unmatched message crashes it.
  • Docs: observing a running app with Insider. The Agentic Coding guide
    shows how an agent records a running dev app (iOS simulator, Android
    emulator or phone; not a physical iPhone, whose node isn’t on loopback)
    with Insider’s
    insider-lab CLI and mix mob.insider (mob_dev 0.7.37 or later): when to
    reach for it rather than Mob.Test or a test, and the mark, act, digest
    loop. The app needs no dependency or config: mix mob.deploy marks dev
    builds as development and mix mob.release marks release builds as
    production, so Insider refuses them. Troubleshooting points to it for an app
    that misbehaves while the logs show nothing.

Mob Info

Classification: Hybrid Mobile Framework
Description: BEAM-on-device mobile framework for Elixir. OTP runs inside your iOS and Android apps — embedded directly in the app bundle, no server required. Screens are GenServers; the UI is rendered by Compose and SwiftUI via a thin NIF.
Forum/tag: mob

Click here to view Mob’s main announcement thread.

Where Next? Top

Trending in News & Updates Top

GenericJam
Mob 0.9.40 has been released. Added Named screen-reader actions on a box: accessibility_actions. A list of {label, {pid, tag}}; each ...
New
PJUllrich
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
bartblast
This thread is for updates on the Hologram website (docs, new pages, roadmap, feature status, etc.). You can watch this thread to get no...
New
mikehostetler
ReqLLM v1.31.0 has been released. Features: openai: support Daybreak access programs in Responses API (#1279) by houllette google: ...
New
aaronrussell
Omni 2.0 is out. Omni is a universal Elixir client for LLM APIs: text generation, tool use, structured output and decisions through one A...
New
nature
Hello, consumers of the Elixir liquid! :tropical_drink: I’ve got a little milestone to share. nature_whistle has officially crossed 1,0...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New
bartblast
If you haven’t tried Hologram yet, what’s stopped you? Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews