Skip to content

Commit 6dd7db8

Browse files
author
Christophe Maillard
committed
Updating README
1 parent c796be6 commit 6dd7db8

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WebPush
22

3-
A Web Push library for Java 7. Supports payloads and VAPID.
3+
A Web Push library for Java 8. Supports payloads and VAPID.
44

55
[![Build Status](https://travis-ci.org/web-push-libs/webpush-java.svg?branch=master)](https://travis-ci.org/web-push-libs/webpush-java)
66
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/nl.martijndwars/web-push/badge.svg)](https://search.maven.org/search?q=g:nl.martijndwars%20AND%20a:web-push)
@@ -19,7 +19,7 @@ For Maven, add the following dependency to `pom.xml`:
1919
<dependency>
2020
    <groupId>nl.martijndwars</groupId>
2121
    <artifactId>web-push</artifactId>
22-
    <version>5.1.1-SNAPSHOT</version>
22+
    <version>${web-push.version}</version>
2323
</dependency>
2424
```
2525

@@ -94,7 +94,7 @@ First, make sure you add the BouncyCastle security provider:
9494
Security.addProvider(new BouncyCastleProvider());
9595
```
9696

97-
Then, create an instance of the push service:
97+
Then, create an instance of the push service, either `nl.martijndwars.webpush.PushService` for synchronous blocking HTTP calls, or `nl.martijndwars.webpush.PushAsyncService` for asynchronous non-blocking HTTP calls:
9898

9999
```java
100100
PushService pushService = new PushService(...);
@@ -112,12 +112,6 @@ To send a push notification:
112112
pushService.send(notification);
113113
```
114114

115-
Use `sendAsync` instead of `send` to get a `Future<HttpResponse>`:
116-
117-
```java
118-
pushService.sendAsync(notification);
119-
```
120-
121115
See [wiki/Usage-Example](https://github.com/web-push-libs/webpush-java/wiki/Usage-Example)
122116
for detailed usage instructions. If you plan on using VAPID, read [wiki/VAPID](https://github.com/web-push-libs/webpush-java/wiki/VAPID).
123117

0 commit comments

Comments
 (0)