Opened 5 months ago

Closed 5 months ago

#34268 closed task (implemented)

Creating a service to do the work in the background and implementing a wakelock.

Reported by: HashikD Owned by:
Priority: Medium Milestone:
Component: Circumvention/Snowflake Version:
Severity: Normal Keywords: snowflake-mobile
Cc: cohosh, phw, arlolra, dcf, HashikD Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

For the application to act as a proxy in the background we need to run it as a service. In Android there are two types of services...
Background service: Counter-intuitively this is not what we are going to use since the Android system will kill the service after the user leaves the application.


Foreground service: This service requires us to run a notification constantly. But this service will work even if the user leaves the application.
Problem: Service gets killed if the screen is turned off.
Solution: Implementing Android's Wakelock feature so that the Android system will not kill our service.

Child Tickets

Change History (8)

comment:1 Changed 5 months ago by cohosh

Keywords: snowflake-mobile added

Add snowflake-mobile keyword to Hashik's GSoC 2020 tickets.

comment:2 Changed 5 months ago by HashikD

Keywords: Snowflake_Android added

comment:3 Changed 5 months ago by HashikD

Keywords: Snowflake_Android removed

comment:4 Changed 5 months ago by cohosh

Cc: HashikD added

comment:5 Changed 5 months ago by HashikD

Added Foreground service and wakelock

Commit ID: cda69f3f057a385096928ebe3583faa3a7700bc6

GitHub Mirror

comment:6 Changed 5 months ago by HashikD

Status: newneeds_review

comment:7 Changed 5 months ago by cohosh

Status: needs_reviewmerge_ready

Nice, I'll merge this to master.

comment:8 Changed 5 months ago by cohosh

Resolution: implemented
Status: merge_readyclosed

Done. You probably want to make sure your own master branch is up to date with origin/master now :)

Note: See TracTickets for help on using tickets.