Push and memory warnings

Test notification handling and low-memory paths by delivering a push payload on iOS, or a critical memory trim on Android, from a spec.

Two one-off events rather than states: nothing is held on the device afterwards.

await device.push({ aps: { alert: { title: "Order shipped" } } });
await device.memoryWarning();
MemberiOS simulatorAndroid emulator
push(payload, { bundleId? })delivers the payload to the app (simctl push, needs aps, 4096 bytes max)E_UNSUPPORTED
memoryWarning({ bundleId? })E_UNSUPPORTED: the lowmemory notification never reaches a UIKit appam send-trim-memory RUNNING_CRITICAL to the running app

By hand with warden ui push and warden ui memory-warning: Push and memory warnings on a simulator.