jboss-mobile / unified-push-helloworld Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
"Cordova" gives me the following, it should be "cordova" instead.
smikloso@localhost cordova]$ npm install -g Cordova
npm ERR! 404 404 Not Found: Cordova
npm ERR! 404
npm ERR! 404 'Cordova' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.10.0-229.7.2.el7.x86_64
npm ERR! command "/home/smikloso/devel/node/bin/node" "/home/smikloso/devel/node/bin/npm" "install" "-g" "Cordova"
npm ERR! cwd /home/smikloso/dev/AG/unified-push-helloworld/cordova
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/smikloso/dev/AG/unified-push-helloworld/cordova/npm-debug.log
npm ERR! not ok code 0
{ cordova } master » cordova plugin add org.jboss.aerogear.cordova.push
Fetching plugin "org.jboss.aerogear.cordova.push" via npm
WARNING: org.jboss.aerogear.cordova.push has been renamed to aerogear-cordova-push. You may not be getting the latest version! We suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova plugin add aerogear-cordova-push`.
Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins registry
Installing "org.jboss.aerogear.cordova.push" for android
Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git clone
Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out to git ref "master".
Failed to install 'org.jboss.aerogear.cordova.push':Error: Expected plugin to have ID "com.vladstirbu.cordova.promise" but got "es6-promise-plugin".
When I addd this to build.gradle and do sync:
compile 'org.jboss.aerogear:aerogear-android-core:3.0.0-SNAPSHOT'
compile 'org.jboss.aerogear:aerogear-android-pipe:3.0.0-SNAPSHOT'
compile 'org.jboss.aerogear:aerogear-android-push:3.0.0-SNAPSHOT'
I get:
Error:(30, 13) Failed to resolve: org.jboss.aerogear:aerogear-android-push:3.0.0-SNAPSHOT
Error:(28, 13) Failed to resolve: org.jboss.aerogear:aerogear-android-core:3.0.0-SNAPSHOT
Error:(30, 13) Failed to resolve: org.jboss.aerogear:aerogear-android-push:3.0.0-SNAPSHOT
how can set Alias when register the app on aerogear
what was the steps to getDeviceToken()
Hi,
I checkout and run android app from https://github.com/jboss-mobile/unified-push-helloworld/tree/master/android. When I send push and app is in background I get bar notyfication, and that is good :) but when I click on in I get:
02-08 15:01:02.811 9756-9756/org.jboss.aerogear.unifiedpush.helloworld E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jboss.aerogear.unifiedpush.helloworld/org.jboss.aerogear.unifiedpush.helloworld.activities.MessagesActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2355)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$600(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1335)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5520)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.jboss.aerogear.unifiedpush.helloworld.HelloWorldApplication.sendMetric(HelloWorldApplication.java:54)
at org.jboss.aerogear.unifiedpush.helloworld.activities.MessagesActivity.onCreate(MessagesActivity.java:49)
at android.app.Activity.performCreate(Activity.java:5066)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1101)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2311)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$600(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1335)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5520)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
at dalvik.system.NativeStart.main(Native Method)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.