Skip to main content

Overview

Firebase Remote Config lets you update campaigns without deploying app updates. This recipe shows how to fetch campaigns from Remote Config and feed them to Presentum.
This example is based on a real production implementation. See the full source code.

Setup

1. Add dependencies

2. Initialize Firebase

Campaign provider

Create a provider that fetches and syncs campaigns:
Full production implementation ->

Remote Config JSON structure

Structure your campaigns in Firebase Remote Config:

Payload deserialization

Implement fromJson for your payload:
See production payload implementation ->

Initialize in app

See proper presentum initialization ->

Testing Remote Config locally

Use Remote Config defaults for local testing:

Next steps

Eligibility system

Advanced targeting rules

Storage guide

Implement storage layer

Guards guide

Build scheduling guards

Production code

See complete implementation