Mindbowser / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

Add support for Newsstand #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hallo,

I have a tiny issue for the PushNotificationPayload
i need the ContentAvailable property for newsstand
In the moment it’s not supported.

example:
class PushNotificationPayload

public void addContentAvailable(int contantAvailable) throws JSONException {
        logger.debug("Adding ContentAvailable [" + contantAvailable + "]");
        this.apsDictionary.put("content-available", new Integer(1));
    }

i found something from you there:

http://code.google.com/p/javapns/source/browse/trunk/src/javapns/data/PayLoad.ja
va?r=159

thank you for your great work.

Greetings,
Felix

Original issue reported on code.google.com by honegger...@gmail.com on 14 Oct 2011 at 9:51

GoogleCodeExporter commented 8 years ago
To cleanly add support for Newsstand (and anticipating future enhancements to 
Newsstand itself), I have added a new "NewsstandNotificationPayload" class.  I 
have also added a quick push method to the javapns.Push class:

Push.contentAvailable(keystore, password, production, token);

Changes have been committed to the trunk.  You can access the enhancements by 
downloading the latest build from SVN.

Original comment by sype...@gmail.com on 14 Oct 2011 at 2:58