This change disables view controller capture on iOS unless enableNativeTouchEventCapture is set. This prevents a flood of meaningless RNSScreen pageviews that cause confusion during analysis.
I also updated Heap.setAppId to use the same initialization logic as auto-init.
To do this, Heap sets the new HeapOptions.disableViewControllerAutocapture option to YES on initialize. Each time Heap needs a new pageview (once per session) an empty one is added to the queue.
Test Plan
Changes were tested manually in a demo app and validated with detox.
Checklist
[x] Detox tests pass
[x] If this is a bugfix/feature, the changelog has been updated
This change disables view controller capture on iOS unless
enableNativeTouchEventCapture
is set. This prevents a flood of meaninglessRNSScreen
pageviews that cause confusion during analysis.I also updated
Heap.setAppId
to use the same initialization logic as auto-init.To do this, Heap sets the new
HeapOptions.disableViewControllerAutocapture
option toYES
on initialize. Each time Heap needs a new pageview (once per session) an empty one is added to the queue.Test Plan
Changes were tested manually in a demo app and validated with detox.
Checklist