//Native FFOS Push
broadcastRequest = navigator.push.register();
broadcastRequest.onsuccess = function (event) {
broadcastEndpoint = broadcastRequest.result; // only contains the pushURL
}
//Aerogear Push Adapter
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
{ | |
"config" : { | |
"ttl" : 3600, | |
"content-available" : true | |
}, | |
"criteria" : { | |
"alias" : ["user@account.com", "someone@aerogear.org", ....], | |
"categories" : ["someCategory", "otherCategory"], | |
"deviceType" : ["iPad", "AndroidTablet"], | |
"variants" : ["c3f0a94f-48de-4b77-a08e-68114460857e", "444939cd-ae63-4ce1-96a4-de74b77e3737"] |
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
2014/02/14 09:12:33,894 INFO [org.jboss.aerogear.unifiedpush.rest.sender.PushNotificationSenderEndpoint] (http--127.9.230.1-8080-1) Message submitted to PushNetworks for further processing | |
2014/02/14 09:12:33,931 INFO [org.jboss.aerogear.unifiedpush.service.sender.impl.SenderServiceImpl] (EJB default - 7) Processing send request with 'UnifiedPushMessage [criteria=[aliases=null, deviceTypes=null, categories=null, variants=null], simplePush=null, alert=HELLO44444!, sound=null, badge=-1, data={}, time-to-live=-1]' payload |
A simple app that manages players, teams and tournaments:
Team {
name : String
hasMany : Player
hasMany: Tournamenent // many-to-many
}
Player {
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
Mar 6 14:10:05 iPhone CordovaPush[4594] <Warning>: didReceiveNotification | |
Mar 6 14:10:05 iPhone CordovaPush[4594] <Warning>: Notification received | |
Mar 6 14:10:05 iPhone CordovaPush[4594] <Warning>: Msg: {badge:'-1',sound:'default',alert:'youpi',foreground:'1',} |
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
ios | |
Generating config.xml from defaults for platform "ios" | |
Preparing ios project | |
Compiling app on platform "ios" via command "/Users/sebi-mbp/Documents/cordovaPush/platforms/ios/cordova/build" | |
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126 | |
throw e; | |
^ | |
Error: An error occurred while building the ios project.2014-03-06 14:37:45.805 xcodebuild[8464:471f] DeveloperPortal: Using pre-existing current store at URL (file:///Users/sebi-mbp/Library/Developer/Xcode/DeveloperPortal%205.0.2.db). | |
2014-03-06 14:37:46.697 xcodebuild[8473:4a03] DeveloperPortal: Using pre-existing current store at URL (file:///Users/sebi-mbp/Library/Developer/Xcode/DeveloperPortal%205.0.2.db). |
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
(function(global, define) { | |
define(function (require) { | |
var when; | |
when = require('when'); | |
require('aerogear'); | |
var ms = require('mathsync'); | |
function AeroGearCore(client, namespace, config, model, className) { | |
var self = this; |
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
load: function() { | |
var self = this; | |
var contactList = new ContactFindOptions(); | |
contactList.filter="Bobby"; | |
contactList.multiple=true; | |
var fields = ["id","displayName", "phoneNumbers"]; | |
navigator.contacts.find(fields,function(contacts){ | |
self._dataManager.remove(); | |
return self._dataManager.save(contacts); | |
}, |
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
bind: [{ | |
to: { $ref: 'firstCollection' }, | |
bindings: { | |
firstName: '.first-name', | |
lastName: '.last-name' | |
}, | |
{to: { $ref: 'secondCollection' }, | |
bindings: { | |
contractNumber: '.contractNumber', | |
lastName: '.last-name' |
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
@UPS('stock') | |
public double getStockvalue(){ | |
//some logic | |
return stockValue; | |
} |
OlderNewer