A Web Push library for Java 7. Supports payloads and VAPID.
For Gradle, add the following dependency to build.gradle:
compile group: 'nl.martijndwars', name: 'web-push', version: '2.0.0' For Maven, add the following dependency to pom.xml:
<dependency> <groupId>nl.martijndwars</groupId> <artifactId>web-push</artifactId> <version>2.0.0</version> </dependency> See doc/UsageExample.md for detailed usage instructions. If you plan on using VAPID, read doc/VAPID.md.
We use Selenium to interact with a browser.
To give credit where credit is due, the PushService is mostly a Java port of marco-c/web-push. The HttpEce class is mostly a Java port of martinthomson/encrypted-content-encoding.
- For PHP, see Minishlink/web-push
- For nodejs, see marco-c/web-push and GoogleChrome/push-encryption-node
- For python, see mozilla-services/pywebpush