pediatric-ai-scribe-v3/mobile/node_modules/@capacitor/app/dist/esm/web.js
Daniel d3ee6001c1 Add Capacitor native mobile app (PedScribe) for iOS + Android
New mobile/ directory with Capacitor project:
- Configurable server URL launcher (default: app.pedshub.com)
- Android: foreground service + wake lock for background recording
  (AudioRecordingService preserved from existing TWA)
- iOS: background audio mode + microphone permission
- App ID: com.pedshub.scribe
- Both platforms initialized and synced

Existing android/ TWA project untouched — this is a separate project.
Build: cd mobile && npx cap open android (or ios)
2026-04-11 02:18:06 +02:00

35 lines
No EOL
1 KiB
JavaScript

import { WebPlugin } from '@capacitor/core';
export class AppWeb extends WebPlugin {
constructor() {
super();
this.handleVisibilityChange = () => {
const data = {
isActive: document.hidden !== true,
};
this.notifyListeners('appStateChange', data);
if (document.hidden) {
this.notifyListeners('pause', null);
}
else {
this.notifyListeners('resume', null);
}
};
document.addEventListener('visibilitychange', this.handleVisibilityChange, false);
}
exitApp() {
throw this.unimplemented('Not implemented on web.');
}
async getInfo() {
throw this.unimplemented('Not implemented on web.');
}
async getLaunchUrl() {
return { url: '' };
}
async getState() {
return { isActive: document.hidden !== true };
}
async minimizeApp() {
throw this.unimplemented('Not implemented on web.');
}
}
//# sourceMappingURL=web.js.map