I have a problem with sending Apple Push Notifications.

When I send a message to two devices only, everything is working.
But When I send a message to all devices in the Database, then not all Push Message get delivered, but I get no error for any device. Sending was ok!

And one of the devices which gets a message in the first test, didn't get a message, when I post the message to all devices.

The send procedure is working, because I get a message on my phone at the first test and when I send to all devices it works too. Can there be any other problem which cause this problem?? Or is this a Apple bug/problem.

I have no idea what the problem could be.
Does anyone have this problem too??


Question: Counting vowels with consonants
Answer: Maybe you should simply use regex

String phrase = in.nextLine();
int consonants = phrase.replaceAll("a|e|o|u|i", "").length();
int vowels = phrase.replaceAll("[^a|e|o|u|i|y]", "").length();