Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - show notifications in system tray #279

Closed
pliablepixels opened this issue Jul 4, 2016 · 8 comments
Closed

Android - show notifications in system tray #279

pliablepixels opened this issue Jul 4, 2016 · 8 comments

Comments

@pliablepixels
Copy link
Member

reported by @btilson in #278 - split into its own issue

@pliablepixels
Copy link
Member Author

@btilson, are you sure you are not missing the icon ?
foo

@btilson
Copy link

btilson commented Jul 6, 2016

Yeah, I don't get the zm notification icon in the Android system tray at all as shown in your screenshot. Only the notification sound from the app and then have to go in to ZmNinja to see the bell icon.

@pliablepixels
Copy link
Member Author

Given I can't replicate this, I need your logs.

  1. Please delete your copy on zmNinja and install a Debug build -> https://drive.google.com/file/d/0B3iQz0D8vxltLUpjOV85OWZMQzA/view?usp=sharing

  2. Connect your phone via USB cable to your computer and enable USB debugging

  3. I will need ADB logcat logs from the time you start the app to the time you get a push notification - which you can run using

adb logcat | grep PushPlugin

If you are not familiar with ADB and how to set it up:

http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/

@pliablepixels
Copy link
Member Author

pliablepixels commented Aug 8, 2016

I ran push on a 6.0 Marshmallow device today. I got the logo on notification. What I realized is after setting up the push, I had to exit the app and restart the app (kill it or exit it) - from then on it worked fine (this is likely an app bug on my side)

screen shot 2016-08-07 at 8 12 27 pm

My adb logs:

adb logcat | grep PushPlugin
08-07 20:11:57.938  3397  3439 V PushPlugin: execute: action=init
08-07 20:11:57.939  3397  3542 V PushPlugin: execute: data=[{"android":{"senderID":"xxxxxxx","icon":"ic_stat_notification","sound":"true"}}]
08-07 20:11:57.939  3397  3542 V PushPlugin: execute: jo={"senderID":"xxxxxxx","icon":"ic_stat_notification","sound":"true"}
08-07 20:11:57.939  3397  3542 V PushPlugin: execute: senderID=xxxx
08-07 20:11:58.538  3397  3542 V PushPlugin: onRegistered: {"registrationId":"fQHZcXXXXX:APA91bEiXXXXXXXXXXXXXXXXXXXXXXXXX"}
08-07 20:11:58.538  3397  3542 D PushPlugin: no iconColor option
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: onMessage - from: xxxxx
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: normalize extras
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: key = soundname
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: replace key soundname with sound
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: key = mid
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: replace key mid with mid
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: key = message
08-07 20:12:21.500  3397  3570 D PushPlugin_GCMIntentService: replace key message with message
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: key = collapse_key
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: replace key collapse_key with collapse_key
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: background
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: message =[Alarms: Basement (9012) ]
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: title =[null]
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: contentAvailable =[null]
08-07 20:12:21.501  3397  3570 D PushPlugin_GCMIntentService: create notification
08-07 20:12:21.501  3397  3570 E PushPlugin_GCMIntentService: Number format exception - Error parsing notId: Invalid int: "null"
08-07 20:12:21.512  3397  3570 D PushPlugin_GCMIntentService: stored icon=ic_stat_notification
08-07 20:12:21.513  3397  3570 D PushPlugin_GCMIntentService: stored iconColor=null
08-07 20:12:21.513  3397  3570 D PushPlugin_GCMIntentService: stored sound=true
08-07 20:12:21.513  3397  3570 D PushPlugin_GCMIntentService: stored vibrate=true
08-07 20:12:21.513  3397  3570 D PushPlugin_GCMIntentService: using icon from plugin options
08-07 20:12:21.518  3397  3570 D PushPlugin_GCMIntentService: android.resource://com.pliablepixels.zmninja_pro/raw/blop
08-07 20:12:21.519  3397  3570 D PushPlugin_GCMIntentService: create actions

@pliablepixels
Copy link
Member Author

Is this still a problem with 1.2.19?

@btilson
Copy link

btilson commented Sep 7, 2016

Hi,

Sorry for not replyinh ages ago, been very busy. Yes this is still a
problem. No notification icon appears from push notifications. Only get
them if I happen to have the app open at the time a notification arrives.

Thanks

On Thu, Sep 8, 2016 at 8:01 AM, Pliable Pixels [email protected]
wrote:

Is this still a problem with 1.2.19?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pliablepixels/zmNinja/issues/279#issuecomment-245433358,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAyVkXsGfc-wY7P-WmUK0bHhEt9krwP0ks5qnzQegaJpZM4JEawk
.

@pliablepixels
Copy link
Member Author

okay thanks. To be able to solve it, I do need adb logcat logs like I noted above, whenever you get time.

@pliablepixels
Copy link
Member Author

closing - please reopen when you are able to provide logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants