translate icon indicating copy to clipboard operation
translate copied to clipboard

Android App Running on Device

Open ashar02 opened this issue 1 year ago • 5 comments

Current Behavior

When I compile and run the android app on device then tap on audio record button. Following error appears on console: E/Capacitor/Console: File: https://localhost/src_app_pages_translate_translate_module_ts.8d0325fdc8c8b657.js - Line 1 - Msg: error not-allowed

Although I can see in settings that app has audio record permission. Web app on android browser is working perfectly in same case. Any hint regarding this issue?

Expected Behavior

No response

Steps To Reproduce

No response

Example flow

paste your flow here

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

No response

ashar02 avatar May 04 '24 09:05 ashar02

  • did it prompt you for audio permissions, and you allowed them?
  • it might be that in the manifest we don't correctly declare audio permissions

AmitMY avatar May 04 '24 10:05 AmitMY

Yes, app is asking for permission and settings app showing that app has permission too. Device is android 13. If app is asking permission it means manifest has proper declaration. I am further investigating it.

ashar02 avatar May 04 '24 10:05 ashar02

E/Capacitor/Console: File: https://localhost/main.7905458a6f5a6d3b.js - Line 1 - Msg: ERROR Error: not implemented E/Capacitor/Console: File: https://localhost/main.7905458a6f5a6d3b.js - Line 1 - Msg: Service worker registration failed with: TypeError: Failed to register a ServiceWorker for scope ('https://localhost/') with script ('https://localhost/ngsw-worker.js'): An unknown error occurred when fetching the script. E/Capacitor/Console: File: https://localhost/src_app_pages_translate_translate_module_ts.c64fa9e78a070475.js - Line 1 - Msg: error not-allowed E/Capacitor/Console: File: https://localhost/main.7905458a6f5a6d3b.js - Line 1 - Msg: ERROR [object DOMException]

ashar02 avatar May 04 '24 10:05 ashar02

Thanks for investigating, I'm not sure I can assist on this. There should be support for the SpeechRecognition web API.

image

AmitMY avatar May 05 '24 13:05 AmitMY

Thanks for sharing above info.

ashar02 avatar May 06 '24 05:05 ashar02