uniqush-push 1.5.2
4. Enable API and get an api key:
5. Now i run this command and put api-key and project number:
curl http://127.0.0.1:9898/addpsp -d service=myservice -d pushservicetype=gcm -d projectid=mypush-1215 -d apikey=AIzaSyD9Jt0K7ksG3FV4fCyYnQSyzDT7KMN2LaA
02-29 12:35:52.589 6863-6863/com.monnand.uniqush.demo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.monnand.uniqush.demo, PID: 6863 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.monnand.uniqush.demo/com.monnand.uniqush.demo.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:331) at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) at com.monnand.uniqush.demo.MainActivity.onCreate(MainActivity.java:16) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
# curl http://127.0.0.1:9898/push -d service=myservice -d subscriber=uniqush.client -d msg="Hello World"[Push][Info] 2016/02/29 16:07:17 RequestId=56d43b7d--xRrhoPqs4-6BaNCIErXlQ== From=127.0.0.1:54902 Service=myservice NrSubscribers=1 Subscribers="[uniqush.client]"[Push][Error] 2016/02/29 16:07:18 RequestID=56d43b7d--xRrhoPqs4-6BaNCIErXlQ== Service=myservice Subscriber=uniqush.client PushServiceProvider=gcm:26e1ede09784f3e529bf9f12adfda75538059727 DeliveryPoint=gcm:58888d7d95baccad6d69026f04109e15816e531c Failed: GCMError: InvalidRegistration--
You received this message because you are subscribed to the Google Groups "uniqush" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uniqush+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.