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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Android): Add action buttons for notifications #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klaakso
Copy link

@klaakso klaakso commented May 18, 2021

Fixes #60

Here goes!

Let me know what you think. It's been a while since I've touched Java but feel free to scrutinize! 馃榿

@Rapsssito
Copy link
Owner

Rapsssito commented May 20, 2021

@klaakso, thanks for the PR, the code looks good, but I will have to take a closer look.

However, you should remove the modifications in the files package.json, yarn.lock and CHANGELOG.md since those files are automatically managed by the GitHub actions bot and might cause problems.

As soon as you change those files, I will test your code manually and approve your PR if everything works as expected.

USAGE.md Outdated Show resolved Hide resolved
@klaakso
Copy link
Author

klaakso commented May 20, 2021

Alright. Removed the generated files and added a null check... 馃榿

Comment on lines +81 to +83
final ReadableArray acts = options.getArray("actions");
Bundle actions = new Bundle();
if(acts != null) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem to work, if I start the background task without an actions key in the options, the whole background task throws an Error.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG  Trying to start background service
LOG  Error [Error: null]

Here is an example of the log

@Jonnyboy85
Copy link

hello, will this feature be released? Thanks

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

Successfully merging this pull request may close these issues.

How to add action button on notification
4 participants