Hello

I have a project with phonegap for Android and Apple platforms and I installed the plugin Pushwoosh for notifications.

Notifications work well on both platforms, but the problem is android platform, because if I send a notification and application is open, this is closed, and part not received notification

I think, that the settings are correct, in the config.xml file and put cordova.device cordova.dialogs also Pushwoosh plugin. and they call the command in my main index index.html

In the plugins folder I placed the index.js, PushwooshiOS.js and PushwooshAndroid.js.

I think, the error may be in the index.js,

I hope you can help me thanks.

asked 13 Oct '15, 05:23
odzero's gravatar image

odzero
111

If you provide crash logs from the console it might help to get where the problem is.

permanent link
answered 19 Oct '15, 21:31
shader's gravatar image

shader
3.9k7

I have the same problem, using pushwoosh example I get the same problem.

Using phonegap build with latest plugin version and phonegap cli-5.2.0. Android 5.0

Here's the fatal exception error on the log, any light on this will be appreciated...

10-22 00:04:34.111 E/AndroidRuntime(17039): FATAL EXCEPTION: main

10-22 00:04:34.111 E/AndroidRuntime(17039): Process: com.gatoserio.agendacmp, PID: 17039

10-22 00:04:34.111 E/AndroidRuntime(17039): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.gatoserio.agendacmp.action.PUSH_MESSAGE_RECEIVE flg=0x10 (has extras) } in com.pushwoosh.plugin.pushnotifications.PushNotifications$3@2686bef3

10-22 00:04:34.111 E/AndroidRuntime(17039): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:905)

10-22 00:04:34.111 E/AndroidRuntime(17039): at android.os.Handler.handleCallback(Handler.java:810)

10-22 00:04:34.111 E/AndroidRuntime(17039): at android.os.Handler.dispatchMessage(Handler.java:99)

10-22 00:04:34.111 E/AndroidRuntime(17039): at android.os.Looper.loop(Looper.java:189)

10-22 00:04:34.111 E/AndroidRuntime(17039): at android.app.ActivityThread.main(ActivityThread.java:5529)

10-22 00:04:34.111 E/AndroidRuntime(17039): at java.lang.reflect.Method.invoke(Native Method)

10-22 00:04:34.111 E/AndroidRuntime(17039): at java.lang.reflect.Method.invoke(Method.java:372)

10-22 00:04:34.111 E/AndroidRuntime(17039): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)

10-22 00:04:34.111 E/AndroidRuntime(17039): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)

10-22 00:04:34.111 E/AndroidRuntime(17039): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference

10-22 00:04:34.111 E/AndroidRuntime(17039): at com.pushwoosh.BasePushMessageReceiver.handlePush(Unknown Source)

10-22 00:04:34.111 E/AndroidRuntime(17039): at com.pushwoosh.BasePushMessageReceiver.onReceive(Unknown Source)

10-22 00:04:34.111 E/AndroidRuntime(17039): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:895)

10-22 00:04:34.111 E/AndroidRuntime(17039): ... 8 more

permanent link
answered 21 Oct '15, 22:03
Paulo%20Fernandes's gravatar image

Paulo Fernandes
11

edited 21 Oct '15, 23:59

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×445
×165
×11

question asked: 13 Oct '15, 05:23

question was seen: 922 times

last updated: 21 Oct '15, 23:59