Updated reame.md

This commit is contained in:
Sven Kubiak 2021-07-26 17:07:07 +02:00
parent def02746e2
commit 9d80ac5570

View File

@ -145,6 +145,11 @@ JPushover.openClientAPI().open(secret, deviceId, listener)
listener.onMessage(); listener.onMessage();
lsitener.onError(); 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. 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.