BFUrbanAirship is a Scala library for the Urban Airship iOS Push Notification API.
import com.bubblefoundry.bfurbanairship._
val api = new UrbanAirship(app_token, app_secret, app_master_secret, appengine = false)
// schedule a message to be pushed
val message = SimplePushMessage(aps = Some(APS("A push message")))
api.push(message)
// get a Stream of all registered devices
api.devices
Currently you'll need to checkout the source code and build it using sbt 0.11.2. sbt publish-local
should do the trick.
- Use the latest version of sbt
- Update dependencies
- Clean up the code
- Maybe support the other UA push APIs using a common interface
This code is released under the MIT License.