public static PushNotificationPayload alert ( String message ) { if ( message == null ) throw new IllegalArgumentException ( "Alert cannot be null" ) ; PushNotificationPayload payload = complex ( ) ; try { payload . addAlert ( message ) ; } catch ( JSONException e ) { } return payload ; }
Create a pre - defined payload with a simple alert message .