Skip to content

Data-only notifications should not show empty notifications - #780

Closed
callaars wants to merge 2 commits into
wix:masterfrom
sunsama:hotfix/fix-android-empty-notification
Closed

Data-only notifications should not show empty notifications#780
callaars wants to merge 2 commits into
wix:masterfrom
sunsama:hotfix/fix-android-empty-notification

Conversation

@callaars

@callaars callaars commented Oct 1, 2021

Copy link
Copy Markdown

As described in this issue #684 notifications are displayed as empty notifications in Android when no title and body is set.

This PR mitigates that by not creating a notification if both are not available.

I couldn't find a CONTRIBUTING file so I'm just pushing this as a PR. Let me know if something is off or needs fixing. I've tested this, obviously, and it works as intended.

@callaars
callaars requested a review from yogevbd as a code owner October 1, 2021 08:28
@callaars callaars changed the title Fix android empty notification Data-only notifications should not show empty notifications Oct 1, 2021
@callaars

callaars commented Oct 1, 2021

Copy link
Copy Markdown
Author

cc @VitalyArt / @yogevbd

@stale

stale Bot commented Nov 15, 2021

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the 🏚 stale label Nov 15, 2021
@callaars

Copy link
Copy Markdown
Author

You are stale.

@stale stale Bot removed the 🏚 stale label Nov 15, 2021
@anatooly

anatooly commented Nov 30, 2021

Copy link
Copy Markdown

At current last version
"react-native-notifications": "^4.1.2",

I don't see push text. Only application title & empty body,
samsung a30, android 11
in iOS all correct

@stale

stale Bot commented Jan 17, 2022

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the 🏚 stale label Jan 17, 2022
@stale

stale Bot commented Jan 24, 2022

Copy link
Copy Markdown

The issue has been closed for inactivity.

@stale stale Bot closed this Jan 24, 2022
@ministerofpanic

Copy link
Copy Markdown
Contributor

This PR is not stale. I'm experiencing the same issue. Please can a contributor help get this work merged.

@callaars

callaars commented Feb 9, 2022

Copy link
Copy Markdown
Author

It's definitely still happening.

@ministerofpanic

Copy link
Copy Markdown
Contributor

@DanielEliraz Can I bring your attention to this fix too please?

@DanielEliraz

Copy link
Copy Markdown
Collaborator

OK, accepting! thanks @callaars!

@DanielEliraz

Copy link
Copy Markdown
Collaborator

@callaars replaced it with a new PR, thanks man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants