Native mobile app (optional, to be evaluated) #33
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jonasled/openpbx#33
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
For the mobile app use FCM to push the call to the client, don't keep a permanent socket open
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.
Android app implemented (
122af72), as requested with FCM and no permanent connection. Tauri 2 with an own Kotlin plugin, seemobile/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:
adb reverse).forgejo/workflows/android.yamlbuilds an APK; set the secrets listed there)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.
dc3b182adds the Google Play upload, following timetracker-next: workflowplay, folderplay/(listing in German and English, pictures, listing check, setup guide, keystore guide) and/privacy.html.Bug fixed on the way: with a
google-services.jsonthe 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
playdeploy 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.First release: tag
v1.0.0(beb079e, app version 1.0.0, version code 137). Theplayworkflow built, signed and uploaded the app bundle with the German and English listing to Google Play: trackinternal, statusdraft("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.