Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions resources/views/docs/mobile/4/plugins/advanced-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,24 @@ Add application-level `<meta-data>` elements for SDK configuration:
},
{
"name": "com.google.firebase.messaging.default_notification_icon",
"value": "@drawable/ic_notification"
"resource": "@drawable/ic_notification"
}
]
}
}
```

Each entry has:
- **name** — The meta-data key
- **value** — The value (supports `${ENV_VAR}` placeholders)
Each entry has a `name` and either a `value` or a `resource`:

| Key | Description |
|-----|-------------|
| `name` | The meta-data key (required) |
| `value` | A literal value, written as `android:value`. Supports `${ENV_VAR}` placeholders |
| `resource` | A resource reference such as `@drawable/ic_notification` or `@color/brand`, written as `android:resource` |

Use `resource` when the SDK reads the key as a resource ID. Firebase Messaging reads
`default_notification_icon` and `default_notification_color` this way, so with `value` it can't find the icon and
falls back to its default.

## Declarative Assets

Expand Down