background tasks working determined by Gmail activity