Integrating Apple Push notifications functionality in Scala


Neelkanth Sachdeva

Recently i’ve implemented the Apple push notification functionality in our application. Its just a few lines of code and you’ll find it in action.

Go through this , one of the good blog for getting the Apple’s certificates and other required stuff ready.

(i’m being lazy i know 😉 but the above specified blog is enough i think for getting the certificate & other stuff ready)

Once you’ve private key file & certificate with you , select both of them together and export it as .p12 file. You’ll be prompted for a pass-phrase , enter the pass-phrase and export the file (Remember this pass-phrase)

Now you’ve :

1. .p12 file.
2. Pass-phrase in your mind.

Lets write the code :

A. Add this dependency in your build.sbt ( or in appropriate) file

B. Prepare the APNS service as :

Here APNSCertPath is being referred to the above created…

View original post 81 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s