-
Notifications
You must be signed in to change notification settings - Fork 371
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
setPriority option missing #10
Comments
Thanks for the suggestion, we look into adding support for this in the future. |
this is much needed. When do you think you will implement this? |
We are shooting to add this in the next few weeks. |
I created a We still plan to build setPriority in based on GCM priority but since there is now a supported way to customize features I am going to make the this lower priority. |
@jkasten2 I'm trying to setPriority(2) to make the notification displays as a banner, I followed Background Data and Notification Overriding like this
And then updated AndroidManifest.xml (I placed it in the MainActivity):
but I think something is missing, is there any other way to make the notification appears as a banner because currently I just get the icon on the status bar. |
@raysango You need to add |
@jkasten2 thanks, I added |
@raysango Can you confirm that Also note Heads Up notifications were introduced in Android 5.0 Lollipop, the setting is ignored on older Android devices. |
@jkasten2 It's not being called, I can't see the log after adding The test device I'm using is Android 6.01 Marshmallow |
@raysango So it seems like your |
@jkasten2 I'm using REST API to push notifications, but this is happening whether I assigned an android_group or not. |
@raysango Can you confirm the below from my previous response?
Lastly can you make sure your using our latest 3.3.0 SDK? You can print |
@jkasten2 Thanks it is working now. |
@varunnayak @olegwn @raysango Priority is now set to |
Raysango, can you explain to me where to put the class NotificationExtenderPriority file I tried putting it where the MainActivity.java file is located under src/com/ionicframework but when I compile I get the following error. NotificationExtenderBareBonesExample.java:5: error: method does not override or implement a method from a supertype Thanks sorry for being so confuse. |
@floydus Raysango's |
* Playtime trigger was not dynamic * Added Playtime trigger
* Playtime trigger was not dynamic * Added Playtime trigger
setPriority(Notification.PRIORITY_MAX) can be used to show Heads-up Notifications
The text was updated successfully, but these errors were encountered: