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

Buttons not showing in custom notification #28

Closed
Shailevy opened this issue Sep 3, 2015 · 4 comments
Closed

Buttons not showing in custom notification #28

Shailevy opened this issue Sep 3, 2015 · 4 comments
Labels

Comments

@Shailevy
Copy link

Shailevy commented Sep 3, 2015

This works fine and show the buttons:
PugNotification.with(this)
.load()
.title(...)
.message(...)
.smallIcon(...)
.largeIcon(..)
.button(...),
.button(...)
.simple()
.build();

This doesn't:
PugNotification.with(this)
.load()
.title(...)
.message(...)
.smallIcon(...)
.largeIcon(..)
.button(...),
.button(...)
.custom()
.build();

@halysongoncalves
Copy link
Owner

Hi @Shailevy,

The custom notification has no option to add buttons. Only it can add a background image!
If you have any ideas and want to submit a pull request, be my guest!

@Shailevy
Copy link
Author

Shailevy commented Sep 7, 2015

NotificationCompat.Builder supports that so I guess I will use it until the library get more mature :)

@halysongoncalves
Copy link
Owner

Hi @Shailevy
I'm finishing to implement, and rising to the central maven this new feature!

@Shailevy
Copy link
Author

  1. This still isn't working for me
  2. There is a problem in the documentation ( http://www.halysongoncalves.com/Pugnotification/ ) in custom section you call "background" before you call the setImageLoader() which leads to an exception

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

No branches or pull requests

2 participants