Created
December 14, 2016 12:36
-
-
Save 3Dcube/dd05783aea9fd17066f23371ede48677 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.notnoop.apns.APNS | |
object Main extends App { | |
val inputStream = getClass.getResourceAsStream("/apns-certificate.p12") | |
val service = APNS | |
.newService | |
.withCert(inputStream, "certificate password") | |
.withSandboxDestination | |
.build | |
service.push("device token", "payload") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment