Attempts at making Cordova + Aerogear UPS  work together