This plugin provides a easy to customize and automatic Grails integration with the Urban Airship API
To install de plugin you should add the dependency in your BuildConfig.groovy
plugins {
...
compile ":urban-air-ship:1.0.1"
}
There is a problem with the current version of the Urban Airship API and is necessary to include a custom JAR to work with some of the API's methods.
When this bug with the interactions is solved we will remove this external dependency.
Until this is solved you should include this external repository in your service:
repositories {
....
mavenRepo "http://dl.bintray.com/kaleidos/maven"
}
The plugin provide a new service "urbanAirshipService" that you can use inside your services.
public void sendNotification(String alias, String message, Map customFields, Map additionalParams) {
urbanAirshipService.sendPush(alias, message, customFields, additionalParams)
}
urbanAirship.appKey = _your app key_
urbanAirship.appSecret = _your app secret_
urbanAirship.appMasterSecret = _your app master secret_
- Initial version
- Fix documentation links