I'm using the Unity plugin for pushwoosh on Android. How are local notifications implemented? Does it use the native Android alarm system, or does the message go out to the PushWoosh server?

I have another system for local notifications that is a little broken. I'd like to use PushWoosh for it, but not if doesn't do it all locally.

Farrell

asked 21 Jan '14, 00:01
farrelledwards's gravatar image

farrelledwards
2113

Hi,

Please see PushNotificationsAndroid.cs script that comes with Pushwoosh Unity plugin. You can use this method for local notifications:

public void scheduleLocalNotification(string message, int seconds, string userdata)

This method uses native Android local notifications system (so you see the alert even if there is no connection).

However there are some cons to this approach. To change local notifications logic you have to update an application, with push notifications you can separate this logic. Of course it depends what you are using local notifications for :)

permanent link
answered 21 Jan '14, 03:28
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
×111
×9
×6

question asked: 21 Jan '14, 00:01

question was seen: 4,653 times

last updated: 21 Jan '14, 03:28