I using an android plugin for Unity3d. It works fine, but i want to recieve push notifications only when the application is closed or not focused. So, how am i do that?

asked 22 Sep '14, 05:53
andreykhorkov's gravatar image

andreykhorkov
214

edited 22 Sep '14, 06:55

As far as I understand all you have to do is ignore push notifications that comes when the app is in foreground. onStart parameter in the push payload should has true/false value set correspondingly.

permanent link
answered 25 Sep '14, 15:51
shader's gravatar image

shader
3.9k7

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
×446
×88
×15

question asked: 22 Sep '14, 05:53

question was seen: 877 times

last updated: 25 Sep '14, 15:51