We are using pushwoosh in Cordova testing on Android devices (Nexus 4 v 4.4.2 & Samsung v4.3 ). Our application does a background "synch" with the server only when the notifications are sent. The mobile application determines if the user should be notified or not based on preferences and server results.

So our application would like to be in control if a local notification is posted, however, the local notification is being displayed even if we take out the call for the local notification as provided in the example code.

  document.addEventListener('push-notification', function(event) {

I confirmed the event listener is being called when a message arrives, but the local notification is also posted.

Is there a way to avoid posting this local notification?

asked 29 Jan '14, 00:05
aroller's gravatar image


To further elaborate that a push notification is possible on android without local notification here is an excerpt from GCM docs:


It does not provide any built-in user interface or other handling for message data. GCM simply passes raw message data received straight to the Android application, which has full control of how to handle it. For example, the application might post a notification, display a custom user interface, or silently sync data.

permanent link
answered 30 Jan '14, 00:16
aroller's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 29 Jan '14, 00:05

question was seen: 1,500 times

last updated: 30 Jan '14, 00:16