javapns/src/main/java/javapns/notification/PushNotificationManager.java
/**
	 * Send a notification to a multiple devices in a single connection and close the connection.
	 *
	 * @param payload the payload to send
	 * @param devices the device to be notified
	 * @return a list of pushed notifications, each with details on transmission results and error (if any)
	 * @throws UnrecoverableKeyException
	 * @throws KeyManagementException
	 * @throws KeyStoreException
	 * @throws NoSuchAlgorithmException
	 * @throws CertificateException
	 * @throws FileNotFoundException
	 * @throws IOException
	 * @throws Exception
	 */
Send a notification to a multiple devices in a single connection and close the connection.
Send a notification to a multiple devices in a single connection and close the connection .
public List<PushedNotification> sendNotifications(Payload payload, Device... devices) throws UnrecoverableKeyException, KeyManagementException, KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, Exception {
		List<PushedNotification> notifications = new Vector<PushedNotification>();
		for (Device device : devices)
			notifications.add(sendNotification(device, payload, false, SEQUENTIAL_IDENTIFIER));
		stopConnection();
		return notifications;
	}
public List < PushedNotification > sendNotifications ( Payload payload , Device ... devices ) throws UnrecoverableKeyException , KeyManagementException , KeyStoreException , NoSuchAlgorithmException , CertificateException , FileNotFoundException , IOException , Exception { List < PushedNotification > notifications = new Vector < PushedNotification > ( ) ; for ( Device device : devices ) notifications . add ( sendNotification ( device , payload , false , SEQUENTIAL_IDENTIFIER ) ) ; stopConnection ( ) ; return notifications ; }
Send a notification to a multiple devices in a single connection and close the connection.
Send a notification to a multiple devices in a single connection and close the connection .