Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/platform-guides/android/custom-targeting.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: /platform-guides/android/custom-targeting
---

:::warning DEPRECATED
**This method of adding new targeting attributes is deprecated. Please use the method described in the [Recorded Targeting Context doc](/advanced/recording-targeting-context#adding-new-fields).**
**This method of adding new targeting attributes is deprecated.** Use the `recordedContext` NimbusBuilder option instead — see the [integration guide](/platform-guides/android/integration#connecting-to-the-recorded-targeting-context) and the [Recorded Targeting Context doc](/advanced/recording-targeting-context#adding-new-fields) for details.
:::

## Adding New Targeting Attributes to Android
Expand Down
9 changes: 9 additions & 0 deletions docs/platform-guides/android/mobile-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ This disqualifies existing enrollments. and breaks any connection with experimen

[nimbus-cli]: https://github.com/mozilla/application-services/tree/main/components/support/nimbus-cli

### Disabling Experiment Fetch

For QA testing, you can disable fetching of experiments from Remote Settings. This is used by the `nimbus-cli` tooling and is not intended for end users.

```kotlin
nimbus.setFetchEnabled(false) // disable fetching
nimbus.isFetchEnabled() // check current state
```

### Preview Collection

To allow testing of experiments before they are published, the client should allow configuring the Nimbus startup to use the `preview-collection`.
Expand Down
2 changes: 1 addition & 1 deletion docs/platform-guides/ios/custom-targeting.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /platform-guides/ios/custom-targeting
## Adding New Targeting Attributes to iOS

:::warning DEPRECATED
**This method of adding new targeting attributes is deprecated. Please use the method described in the [Recorded Targeting Context doc](/advanced/recording-targeting-context#adding-new-fields).**
**This method of adding new targeting attributes is deprecated.** Use the `recordedContext` NimbusBuilder option instead — see the [integration guide](/platform-guides/ios/integration#connecting-to-the-recorded-targeting-context) and the [Recorded Targeting Context doc](/advanced/recording-targeting-context#adding-new-fields) for details.
:::

This page demonstrates how to add new targeting attributes to iOS, enabling experiment creators more specific targeting.
Expand Down
10 changes: 10 additions & 0 deletions docs/platform-guides/ios/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,16 @@ To connect the `NimbusInterface` object to the command line, we need to feed the
.build(appInfo: appInfo)
```

### Reporting malformed feature configuration

If your app detects that a feature configuration from an experiment is invalid or malformed, you can report it as telemetry using `recordMalformedConfiguration`:

```swift
AppConfig.shared.features.newtab.recordMalformedConfiguration(partId: "invalid-card")
```

This sends a `malformedConfiguration` Glean event identifying the feature and the specific part that was invalid.

## A complete `NimbusBuilder` example

```swift
Expand Down