Add wake lock and device keepalive for reliable mobile calls

Prevents screen sleep during calls and auto-reconnects the Twilio device
after app backgrounding. JS handles Screen Wake Lock API and 30s keepalive
polling; Flutter coordinates via WakelockPlus and synthetic visibilitychange
events on app resume.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-04-27 05:52:39 -07:00
parent fe8ddd51bb
commit 3407f4c705
5 changed files with 197 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
name: twp_softphone
description: TWP Softphone - WebView client for Twilio WordPress Plugin
publish_to: 'none'
version: 2.0.1+7
version: 2.0.2+8
environment:
sdk: ^3.5.0
@@ -16,6 +16,7 @@ dependencies:
webview_flutter: ^4.10.0
webview_flutter_android: ^4.3.0
permission_handler: ^11.3.0
wakelock_plus: ^1.2.8
dev_dependencies:
flutter_test: