Native mobile app (optional, to be evaluated) #33

Open
opened 2026-11-27 13:48:09 +00:00 by jonasled · 5 comments
Owner

Marked as "?" in the requirements. Evaluate whether a native mobile app is needed in addition to the web client. If built, it must use the port 443 tunnel and not require SIP exposure. Chat and meet are explicitly not required.

Marked as "?" in the requirements. Evaluate whether a native mobile app is needed in addition to the web client. If built, it must use the port 443 tunnel and not require SIP exposure. Chat and meet are explicitly **not** required.
Author
Owner

For the mobile app use FCM to push the call to the client, don't keep a permanent socket open

For the mobile app use FCM to push the call to the client, don't keep a permanent socket open
Author
Owner

Evaluation, decision open. The web softphone (#23) works in desktop browsers through port 443 and the UI is responsive; it was not tested on a mobile device. What a web page cannot reliably do is ring while it is in the background or the phone is locked. If that is needed, a native app with push notifications (FCM/APNs) and a push gateway in OpenPBX is required. Suggestion: first try the web softphone on the target devices, then decide.

**Evaluation, decision open.** The web softphone (#23) works in desktop browsers through port 443 and the UI is responsive; it was not tested on a mobile device. What a web page cannot reliably do is ring while it is in the background or the phone is locked. If that is needed, a native app with push notifications (FCM/APNs) and a push gateway in OpenPBX is required. Suggestion: first try the web softphone on the target devices, then decide.
Author
Owner

Android app implemented (122af72), as requested with FCM and no permanent connection. Tauri 2 with an own Kotlin plugin, see mobile/README.md.

Native integration: Android Telecom (self-managed calls), system ring screen on the locked phone, call banner on the unlocked phone, decline without opening the app, missed call notification, tel: links.

Tested on an Android 15 emulator against Asterisk (MOBILE=1 test/integration.sh): ring and answer with the app killed and the phone locked, audio both ways through the web port, no SIP registration while idle, hang up, decline, caller giving up, outgoing call, tel: link, sign out.

Left open until verified by you:

  • real FCM delivery with your Firebase project (the test is its own FCM server and injects pushes with adb)
  • a real phone: ringtone, earpiece / speaker / Bluetooth, battery optimisation of the vendor, mobile network, a cellular call interrupting
  • HTTPS with a real certificate (the test used HTTP over adb reverse)
  • signed release build (.forgejo/workflows/android.yaml builds an APK; set the secrets listed there)
  • OpenID Connect login in the app (password / LDAP login only)
  • queues do not ring the app (neither the browser softphone)

iOS is not implemented. UI and protocol are shared; it needs a Swift plugin with PushKit + CallKit, a Mac to build, and in OpenPBX an APNs VoIP sender: FCM cannot deliver VoIP pushes.

**Android app implemented** (122af72), as requested with FCM and no permanent connection. Tauri 2 with an own Kotlin plugin, see `mobile/README.md`. Native integration: Android Telecom (self-managed calls), system ring screen on the locked phone, call banner on the unlocked phone, decline without opening the app, missed call notification, `tel:` links. Tested on an **Android 15 emulator** against Asterisk (`MOBILE=1 test/integration.sh`): ring and answer with the app killed and the phone locked, audio both ways through the web port, no SIP registration while idle, hang up, decline, caller giving up, outgoing call, `tel:` link, sign out. **Left open until verified by you:** - [ ] real FCM delivery with your Firebase project (the test is its own FCM server and injects pushes with adb) - [ ] a real phone: ringtone, earpiece / speaker / Bluetooth, battery optimisation of the vendor, mobile network, a cellular call interrupting - [ ] HTTPS with a real certificate (the test used HTTP over `adb reverse`) - [ ] signed release build (`.forgejo/workflows/android.yaml` builds an APK; set the secrets listed there) - [ ] OpenID Connect login in the app (password / LDAP login only) - [ ] queues do not ring the app (neither the browser softphone) **iOS** is not implemented. UI and protocol are shared; it needs a Swift plugin with PushKit + CallKit, a Mac to build, and in OpenPBX an APNs VoIP sender: FCM cannot deliver VoIP pushes.
Author
Owner

dc3b182 adds the Google Play upload, following timetracker-next: workflow play, folder play/ (listing in German and English, pictures, listing check, setup guide, keystore guide) and /privacy.html.

Bug fixed on the way: with a google-services.json the app did not build (defaultConfig contains custom resource values, but the feature is disabled). So the variant which can receive calls could never be built; earlier builds and CI always ran without that file.

Tested: listing check; a local dry run of the build and signing steps (arm64 only, local NDK 29, throwaway key, dummy Firebase file): signed app bundle with the app icons and Firebase values, target SDK 36.

Not tested: the play deploy job on the CI runner, all three architectures, the upload to Google (needs your account and secrets), and the release build on a device or emulator. The emulator tests used debug builds without Firebase; release builds are minified, so try a call with the internal track before wider release.

To do by you: the steps in play/README.md (developer account, app, Firebase, upload key, service account, 5 secrets), fill in the controller in web/public/privacy.html, and a demo server with a test account for Google's review.

dc3b182 adds the Google Play upload, following timetracker-next: workflow `play`, folder `play/` (listing in German and English, pictures, listing check, [setup guide](play/README.md), [keystore guide](play/KEYSTORE.md)) and `/privacy.html`. **Bug fixed on the way:** with a `google-services.json` the app did not build (`defaultConfig contains custom resource values, but the feature is disabled`). So the variant which can receive calls could never be built; earlier builds and CI always ran without that file. **Tested:** listing check; a local dry run of the build and signing steps (arm64 only, local NDK 29, throwaway key, dummy Firebase file): signed app bundle with the app icons and Firebase values, target SDK 36. **Not tested:** the `play` deploy job on the CI runner, all three architectures, the upload to Google (needs your account and secrets), and the **release build on a device or emulator**. The emulator tests used debug builds without Firebase; release builds are minified, so try a call with the internal track before wider release. **To do by you:** the steps in play/README.md (developer account, app, Firebase, upload key, service account, 5 secrets), **fill in the controller in `web/public/privacy.html`**, and a demo server with a test account for Google's review.
Author
Owner

First release: tag v1.0.0 (beb079e, app version 1.0.0, version code 137). The play workflow built, signed and uploaded the app bundle with the German and English listing to Google Play: track internal, status draft ("Successfully finished the upload to Google Play"). All other workflows of the tag succeeded too.

Nothing reaches testers until the draft is rolled out in the Play Console. The release build has not been run on a device yet.

First release: tag `v1.0.0` (beb079e, app version 1.0.0, version code 137). The `play` workflow built, signed and uploaded the app bundle with the German and English listing to Google Play: track `internal`, status `draft` ("Successfully finished the upload to Google Play"). All other workflows of the tag succeeded too. Nothing reaches testers until the draft is rolled out in the Play Console. The release build has not been run on a device yet.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonasled/openpbx#33
No description provided.