-
Notifications
You must be signed in to change notification settings - Fork 237
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
Android: Phone Calls- add AndroidFlags FLAG_ONGOING_EVENT #518
Comments
what error? Just curious - as with the other issues, more than happy to accept any PR that seems reasonable. It's not a use case I personally need (so I'm not motivated to personally author it, being honest) but it is one I would like to support (so I am motivated to collaborate in any way possible...) |
adding this to flags: [2], // only works with Insistent (4) getting
ref: https://developer.android.com/reference/android/app/Notification#FLAG_ONGOING_EVENT |
TBF this is a use case that is supposedly already addressed in the lib with the EDIT: Looks like I misunderstood Sorry for the confusion, closing this while looking for other options |
Did you manage to have an persistent incoming call notification working ? |
Still trying to get some form of incoming call working on Android
Currently using latest addition
loopSound
to get a ringtone to play on incoming call, works fine, except the notification dismisses itself in 3-4 secsCould we also get
FLAG_ONGOING_EVENT
forAndroidFlags
such that the notification remains heads-up until interacted with?1-
ongoing: true
doesn't do anything (reproduced in stock rn app, similar issue here #450),2-
foregroundService
doesn't work either. I read that it now takes 10 seconds to show, but even after 10 seconds, doesn't show. Android docs mention an exception forforegroundServiceType=phoneCall
: https://developer.android.com/guide/components/foreground-services , but that doesn't work either3- Fullscreen notifications have issues I mentioned earlier #501
I tried adding the constant value
2
forFLAG_ONGOING_EVENT
in notification flags but it throws an errorThe text was updated successfully, but these errors were encountered: