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

Add a notification icon of type byte[] for flutter #19

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

fingerart
Copy link
Contributor

No description provided.

@HBiSoft
Copy link
Owner

HBiSoft commented Jul 9, 2020

Can you please make the necessary changes in the demo application, here -

hbRecorder.setNotificationSmallIcon(R.drawable.icon);

Like this:

Bitmap icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
icon.compress(Bitmap.CompressFormat.PNG, 100, stream);
hbRecorder.setNotificationSmallIcon(icon);

Then I can merge this.
Thank you.

@fingerart
Copy link
Contributor Author

I have modified it and hope to publish it to maven repository as soon as possible.

@HBiSoft HBiSoft merged commit 976bd7d into HBiSoft:master Jul 9, 2020
@HBiSoft
Copy link
Owner

HBiSoft commented Jul 9, 2020

Merged and is now available using version 0.1.9

Thank you.

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.

2 participants