Skip to content

v0.3.2

Choose a tag to compare

@joemasilotti joemasilotti released this 25 Mar 02:19
· 254 commits to main since this release

Added

  • native_badge_tag helper for updating the app icon badge and tab bar badge from page loads. Works in both Normal Mode (via data-native-badge signal element) and Advanced Mode (via bridge--badge Stimulus controller). Pass a single count to set both badges, or use home: and tab: keyword arguments for independent control. Omitted parameters leave that badge unchanged.
  • RubyNative.setBadge(5) JavaScript API for updating badges programmatically. Accepts a number (sets both) or an object with home and tab keys.
  • badge: true tab config option in config/ruby_native.yml to designate which tab receives the tab bar badge.