Why mobile rules?
Offline evaluation. Rules execute locally on the device, working without network connectivity. Low latency. No network round-trips means instant evaluation, critical for responsive UX. Reduced server load. Offload rule evaluation to client devices, reducing backend infrastructure costs. Privacy. Sensitive data never leaves the device when rules are evaluated locally.Architecture patterns
Bundled decisions
Ship decision files with your app bundle. Best for rules that change infrequently.App Bundle
assets
rules
pricing.json
eligibility.json
Remote decisions with caching
Fetch decisions from a remote source and cache locally. Best for rules that update periodically. Pros: Rules can be updated without app releases, offline fallback. Cons: More complex, requires cache invalidation strategy.Firebase Remote Config
Use Firebase to distribute decision files across your mobile fleet. Setup:- Export decision JSON from BRMS
- Upload to Firebase Remote Config as a string parameter
- Fetch and cache on app startup
- Evaluate locally using the SDK
- Gradual rollouts and A/B testing
- Instant updates without app store review
- Built-in caching and offline support
- Analytics integration
Cloud Storage distribution
Store decisions in cloud storage (S3, GCS, Azure Blob) and sync to devices. Setup:- Configure BRMS to publish to cloud storage
- Mobile app checks for updates on startup or periodically
- Download and cache new versions locally
- Evaluate using cached decisions