From 9d80ac55704bcb8c3468937859f1c01f0cec2206 Mon Sep 17 00:00:00 2001 From: Sven Kubiak Date: Mon, 26 Jul 2021 17:07:07 +0200 Subject: [PATCH] Updated reame.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 06220bc..a506e82 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,11 @@ JPushover.openClientAPI().open(secret, deviceId, listener) listener.onMessage(); lsitener.onError(); +//Fetch existing messages via message() +JPushover + .openClientAPI() + .messages(secret, deviceId); + ``` Once new messages are pushed to your device the onMessage method of your message listener is called. If an error occurs, the onError message of your message listener is called.