Hello,

I am implementing pushwoosh on my app with the cordova plugin and testing on iOs and everything works fine.

But when I lock my screen with my app still open, I receive the notification and the alert is displayed but if I ignore the notification and unlock the screen normally, I am back on my app but the push-notification event is never triggered.

If i go to the notification center and click on the notification or if I unlock the screen by using "slide to view" on the notification everything works as intended and my app receive the notification.

So is there a way to get the notifications that have been received while the screen was locked without ay action from the user or is it a limitation of iOs and/or the cordova plugin ?

Thank you

asked 30 Mar '16, 11:08
matparisot's gravatar image

matparisot
212

Hello,

"But when I lock my screen with my app still open, I receive the notification and the alert is displayed but if I ignore the notification and unlock the screen normally, I am back on my app but the push-notification event is never triggered.

If i go to the notification center and click on the notification or if I unlock the screen by using "slide to view" on the notification everything works as intended and my app receive the notification."

Actually this is a default Pushwoosh SDK behaviour, if your screen is locked - a notification is shown on the a screen and in a tray; if your app is in foreground and the screen is not locked - there will be only a push callback and an alert.

"So is there a way to get the notifications that have been received while the screen was locked without ay action from the user or is it a limitation of iOs and/or the cordova plugin ?"

This is currently not possible due to iOS limitations.

permanent link
answered 01 Apr '16, 12:57
Max%20Kuzakov's gravatar image

Max Kuzakov
4165

Ok thank you for the answer

(06 Apr '16, 11:07) matparisot matparisot'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

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:

×353
×326
×190

question asked: 30 Mar '16, 11:08

question was seen: 787 times

last updated: 06 Apr '16, 11:07