Questions tagged [capacitor]
Capacitor is a cross-platform app runtime that allows developers to build web apps that run natively on iOS, Android, Electron and the web.
2,218
questions
0
votes
0
answers
21
views
Capacitor SQLite Error: Query: Must provide a SQL statement
I am building an ionic app that will insert and retrieve records from a SQLite (Capacitor) DB. The insert statement works while the SELECT statement throws error:
fetching data: Error: Query: Must ...
0
votes
0
answers
12
views
Implementing Service worker in ionic (capacitor) + vue app
Is it possible to implement service worker for hybrid app (ionic + vue + capacitor). I am getting registration failed error. Thank you!
-1
votes
0
answers
22
views
Launchscreen not visible with a capacitor app
I have generated an xcode project with capacitor.js 5.5.1
In my xcode project I have a a working storyboard (auto generated) I have check "Use as launchscreen" plus "is initial view ...
-2
votes
0
answers
16
views
Cannot fetch on physical iPhone
I am having trouble with fetch on iOS physical device only. I am NOT using Capacitor HTTP. The fetch works fine on iOS Simulator, Android Emulator, Android Physical Device, but not on a iPhone ...
0
votes
0
answers
10
views
How to Handle 'Referer' Header for TinyMCE in Capacitor/Cordova WebView?
I am developing a mobile application using Capacitor (or Cordova) with a frontend built using create-react-app. The app integrates TinyMCE (version 6.3.1) from Tiny Cloud for rich text editing. I'm ...
0
votes
1
answer
17
views
How to Configure Local TinyMCE in create-react-app?
I am working on a React project using create-react-app which will be deployed as an iOS app using Capacitor.js (similar requirements apply to Cordova environments). I have encountered difficulties in ...
-2
votes
0
answers
14
views
How to update an android app programmaticaly?
I am working on an android app written with Ionic/Capcitor.
We are looking for a way to detect a new version available on the device to update it.
For instance, having a my-app-v2.0.1.apk in the ...
-1
votes
0
answers
11
views
Detect new file/files in device's folder Ionic Capacitor
I'm developing an app using Capacitor, and I need to detect new files in a device's folder. Specifically, when a new file is detected, I want to trigger a certain action in my app.
I've searched ...
-1
votes
0
answers
6
views
CapacitorJS app sometimes slow to load after foregrounding
I have a React / capacitor application which uses the @capacitor/splash-screen plugin to manually hide the splash screen once the initial data has been loaded.
Occasionally (seems to happen more after ...
-1
votes
0
answers
18
views
Capacitor browser send callback data to Ionic application
I'm implementing an authorization page with a webview in Ionic app that load my website auth page then I want to send some data back to Ionic app with Capacitor browser but I couldn't find any ...
-2
votes
0
answers
32
views
is possible to bypass Google/Apple app store subscription fee using an inapp browser signup process? [closed]
Right now in our project we are integrating a subscription feature, the stack of the project is an Angular app with capacitor so we got both a web app and a mobile app, but in both App store and play ...
0
votes
0
answers
29
views
Implementation of a Capacitor Plugin for Webgazer.js
I am currently working on a project working with Webgazer.js.
With the help of Ionic, Capacitor and Firebase I got it to work on my laptop as a website and on my Android Smartphone as a Website and as ...
0
votes
0
answers
27
views
android:overScrollMode="never" does not work in the quasar capacitor project
I want to disable the screen stretching effect when I try to scroll at the top of the screen.
Added to the file src-capacitor\android\app\src\main\res\layout\activity_main.xml
<ScrollView
android:...
0
votes
0
answers
31
views
Namespace not specified. Specify a namespace in the module's build file. | Ionic React Capacitor
I am getting this error while build android project and gradle sync in android studio. I tried to downgrade gradle version to 7.4.0 but still not working
Package file
here error text
error text file
...
0
votes
0
answers
25
views
How to solve Capacitor iOS app error with connection to server
I faced this problem
enter image description here
starting capacitor project with configuration file looks like this
enter image description here
I think the problem is that iOS app doesn't allow us ...
0
votes
0
answers
43
views
Capacitor FileSystem Android 13 storage permission for writeFile in Directory.Documents
While using writeFile() in Capacitor/FileSystem in Android 13 error shows denied permission
These are the permissions I use:
Below is the code i use:
let permission = await Filesystem....
0
votes
0
answers
16
views
Ionic / Capacitor - Is it possible to update the info on the /android directory? ( build.gradle and such)
I am currently building an app that, due to client decisions, needs to be build in "two modes" (average users and professionals, for example) and both versions of the app need to be located ...
-2
votes
1
answer
22
views
Build a QR Scanner for Ionic React Capacitor app
I want to build a QR Scanner for my project using Ionic React ver 7. But I cannot find the library that suits my needs. Also, I'm pretty confused by this Capacitor. Have anyone tried to build this? I ...
0
votes
0
answers
9
views
unable to implement deeplink in the ionic capacitor application
I am working on a project and it’s related to ionic capacitor application, I am trying to implement deeplink in my project(open my app when the link is clicked on a website)
I have installed the ...
0
votes
1
answer
50
views
Bluetooth (BLE) device not appears in Ionic Capacitor App
I have an Ionic Capacitor application with the @capacitor-community/bluetooth-le plugin. The operating system detects the beacon, but my app does not. The issue only occurs on devices with Android 13.
...
0
votes
0
answers
24
views
NextAuth.js and Capacitor – Session Token Cookie not deleting on signOut
I am using NextAuth.js in my Next.js app to authenticate users via Google Provider and magic link. This works perfectly in a browser but not so well in a native wrapper using Capacitor JS - https://...
0
votes
1
answer
29
views
tharmal printer print using @capacitor-community/bluetooth-le in ionic capacitor android SDK 33
tharmal printer print using @capacitor-community/bluetooth-le
using this plugin how to connect tharmal printer in ionic capacito for android adk 33
I try tharmal printer print using capacitor ...
0
votes
0
answers
30
views
PDF not getting downloaded in Devices - Ionic
I'm using angular Ionic & Capacitor 5. I can download the PDF in the browser view but In mobile devices nothing happens.
I've added the necceccary permission in the AndroidMainFest.xml
<uses-...
0
votes
1
answer
66
views
How can I read a trained Tensorflow model file (.json) into Android app built with Capacitor (Vanilla JavaScript)?
EDITED
I've built a cross-platform app with Capacitor, written in Vanilla JS. It uses the following code to load a trained Tensorflow model, a simple classifier NN built in Python.
import * as tf from ...
0
votes
0
answers
14
views
Capacitor Plugin not finding Modules when used in projects
I have a Capacitor Plugin and an Ionic Angular Project. This plugin uses the Amplify SDK and the Firebase SDK. When working in Xcode, working inside the plugin, all of the modules are found and work ...
0
votes
0
answers
7
views
i am inserting the data but when get the data always give me null @capacitor-community/sqlite
public async insertData(data: any) {
const insertDataQuery = INSERT INTO farm_add ( officer_name, resolved_by, resolved_date, resolved_details, resolved_yn, visit_date, visit_purpose, visit_type ) ...
-1
votes
0
answers
35
views
Capacitor iOS / Cookie Authentication with axios / Set-Cookie
I'm building a hybrid iOS app using capacitor/ ionic/ axios.
The documentation is unclear and answers to this topic are mostly outdated.
Is it possible to have reliable cookie based authentication ...
0
votes
0
answers
18
views
How can I route myApp İnside of App even if my <a> tag has target:"_blank" in Capacitor
How can I route myApp İnside of App even if my tag has target:"_blank" in Capacitor Angular
ı try so many ways bu ı cant sucseed
I try that think with deep linking but thats not what ı ...
-1
votes
0
answers
70
views
Correct config for setting up hot reload with Nuxt3 and Capacitor?
I've been following this guide to setting up connectivity between my Android emulator (from Android Studio) and my locally hosted Nuxt3 app. I'm doing this so that I can hot reload changes to the app (...
0
votes
0
answers
20
views
Getting device token for AWS SNS push notification using Firebase Cloud Messaging (FCM) for angular capacitor project
I want to use AWS SNS for push notification using Firebase Cloud Messaging (FCM) from a Angular Capacitor and Node+Express tech stack project. Can someone help in what all things are required and ...
-3
votes
0
answers
56
views
EACCES (Permission denied) even though I asked and accepted the specific permissions
File does not exist java.io.FileNotFoundException: /storage/emulated/0/Documents/boell.json: open failed: EACCES (Permission denied)
I get this error even though I have asked for the respective ...
0
votes
0
answers
27
views
Ionic capacitor/firebase app, fcm message received on emulator but not on a real device
Check this screenshot.
I have literally checked everything I can think of:
Via built apk on the real devices (yes, in plural) and on emulator: message received on emulators but not on devices
Or via ...
0
votes
0
answers
21
views
How to add Push Notification in Vue(non ionic) + Capacitor?
I couldn't find any detail documentation on this, I need to receive notification from firebase to my vue mobile app (android). Also I need docs on how to send push from backend like php or nodejs.
I ...
0
votes
0
answers
8
views
white screen after installed capacitor ionic apk in android
I followed below steps to generate apk
npx cap add android
ionic capacitor build android --prod
npx cap sync
npx cap open android
in android studio I build apk but after install this,
It showing white ...
0
votes
0
answers
31
views
Is it possible to use Capacitor plugins inside a macOS app built with Tauri?
I was recently introduced to Tauri and was trying to build a macOS distribution of my iOS app using Tauri. The iOS app is built using Angular v15, Ionic and Capacitor and it consumes several custom ...
0
votes
0
answers
47
views
android release package has error 'packageInfo is null'
I create android project with capacitor 5.
I build debug package with ./gradlew assembleDebug, the app-debug.apk is work.
But when I build release package with ./gradlew assembleRelease, the apk-...
-1
votes
0
answers
16
views
Ionic Capacitor Status Bar Ios Overflow app
I am having trouble with the IOS status bar. I would like to have a background color on the status bar, like a black background and white text.
This is how it seems with BrowserStack with iPhone 12 ...
0
votes
0
answers
32
views
So I get the Error: NG0302 when I execute npm run test, but I don´t use custom pipes
So to put some context first my project is an Android app developed using Ionic 7, Angular and Capacitor.
I'm doing the unit tests by "npm run test" and at the moment just making sure there ...
-1
votes
0
answers
14
views
Conflict onesignal-cordova-plugin with @capacitor/push-notifications
I have two push notificaiton libaray working same time in one app (I can't use only one cuz one of this providers used by third party lib ) onesignal-cordova-plugin and @capacitor/push-notifications
...
-1
votes
0
answers
19
views
IFrame not rendering on some iOS devices
I have a strange problem with using an iframe in my app. Some iOS users report that it renders blank while other confirm that it works just fine. I haven’t been able to reproduce the problem in the ...
-1
votes
0
answers
39
views
Duplicate class Ionic capacitor plugin issue
I am using "@awesome-cordova-plugins/app-rate": "^6.2.0" and
"@capawesome/capacitor-app-update": "^5.0.1" both to implement app-review and app-update ...
0
votes
1
answer
36
views
Capacitor iOS how to get return value from native code to JS
I am working on passkey authentication and trying to get a return values from my ViewController native code to my JS code using Capacitor. How can I get the value from ViewController and return it to ...
0
votes
0
answers
52
views
NextJS static export dynamic paths with app?
I have a page set up in the directory src/app/c/patient/[id]/page.tsx
It works perfectly fine when deployed but I wanted to also export it to a js bundle to use with the Capacitor Android/iOS app. I ...
0
votes
1
answer
27
views
ion-loading cant be manually dismissed using the backdrop on iOS
Im using Ionic v7 together with Angular and im not able to use the backdropDismiss property provided by the LoadingController. I have tested the behavior on the browser, Android and iOS and the ...
0
votes
0
answers
38
views
How to check which of my Contacts has Whatsapp in Capacitor app
I am Currently working on a Capacitor app. I want to get the Information, which of my Contacts are using whatsapp. I can see that my Nativ Contact app of my phone shows me that information, that a ...
-1
votes
0
answers
20
views
Error to run and debug Capacitor in Ionic on Android Emulator
build && npx cap copy android && npx ionic cap run android --target=Pixel_5_API_29 --livereload --external --public-host=172.28.128.1 Failed
I have checked the Android emulator logs, ...
1
vote
0
answers
40
views
Issue with Bluetooth LE Connection in Ionic-Angular with Capacitor-community Bluetooth-LE plugin
I need help connecting an ESC-POS bluetooth printer using this plugin.
Here's my print service code:
import { Injectable } from '@angular/core';
import { CommonService } from './common.service';
...
1
vote
0
answers
38
views
Electron app communication with backend fails
I have an existing project with a Java backend and an Angular frontend. I would like this app to be available as a desktop application as well, so I am trying to use Electron to package the ...
0
votes
0
answers
51
views
Capacitor with iOS Passkey how to get registration data
I'm implementing Passkey to my Ionic app and I couldn't find any plugin out there so I'm building my own plugin. Everything works till triggering the passkey on the native iOS, but I couldn't get the ...
0
votes
0
answers
11
views
Ionic Sygic Embedded Integration
Has anyone successfully integrated the Sygic embedded app with Ionic using Capacitor?
I attempted it with the capacitor plugin but encountered difficulties.
I would appreciate any insights or tips on ...