Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

1.8 KB
Raw Blame

Linedesk app for iOS and Android

How the web, mobile and desktop apps fit together: docs/apps.md.

A native shell around the web app (Capacitor). The app opens the server's own pages (server.url in capacitor.config.ts, default Linedesk Cloud), so the session, sync and every update come from the server as on the web. The native parts are called by the web app when it runs in here (apps/web/src/native/mobile and sign-in):

  • Sign-in with a provider (Google, Apple, Microsoft, GitHub, single sign-on) runs in the system's sign-in browser (iOS ASWebAuthenticationSession, Android Custom Tabs: LinedeskAuthPlugin) and the session comes back to the app with a one-use code and PKCE on the server's own https address, which only the app receives (apps/api/src/app-sign-in.ts). Google refuses sign-ins inside an app's web view. iOS 17.4 or later.
  • Links to the server's start page (emails) and the sign-in hand-back open the app: universal links and app links, from /.well-known/apple-app-site-association and /.well-known/assetlinks.json (apps/api/src/app-links.ts).
  • Status bar, splash screen, the Android back button, the keyboard.
  • No buying in the app: the web app hides every purchase step inside it (store rules).

Build

pnpm install
cd apps/mobile
LINEDESK_APP_URL=https://your.server pnpm exec cap sync   # default: https://app.linedesk.ai
pnpm exec cap open ios        # Xcode (macOS)
cd android && ./gradlew assembleDebug   # JDK 21 and the Android SDK

Your own server needs its app named in .env (MOBILE_IOS_APP_IDS, MOBILE_ANDROID_APP) for links to open the app, and your own bundle ID, team and keys in the iOS and Android projects. Icons and splash screens come from brand/ (pnpm assets, @capacitor/assets).