-
Notifications
You must be signed in to change notification settings - Fork 233
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
Setting exported to false in Notifee Core #1110
Comments
https://developer.android.com/guide/topics/manifest/receiver-element#exported I believe - though please test it - that if you set it to not exported / exported == false, the app will still receive system broadcasts. I believe the restriction is just that inter-app communication with the receiver is blocked. The point of the receiver is to receive notifications from the network, processed by the system and system-delivered to the app, so I think setting it to false will work fine. If you test that and things work well for you, then this is something we may be able to change here so it is false to start. I think our intended use cases are supported well enough with it false assuming it works when you test it |
Okay. I'll test and get back in a day or two |
@shubham-imoney how did the testing go? I think you are correct and this can likely be exported=false but I would love confirmation from testing besides myself if you have it also |
@mikehardy Apologies for not replying. Based on the preliminary testing by setting exported to false, the functions that I had mentioned were working fine. But I did not do in depth testing of the other notifee functionality. You could let me know if there are any other Notifee functions you would want me to re-check? |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
closer to being able to test the related PR #1132 after invertase/react-native-firebase#8143 |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
An audit of our application which uses the Notifee library showed that
app.notifee.core.NotificationRecieverActivity
hasexported
set to true with no permission inAndroidManifest.xml
. If i override this activity in my appAndroidManifest.xml
and set it'sexported
to false, would this create any issues given that I use thenotifee.displayNotification
,notifee.onForegroundEvent
andnotifee.onBackgroundEvent
functions.I'm not too familiar with Android development so any input would be appreciated.
The text was updated successfully, but these errors were encountered: