Titanium module for Airship services. Download the latest release here.
- Android FCM Setup
- iOS APNS Setup
var Airship = require("ti.airship");
Airship.takeOff({
"default": {
"appKey": Your App Key,
"appSecret": Your App Secret
},
});
For iOS, enable background remote notifications in the tiapp.xml
file:
...
<ios>
<plist>
<dict>
...
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
</dict>
</plist>
</ios>
...
For Android, add the google-services.json
to platform/android/google-services.json
.
To access this module from JavaScript, you would do the following:
var Airship = require("ti.airship");