mozilla-mobile / telemetry-ios

A generic library for sending telemetry pings from iOS applications to Mozilla's telemetry service.
Mozilla Public License 2.0
28 stars 23 forks source link

Opening Notification Center triggers pings #91

Open st3fan opened 6 years ago

st3fan commented 6 years ago

Both a core and event ping go out when you open/close the notification or control center while having Firefox in the foreground.

This makes sense from a technical perspective, opening the Notification Center or Control Center is the same as backgrounding Firefox. In terms of callbacks that we get.

It is unclear if we need to change this behaviour. But it could definitely result in sessions that are really just temporary 'interruptions'.

Is it possible to see the difference between really backgrounding Firefox and just temporarily opening this OS provided UI? Do we get a reason when we background/foreground?

st3fan commented 6 years ago

Reading a bit more about this, it seems there is a difference between backgrounding and losing focus. Maybe we can see the difference somehow?