javapns/src/main/java/javapns/notification/PushNotificationPayload.java
/**
	 * Create a pre-defined payload with a simple alert message.
	 * 
	 * @param message the alert's message
	 * @return a ready-to-send payload
	 */
Create a pre-defined payload with a simple alert message.

@param message the alert's message
@return a ready-to-send payload
Create a pre - defined payload with a simple alert message . @param message the alert ' s message @return a ready - to - send payload
public static Payload alert(String message) {
		PushNotificationPayload payload = complex();
		try {
			payload.addAlert(message);
		} catch (JSONException e) {
		}
		return payload;
	}
public static Payload alert ( String message ) { PushNotificationPayload payload = complex ( ) ; try { payload . addAlert ( message ) ; } catch ( JSONException e ) { } return payload ; }
Create a pre-defined payload with a simple alert message.
Create a pre - defined payload with a simple alert message .