Java 增加iphone应用程序上的应用程序徽章编号

Java 增加iphone应用程序上的应用程序徽章编号,java,iphone,push-notification,Java,Iphone,Push Notification,我使用Java pns推送我的应用程序, 我就是这样使用它的: public static PushedNotifications Push(String token,String message,String Sound,int badge) throws CommunicationException, KeystoreException{ String key=PushUtil.class.getResource("cert.p12").getPath();

我使用Java pns推送我的应用程序, 我就是这样使用它的:

    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;         
    }
是否有方法发送通知,通知金额增加徽章而不是
只是设置一下?

我不知道。徽章号码只是一个替代品。如果它是为了反映某种状态,那么应该在服务器中保持该状态,并始终推送绝对值