29,049
社区成员




/**
* Retrieves a list of inactive devices from the Feedback service.
* @param args
*/
private static void feedbackTest(String[] args) {
String keystore = args[0];
String password = args[1];
boolean production = args.length >= 3 ? args[2].equalsIgnoreCase("production") : false;
try {
List<Device> devices = Push.feedback(keystore, password, production);
for (Device device : devices) {
System.out.println("Inactive device: " + device.getToken());
}
} catch (CommunicationException e) {
e.printStackTrace();
} catch (KeystoreException e) {
e.printStackTrace();
}
}