-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Only Bar Notification Available - Android #13
Comments
2.3.0 is out - should fix this and unify the api |
Thanks for the update Morten. Alerts now work when active on the app for Android phone. However, Badges does not work. When I add a listener to the client, it is never triggered: Also sound and vibrate seems to be enabled by default without having to set those options to true. |
@panthongw @raix just wondering if you got this working. I just enabled GCM, was pretty easy compared with APN (took a few mins, compared with days of APN certificate hell). When I am not in the app and a GCM notification is received, I hear a whistle but don't get any visual
Note if I am in the App, I DO see an alert... it's just that I don't see an alert badge when looking at the app icon on the desktop. Not I am new to Android, so it may be a setup issue. |
try enabling badge in the config.push.json |
Thanks @raix I put into a .Configure call (as I am getting errors with the config file)... I'll post a separate issue on that:
No luck. Still only sound. BTW, I see the following in the console too:
|
Actually I got the config JSON things sorted out.. that was my issue. I am getting notifications on android.. I see the "unread" (badge) in the notifications pull down but I don't see it on the app Icon like a do on iOS (perhaps this is how Android works). I am still egtting the error above... which seems related to me.. I have not looked into the raix:push code yet. |
Ah, I think I found my issue, I was calling Push.Configure in the client and it was throwing a should not be called more than once exception. The reason I was doing this I thought I had to call it in the client once the user is logged in... ie it gets called when the app first fires up before the user logs in (but the userId will be null)... so once the user logged in I called it again. Is this wrong? Perhaps I should move this to another thread? |
Yep you should only use the config - the package should have a computation listening on userid changes and update the appCollection... If not its a bug |
I've tested it again and I am still not getting any bar notification when the app is open nor icon badgee when the app is closed. I do get noise without having to set that option. Would this is be device specific? I am testing on an HTC One running 4.1.2. @adamgins did you have any luck getting it to work? |
There will be no bar notification when the app is open - thats expected behaviour. The badge should update when the app is closed - not sure why its not working - did you set badge:true in the config file? (it have to be boolean true not string "true") |
@raix in my config.push.json file I do set the badge option to a boolean true
This is how I am sending a push message from the console:
Please let me know if something is off. |
I think I have the same issue as well. I do see notifications on the pull down menu (ie if I drag my finger down from top of screen) and the badgecount is correct... it just does not show on the App icon (like iOS) |
Does android support badge/msgCount? Im not sure |
On the app icon that is |
Is this still an issue on the latest? |
No an issue fro me anymore, not sure about @panw |
I currently do not have an Android phone to test, so we could go ahead and close the issue and if I run into this issue in the future I'll submit a new issue. |
Super :) |
Hi @raix thanks for the package, It has been really useful. I am having this exact problem, did anyone find a solution to it yet? All other things are working, sound, vibrate, I am getting the notification if the app is open or closed but no badge |
Hi @raix awesome API, we appreciate� your work. |
@raix Can you help me to work vibration and sound with notification on iOS? |
Yes confirmed this is still happening !! There are no badge on the icon and also if you send multiple push notifications from the server then one notification on the phone is replaced by the next notification on ANDROID |
Same problem here @sahanDissanayake. Android 6 with an Galaxy s7 Edge! |
Sorry for all the posts Morten.
I am trying to enable alerts and badges, so I added the following init code to the client. However, I only get the top bar alert. This might be due to this issue I reported here.
Push.init({ gcm: { "projectNumber": 917501955460 }, alert: true, bagde: true });
Thanks for your help and the package. Happy Holidays.
The text was updated successfully, but these errors were encountered: