Category : android

Im trying to load remote scripts / css from my local web server under url of http://127.0.0.1:4002/ But seem to be having error in capacitor android, capacitor ios is working fine. I also manage to load the css from without any error https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap-grid.min.css My guess is not supporting http? Here is my code in loading ..

Read more

I am creating a form with multiple input fields, I am trying to call a function on the press of ‘Enter’ or ‘Tab’ key when an input is in focus. I am using the following code: name_input.addEventListener("keydown", function(e){ alert("Except Tab"); //This runs on press of any key except tab. if((e.key=="Enter")||(e.keyCode==9)){ //This if works fine on ..

Read more

As the title said, how to display photo library permission popup when clicking upload file on mobile browser (Chrome, Safari, etc)? I have disabled storage access permission of Chrome on my android phone. But when I try to upload photo on some online image upload websites, the photo library permission popup doesn’t appear and I ..

Read more

[Tue Apr 20 2021 11:44:30.800] BUNDLE ./index.js error: Error: Unable to resolve module ./contants/icons from screens/index.js: None of these files exist: screens/contants/icons(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) screens/contants/icons/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) at ModuleResolver.resolveDependency (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15) at ResolutionRequest.resolveDependency (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/node-haste/DependencyGraph.js:287:16) at Object.resolve (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/lib/transformHelpers.js:267:42) at /Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:434:31 at Array.map () at resolveDependencies (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:431:18) at /Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33 at Generator.next () at asyncGeneratorStep (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24) Source: Ask Javascript..

Read more