Skip to content

Conversation

rjmunro
Copy link

@rjmunro rjmunro commented Sep 12, 2013

  • Don't check if we are in the foreground - that happens anyway in the
    PushPlugin.sendExtras() method
  • Only display a message if the message has text to be displayed

Fixes #52 and undoes #3

This might not be a perfect fix, but it seems to work for our application. If anyone has any comments on how to improve before it gets merged, I'd love to improve it.

* Don't check if we are in the foreground - that happens anyway in the
sendExtras() method (https://github.com/phonegap-build/PushPlugin/blob/master/src/android/com/plugin/gcm/PushPlugin.java#L111)
* Only display a message if the message has text to be displayed

Fixes phonegap-build#52 and undoes phonegap-build#3
bobeasterday added a commit that referenced this pull request Sep 26, 2013
Eliminate need for GET_TASKS permission
@bobeasterday bobeasterday merged commit 91863c2 into phonegap-build:master Sep 26, 2013
@bobeasterday
Copy link

Nice!

@scotthooker
Copy link

This is what prevents notifications being received when the app is closed. As we don't have get tasks anymore

@scotthooker scotthooker mentioned this pull request Nov 1, 2013
@rjmunro rjmunro deleted the feature/eliminate-get-tasks branch November 1, 2013 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't ask for GET_TASKS permission
3 participants