Dima
Dima

Reputation: 8652

increasing app badge number on iphone app

i use Java pns for the push on my app, this is how i use it:

    public static PushedNotifications Push(String token,String message,String Sound,int badge) throws CommunicationException, KeystoreException{    
         String key=PushUtil.class.getResource("cert.p12").getPath();
         PushedNotifications pn= Push.combined(message, badge, Sound, key, "Pass", true, token);
         System.out.println("pn: "+pn);
         return pn;         
    }

is there a way to send a notification with the amount to increase the badge instead of just setting it?

Upvotes: 0

Views: 124

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1501926

Not that I'm aware of. The badge number is just a replacement. If it's meant to reflect some sort of state, you should maintain that state in your server, and always push the absolute value.

Upvotes: 2

Related Questions