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
var _ = require('underscore')._; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
settings: { | |
appName: 'YourAppName', | |
ppUuid: 'uuid', /* Provisioning profile UUID */ | |
distributionName: 'cert_name', /* Distr. certificate name */ | |
keystoreLocation: '/Users/path/to/android.keystore', /* path to keystore */ | |
storePassword: 'keystore_password', /* keystore password */ |
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
var gcm; | |
var androidSettings = { | |
/* The Sender ID from Google Developers Console, see https://console.developers.google.com/project/XXXXXXXX/apiui/credential */ | |
/* It's the same as your project id */ | |
senderId: Alloy.CFG.gcm_project_id ? Alloy.CFG.gcm_project_id : "<your gcm project id --- xxxxxxxxxxxx>", | |
notificationSettings: { | |
//sound: 'mysound.mp3', /* Place sound file in platform/android/res/raw/mysound.mp3 */ | |
smallIcon: 'trayicon.png', /* Place icon in platform/android/res/drawable/notification_icon.png */ | |
largeIcon: 'appicon.png', /* Same */ |
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
/* | |
OneSignal library and basic example for push notifications using Appcelerator Titanium | |
See https://gist.github.com/boydlee/fc6955cbd4a7ba1d302df2a4bc93bb06 for the ti.onesignal.js module | |
*/ | |
var OneSignal = require('ti.onesignal'); | |
OneSignal.register(function(response){ | |
console.log(response); | |
if(response.success && response.id != "") { | |
//response.id your OneSignal installation id | |
OneSignal.updateTags(response.id, {"fav_color": "yellow", "my_tag": "abc123"}); |
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
http://10.161.17.146/login?auth=eyAidXNlcm5hbWUiOiAiYXN0YXVzIiwgInBhc3N3b3JkIjogIjkxRDUzNDY0LTdBQUItNDEwQS1BMDNELUE5OTVCMDhFOUQyRiJ9 |
OlderNewer