Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: explain android captureScreenViews fallback #9113

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ PostHog autocapture automatically tracks the following events for you:

With [`captureScreenViews = true`](/docs/libraries/android#all-configuration-options), PostHog will try to record all screen changes automatically.

The `screenTitle` will be the [<activity>](https://developer.android.com/guide/topics/manifest/activity-element)'s `android:label`, if not set it'll fallback to the [<application>](https://developer.android.com/guide/topics/manifest/application-element)'s `android:label` or the [<activity>](https://developer.android.com/guide/topics/manifest/activity-element)'s `android:name`.
ivanagas marked this conversation as resolved.
Show resolved Hide resolved

```xml
<activity
android:name="com.example.app.ChildActivity"
android:label="@string/title_child_activity"
...
</activity>
```

If you want to manually send a new screen capture event, use the `screen` function.

This function requires a `screenTitle`. You may also pass in an optional `properties` object.
Expand Down
Loading