Disabling push client at the moment would also disable the postal service, which we wouldn't want to do i don't think. At some point those two can (and possibly should) be split, but not for now. In view of that, we could either expose an interface to tell us whether to wake up the phone (to be called when entering and leaving flight mode), or monitor flight mode status from push itself. The latter shouldn't be hard, as long as it's exposed either as a property of network manager, or by the AccountsService dbus thing (we're currently tracking properties from both of those, so adding another property would be fairly straightforward).
Disabling push client at the moment would also disable the postal service, which we wouldn't want to do i don't think. At some point those two can (and possibly should) be split, but not for now. In view of that, we could either expose an interface to tell us whether to wake up the phone (to be called when entering and leaving flight mode), or monitor flight mode status from push itself. The latter shouldn't be hard, as long as it's exposed either as a property of network manager, or by the AccountsService dbus thing (we're currently tracking properties from both of those, so adding another property would be fairly straightforward).