Skip to content

Android: Phone Calls- add AndroidFlags FLAG_ONGOING_EVENT #518

@ice-cap0

Description

@ice-cap0

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 secs

Could we also get FLAG_ONGOING_EVENT for AndroidFlags 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 for foregroundServiceType=phoneCall: https://developer.android.com/guide/components/foreground-services , but that doesn't work either
3- Fullscreen notifications have issues I mentioned earlier #501

I tried adding the constant value 2 for FLAG_ONGOING_EVENT in notification flags but it throws an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions