This repository has been archived by the owner. It is now read-only.
Java client for Apple's Push Notification Service
License
wg/snap
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
snap - Java client for Apple's Push Notification Service Snap is a scalable thread-safe client for Apple's Push Notification Service. Outgoing notifications are queued and sent asynchronously via a persistent connection to the notification gateway. Join the lambdaWorks-OSS Google Group to discuss this project: http://groups.google.com/group/lambdaworks-oss lambdaworks-oss@googlegroups.com Basic Usage PushNotificationClient c = new PushNotificationClient(env, keystore, passwd) PushNotification n = c.create(token).alert("Hello World!") c.send(n) A PushNotificationClient is designed to be long-lived, and if the connection is lost will reconnect until shutdown() is called. Pending notifications will be (re)sent afer successful reconnection. KeyStore PushNotificationClient requires a KeyStore containing the private key and certificate issued by Apple's Provisioning Portal. The simplest method is to generate a PKCS #12 file containing the key & cert, either by exporting via Keychain Access on Mac OS X or using openssl's pkcs12 command. char[] passwd = "foobar".toCharArray(); KeyStore keystore = KeyStore.getInstance("PKCS12"); keystore.load(new FileInputStream("myapp-aps-prod.p12"), passwd); Feedback Service A PushNotificationClient will automatically connect to the APNS Feedback Service at a configurable interval and deliver any feedback notifications to all registered listeners. client.setFeedbackInterval(10, MINUTES) client.addFeedbackListener(new FeedbackListener { ... }) Maven Artifacts Releases of snap are available in the maven central repository: <dependency> <groupId>com.lambdaworks</groupId> <artifactId>snap</artifactId> <version>1.0.0</version> </dependency>
About
Java client for Apple's Push Notification Service
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published