iOS & Android: I used to be able to detect a push notification coming in my cordova app while the app was open. The addEventListener('push-notification')... handler would pick it up and I would be able to route the request based on the 'onStart' attribute.

I updated my pushwoosh (and other) plugins recently - Now that same function only picks up the push notification if the app is closed or in the background.

Is there still a way for me to detect the incoming push notification via my javascript in my cordova app?

Thanks

asked 05 Feb, 22:52
javacado's gravatar image

javacado
11

Hello,

Could you please check push-receive event? https://docs.pushwoosh.com/docs/cordova-api-reference#section-push-receive

Regards, Ivan

permanent link
answered 2 days ago
iskoritzky's gravatar image

iskoritzky
4028

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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:

×446
×352
×190
×39

question asked: 05 Feb, 22:52

question was seen: 33 times

last updated: 2 days ago