public static void pingAllDevices(String message) throws IOException {
  Sender sender=new Sender(Ids.API_KEY);
  for (  DeviceInfo deviceInfo : endpoint.listDeviceInfo()) {
    doSendViaGcm(message,sender,deviceInfo);
  }
}

public static void pingAllDevices ( String message ) throws IOException { Sender sender = new Sender ( Ids . API_KEY ) ; for ( DeviceInfo deviceInfo : endpoint . listDeviceInfo ( ) ) { doSendViaGcm ( message , sender , deviceInfo ) ; } }
ping all registered devices with the message .
