You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Journey graph does not reflect navigation pattern of users for single Activity apps which only contain Fragments or ones which heavily rely on Fragments.
Solution
Fragments in journey graph should reflect typical user navigation pattern similar to activities.
Alternatives
If this cannot be constructed automatically based on lifecycle events, we could consider adding manual events (like navigation or screen view events to aid in constructing the graph).
We've been exploring ways to infer the navigation graph using fragment lifecycle events, but the results weren't as reliable as we'd hoped. Instead of shipping something unpredictable, we've decided to take a different approach. We'll automate what we're confident about and give developers more control over the rest of the graph using custom events.
Here's our plan moving forward:
Activity navigation will be shown using lifecycle events, as it is today.
Good news for those using androidx-navigation:fragment or androidx-navigation:compose libraries - we'll auto-instrument these to collect the "screen_view" events. With the ability to turn it off if needed. — Auto instrument androidx-navigation:fragment #1264
We think this approach will give us more accurate results while keeping things flexible for developers.
Problem
Journey graph does not reflect navigation pattern of users for single Activity apps which only contain Fragments or ones which heavily rely on Fragments.
Solution
Fragments in journey graph should reflect typical user navigation pattern similar to activities.
Alternatives
If this cannot be constructed automatically based on lifecycle events, we could consider adding manual events (like navigation or screen view events to aid in constructing the graph).
Tasks
Backend — Add fragments in journey graphs #1231
Android — feat(android): add parent fragment to fragment lifecycle events #1262
Add screen view event #1263
androidx-navigation:fragment
library to send screen view eventsAuto instrument
androidx-navigation:fragment
#1264The text was updated successfully, but these errors were encountered: