persistent notification / status tray icon

I’m building a navigation app. I’d like to show (somehow) an icon/notification when the navigation is running - e.g. the same way Waze does. I didn’t see anything in documentation about “persistent notifications”.

Here is related question on SO without an appropriate answer:

Here is the same question on Reddit also no answer:

Here is documentation for notifications “ongoing” flag, that Android supports, which is practically it:

Thanks in advance.

I’ve been pointed towards “foreground service” on Android. Not sure, if there is iOS alternative.

Asked but not answered here: