I am using java-apns library. Here is my code:
String payload = APNS.newPayload().alertBody("Message").badge(2).build();
apnsService.push(tokens, payload);
Why there is many tokens and only one number for badge? Each phone has its own number of unread notifications! So there should be one number for one device. How do I get to be so?
p.s. sorry for my english.