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.
1,589
questions
0
votes
1
answer
9
views
Nextjs Ionic error while executing - npx cap sync
I am creating a Next.js + Ionic app.
While executing - npx cap sync, I am getting the following error.
[error] The web assets directory (./out) must contain an index.html file.
It will be the entry ...
0
votes
0
answers
10
views
Splash screen working on emulator Android studio but not on my mobile
I'm using ionic, capacitor and android to test and make an application.
I've generate splash and icon image with the command:
ionic cordova resources android
I build the project npm run build
I ...
0
votes
1
answer
10
views
Ionic OneSignal Push Notification set the root instead of pushing it from Home to Another Page
I'm having an issue with my OneSignal push notification page redirection. When I tap on my push notification when the App is running, it pushes the page (news-detail) to stack from the current page (...
2
votes
0
answers
20
views
Ionic 6, Angular, Capacitor 3, Browser, Session Cookie
I am testing Ionic (Angular) with Capacitor.
What I need to achieve is to authenticate to a specific CAS server.
When the user clicks on the "login" button.
...
private backendapi_login ='...
0
votes
0
answers
39
views
Ionic, Capacitor, Angular problem with code [closed]
Hi I have 2 errors in my code which I can't resolve.
Error 1:
ERROR Error: Uncaught (in promise): Error: This constructor is not compatible with Angular Dependency Injection because its dependency at ...
1
vote
0
answers
36
views
ionic capacitor run android failed
ionic capacitor run android failed when running build gradle.
gradle failed
'* What went wrong:
Supplied javaHome must be a valid directory. You supplied: C:\Program Files\Java\jre1.8.0_321'
the ...
-1
votes
0
answers
33
views
Migrating to Capacitor fails with error "Updating iOS native dependencies with pod install - failed!"
I just migrate a Web App Using Cordova to Capacitor.
I followed the tutorial in this website https://capacitorjs.com/docs/cordova/migrating-from-cordova-to-capacitor
But when I ran the following ...
0
votes
0
answers
11
views
Authentication and Session with Capacitor JS
I'm trying to make a cross platform website/app and I want to implement a remember me/keep me logged in feature.
My stack is React, Node/Express, Postgres, Capacitor
I've been looking at a lot of code,...
0
votes
0
answers
43
views
[quasar][capacitor] No external IP detected. Can't run without one
I am working on a quasar project for a mobile app using capacitor.
I used to run the app on my phone with the hot-reload module with quasar dev -m capacitor -T android. But since a few days ago, for ...
0
votes
0
answers
9
views
Couldnt get backend part of quasar app at capacitor build
After build and running quasar app in Android sttudio emulator in capacitor console falls such err
E/Capacitor/Console: File: webpack-internal:///./.quasar/client-entry.js - Line 78 - Msg: [Quasar] ...
0
votes
1
answer
33
views
'apiCC.myWebRTC_Adapter.getUserMedia is not a function' apiRTC audio call working on browser but not on android with angular ionic capacitor
I'm using "@angular/core": "~12.1.1", "@ionic/angular": "^6.1.4", and "@apirtc/apirtc": "^4.7.2".
I'm implementing an audio call following ...
0
votes
0
answers
22
views
@capacitor-community/http post request with empty response
I am developing ionic application and using @capacitor-community/http plugin for API call.
When I call POST request which returns some response, it's working perfect.
But when I call POST request ...
0
votes
1
answer
12
views
Capacitor, which plugin to use for notifications? [closed]
I am working on a whatsapp like application, and I need to notify the user everytime they get a new message. I have tried with Local Notifications plugin but notifications are not delivered when the ...
0
votes
2
answers
38
views
Avoid changing the background of Status Bar on iOS in Ionic
I'm doing a mobile app using Ionic 6.1.4 and Capacitor 3.5.1.
Android, looks good by default, black background and white icons on any screen.
iOS, always has whatever the background color I have in ...
0
votes
0
answers
12
views
Why are some images not loading on capacitor ios app using vue and vite
I am working on a capacitor app and it works fine both on browser and android phones but for one page when it's routed to it gets stuck on ios.
I have tried to check and saw it's because some files ...
0
votes
0
answers
8
views
How to add timer inside local notification using capacitor local notification plug in
I want to add a timer inside local notification using capacitor local notification plug in.
I have gone thru all the documentation and searched everywhere on net but I could not find the solution.
...
0
votes
2
answers
21
views
Ionic Save large file @Capacitor/filesystem - Out of memory error
I try to store multiple files in the file storage by using the @Capacitor/filesystem Plugin.
On large files I'm facing the following error - testet on my One Plus Pro 8 (Android 12):
W/System.err: ...
0
votes
0
answers
18
views
Ionic Capacitor native app Camera record video doesn't work
I'm trying to develop an application with an ionic capacitor cross-platform app which have feature record video and take pic options. I'm using capacitor camera plugin. This works fine on the web, ...
0
votes
0
answers
23
views
Capacitor Electron App deeplinks for Auth redirect to the browser
I have a Capacitor App, built with the CLI, that uses angular-oauth2-oidc as the Authentication library. On android/ios or in the browser, everything works just fine, but in electron, i'm having an ...
-1
votes
0
answers
16
views
Get install device unique id web -> native app iOS Capacitor
I am building a cross-plattform solution with Capacitor where I need to identify during the Android and iOS app installation which 'group' the device belongs to in order to establish an initial ...
-1
votes
2
answers
53
views
Capacitor plugin addListener RxJs style
I would like to write this:
PushNotifications.addListener('registration', (token: Token) => {
console.log('Push registration success, token: ' + token.value);
});
in RxJs style. I ...
-1
votes
0
answers
17
views
Ionic Native / Cordova change Gyroscope sensitivity for android
I am using Ionic in a project.
I can use Ionic Native, Cordova or capacitor plugins.
I know that you can do this in java but I cannot find how to change the Gyroscope sensitivity.
I cannot post any ...
0
votes
0
answers
32
views
getServerSideProps breaks routing in NextJS/Capacitor
I use the following method to avoid exporting getServerSideProps when building with nextjs:
export const getServerSideProps = process.env.SKIP_SSR ? undefined : async (ctx) => { ... }
And I build ...
0
votes
1
answer
28
views
Capacitor Hard ware back button closing the app in release build
I am handling the back button by adding a listener in the _app.tsx of my react project like so
useEffect(() => {
CapacitorApp.addListener("backButton", () => {
if (...
0
votes
0
answers
30
views
Ionic capacitor Facebook login problem creating the facebook app step
I'm trying to add the Facebook login on my Ionic Capacitor Firebase app but i'm having a lot of problems creating the app on facebook developers site and associating it with my app, now i'm trying ...
0
votes
0
answers
26
views
ionic capacitor building app error when app launches
I have created a capacitor application form starter. I have installed few plugins and tried to build application through android studio. There is no error on building application but when it launches ...
1
vote
0
answers
16
views
Javascript - draw a rectangular selection on an image
I need some help to implement a feature in my vuejs capacitor app. I'm getting a snapshot from an ip cam every second and this will simulate a video stream since rtsp isn't supported directly in ...
0
votes
0
answers
13
views
Storage not being cleared when uninstalling Capacitor App (iOS)
I've made a cross-platform app using Ionic and Capacitor but when the user uninstalls the app on iOS and re-downloads the saved data is still available, rather than it being a fresh open.
I've found ...
0
votes
1
answer
35
views
getAuth().onAuthStateChanged not called, async not resolving in capacitor?
This may be a firebase issue or a capacitor issue with promises - I'm building an iOS app with capacitor and NextJS.
I'm finding async functions (at least to firebase) aren't completing even when they'...
1
vote
2
answers
89
views
Angular Ionic Capacitor Barcode Scanner Plugin not working on Web
I am currently building my first Ionic app, which should include a QR-Code scanner.
This is my package.ts
{
"name": "drink-inc",
"version": "0.0.1",
"...
0
votes
0
answers
28
views
Error: /usr/bin/xcodebuild failed with return code: 65, trying to do CI/CD on AppCenter
I'm trying to do a CI/CD for my project on App Center, but im facing the following error:
*** ARCHIVE FAILED **
The following build commands failed:
CpResource /Users/runner/work/1/s/app-dev/ios/...
0
votes
1
answer
39
views
What is React Native WebView alternative for Capacitor/Angular?
I need to transform WebView component from React Native to Capacitor/Ionic/Angular:
<WebView
source={{uri: customUri}}
/>
Is there some similar option/component with Capacitor which will ...
-1
votes
0
answers
14
views
ionic: exception 'NSInternalInconsistencyException' with camera after capacitor migration
I migrate my ionic app from cordova to capacitor. When I test camera(with cordova plugin) I have this bug. So I test also with capacitor camera and I have the same bug.
libc++abi: terminating with ...
1
vote
1
answer
114
views
Firebase short dynamic link not working in iOS (being treated as a deeplink)
I have dynamic links working fine on Android and the long dynamic link works as expected on iOS but for some reason I can't get the short dynamic link to work on iOS.
It seems to be treating the link ...
1
vote
0
answers
25
views
Trigerring the password saving by Google when logging In
Google password saving
I have a problem with the password saving system on my Ionic 5 / Vue.js 3 application (it will only be used on Android devices) :
The Google pop-up as in the image above is not ...
0
votes
1
answer
46
views
Android onCreate of Activity class is not triggered
I am trying to write a plugin for Capacitor. It should pass the accelerometer data to the JavaScript. The bridge works fine.
However, the heading class does not seem to be initialized. The onCreate ...
0
votes
0
answers
33
views
Ionic Capacitor app rebooting Android 10 phone
I have an issue with an app I'm creating on Ionic 6, using Capacitor. It works as expected on Android 11, but refuses to open on Android 10, it crashes the phone completely (rebooting it). Here are ...
0
votes
1
answer
23
views
capacitor official push Notification plugin with firebase (FCM) received with some delay time
I'm using capacitor official push Notification plugin with firebase cloud messaging (FCM) and all thing is ok but the problem is the delay .. in Android and IOS the notification received within 2 to 4 ...
0
votes
0
answers
32
views
using capacitor-community/electron to create desktop app with an installer, but installer missing
I've created an app with ionic angular. I'm trying to build it using electron and to create an installer for the app.
I've run ionic build -> npm i @capacitor-community/electron --save-dev -> ...
0
votes
0
answers
21
views
Ionic Capacitor FCM , android build failing
I am stuck at the below issue for quite some time and its not getting resolved, had searched across stack overflow, google, but nothing is working for me. There's a workaround suggested on ionic ...
2
votes
1
answer
114
views
Firebase dynamic link always goes to ios app store even if app installed
I have a dynamic link that is working fine on Android however I can't get the App Store redirect behaviour working correctly on iOS.
If I set up the dynamic link to go to a url (not the app store) if ...
1
vote
1
answer
65
views
Capacitor iOS Using Cookie Based Auth
I am using Capacitor v3, NextJS static export, and a Django backend to build out an iOS app based on a production website.
The current backend authentication scheme uses Django sessions via cookies as ...
1
vote
0
answers
12
views
IOS app - downloading of resource files blocked by region?
got an issue I'm trying to get some details on in regards to an IOS app. We have a hybrid app where, on-load we download / save a .JS file to the device. This is so things can work properly offline ...
0
votes
1
answer
20
views
Attempt to invoke virtual method 'java.lang.String com.google.android.gms.auth.api.credentials.Credential.getId()' on a null object reference
I am developing a custom plugin in Capacitor 3 and Ionic 6 which retrieves the user's phone number with the help of HintRequest class.
I have added a blank activity (TestActivity) in my number-plugin ...
0
votes
0
answers
34
views
How to solve react ionic capacitor status bar problem
I am using react ionic capacitor for ios app.
I have problems in status bar.
My application covers all screen and status bar.
Is there any way for app not to cover status bar region?
0
votes
0
answers
17
views
Can't display price through RevenueCat by using Ionic capacitor
I am trying to use RevenueCat to do In App Purchases with my Ionic React app by using typescript and capacitor. I have this following code in my Ionic app:
const purchases = async () => {
...
-1
votes
1
answer
112
views
Cannot resolve method 'registerForActivityResult'
I am building a custom capacitor plugin to fetch the user's phone numbers. I am using capacitor 3 with Ionic 6.
I found a solution which is not deprecated and is a lot recent to fetch the user's phone ...
0
votes
1
answer
43
views
Vite + Vue3 + CapacitorJS + Firebase on iOS is not passing through Authentication
I am working with Vite+Vue3 connected to Firebase Web SDK 9 and looking to build mobile apps using Capacitor.
Everything is working as expected on Web and Android however when I get to iOS I can't ...
0
votes
0
answers
25
views
CSRF - invalid token: Capacitorjs App with Node.js backend
In building a mobile app with capacitorjs from a functional web app with Node.js backend that uses the csurf library for the prevention of CSRF attacks, I am getting invalid token errors. The backend ...
0
votes
1
answer
58
views
How to download PDF in ionic/capacitor/vue
I have pdf in blob:
data:application/pdf;base64,JVBERi0xL...
How do I view this pdf file in InAppBrowser or download and view it in Chrome in Android platform?
Thanks.