Aespa icon indicating copy to clipboard operation
Aespa copied to clipboard

Prevent publishers from firing on startup

Open derwaldgeist opened this issue 1 year ago • 1 comments

On every app start, the session sends events to the photoPublisher and the videoPublisher. I assume this is to restore the display of any previously shot photos or videos. However, in my app, this would trigger an upload to the server.

Is there a way to prevent these initial event sends - or at least detect if these photos and videos are published in response to a current user interaction (i.e. the user shoots a photo or records a video)?

derwaldgeist avatar Jul 05 '24 19:07 derwaldgeist

I also noted that the publishers (e.g. the photoPublisher) are called multiple times on startup, even though I create the session only once. What might be the reason for his?

derwaldgeist avatar Jul 05 '24 20:07 derwaldgeist