Skip to content

Commit

Permalink
Merge pull request #4 from dlazerka/patch-1
Browse files Browse the repository at this point in the history
README: Add note about setPersistent() extra types
  • Loading branch information
filipproch committed May 1, 2016
2 parents 9fc83ab + abc9515 commit 37c707e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ This API is built for it, but you can use it whatever you want. You just need to
3. the time during which your task is executed is approximate, although the service is trying to execute the task in specified interval, sometimes it's executed after the interval so don't forget it

### Persistent tasks upon reboots
You can make your tasks persistent upon reboots by setting ```setPersisted(true)``` but don't forget to add ```RECEIVE_BOOT_COMPLETED``` permission to your manifest
You can make your tasks persistent upon reboots by setting ```setPersisted(true)``` but don't forget to add ```RECEIVE_BOOT_COMPLETED``` permission to your manifest. Also, only the following extra parameter types are supported: Integer, Long, Double, String, and Boolean.

### What to return from onRunTask? Differences
So first, what can you return there. You have three options: ```GcmNetworkManager.RESULT_FAILURE```, ```GcmNetworkManager.RESULT_SUCCESS``` and ```GcmNetworkManager.RESULT_RESCHEDULE```
Expand Down

0 comments on commit 37c707e

Please sign in to comment.