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,884
questions
0
votes
0
answers
4
views
Error occurred while running subprocess capacitor
when i run this command in an ionic app i get this problem
$`ionic capacitor add android
ionic integrations enable capacitor
npm i --save -E @capacitor/core@latest
npm i -D -E @capacitor/cli@latest
...
-2
votes
0
answers
31
views
How to implement the capacitor Firebase/Crashlytics in ionic project
To implement the capacitor Firebase/Crashlytics in ionic project. where to implement this functionality in which component..
I have implemented Capacitor plugin for Firebase Crashlytics in my Ionic 6 ...
0
votes
1
answer
26
views
Capacitor.convertFileSrc invalid url after rebuild on iOS
I am using the capacitor FileSystem to save and load a file.
I save the file :
const savedFile = await Filesystem.writeFile({
path: fileName,
data: this.iconAvatarBase64,
directory: Directory....
0
votes
0
answers
15
views
Error during building apk java.lang.AssertionError
At firt time in my life I try to create apk file, and I get this error:
java.lang.AssertionError
at org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard.doOKAction(...
-1
votes
0
answers
18
views
Origin capacitor://localhost is not allowed by Access-Control-Allow-Origin
I want download file on my ionic mobile app from amazon S3 but I have this issue Origin capacitor://localhost is not allowed by Access-Control-Allow-Origin.
So I add "capacitor://localhost" ...
0
votes
1
answer
24
views
InAppBrowser not load the page with cookies when I use the hardware back button
I have an application in Ionic/Angular in which I use the InAppBrowser plugin to use a web application of my company.
The InAppBrowser works fine in general, the situation is that there is a cookie in ...
-1
votes
0
answers
12
views
Svelte Store and Asynchronous Local Storage (CapacitorJS' Preferences plugin)
I have a custom store that works with synchronous localStorage. I would like to use capacitorjs' preferences plugin but it is asynchronous. My code looks like this:
useStorage.js
const getItem = async ...
-1
votes
0
answers
13
views
Conditionally import Capacitor plugins with Vite?
I'm creating a Vue-app that runs in the browser, but that can also be packed into a Capacitor app. I use Vite as bundler.
I use the @capacitor/camera plugin, which needs the following import in a ...
0
votes
1
answer
9
views
can't load brother SDK to capacitor custom plug in
I have been searching all over and I have not found any good documentation in how can I create a custom ionic capacitor plug-in with an external SDK (Brother printer SDK). This SDK is located locally ...
0
votes
1
answer
17
views
Creating directions from current location to destination using @capacitor/geolocation
I wanted to show maps from users current location to the destination with live tracking (just like ola or uber)
I followed the steps as mentioned in Ionic guide book, below is my code
async ...
0
votes
1
answer
22
views
How can I disable Pushy in Capacitor using Ionic Toggle?
Is there a way to disable Pushy, in Capacitor, using Ionic Toggle? There are no function in the pushy documentation: https://pushy.me/docs/additional-platforms/capacitor
The goal is to have a toggle ...
0
votes
0
answers
14
views
When using Capacitor external url navigation, the cookie in the header automatically drops in iOS
I have a website that has an onboarding (sign in) flow implemented, and upon successfully signed-in, I use the cookie in the header to navigate to the next rout to collect some user inputs prior ...
-3
votes
1
answer
29
views
Module '"ionic-rating-component"' has no exported member 'IonicRatingModule' [closed]
Rating Library
IONIC INFO
Ionic:
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 6.3.8
@angular-devkit/build-angular : 14.2.10
...
0
votes
0
answers
32
views
How can I add Capacitor Native Mobile apps to a Visual Studio solution that already has a combined .Net server and Angular Client
My starting point is a Visual Studio 2022 Solution that's already organized with a .NET "back end" in C# and an Angular browser client. Using VS2022 the existing solution will start the ...
-2
votes
1
answer
17
views
Can I compile Capacitor apps for iOS on 2019 Intel MacBook Pro
I have the opportunity to buy my used Intel MacBook Pro 2019 from work for a very good price. I would like to use it to compile my Capacitor apps for iPhone/iOS but I heard and read different things ...
0
votes
1
answer
21
views
Apple Sign In stacks in PHP Function for Capacitor 4
I am having a problem with my Sign In Apple function on Capacitor 4.
The dialog to give the password for the Apple Id open just fine but when it call the php function it stucks like the photo i ...
-1
votes
0
answers
20
views
Equivalent of sendRegistrationToServer() in Capacitor
Hello Can anyone please expand on the whole FCMToken thing. I've been documenting a lot about it but I cannot seem to understand how to notify Firebase that I have an FCMToken on my device and i want ...
-1
votes
1
answer
26
views
ionic capacitor app Failing to upload file using xhr
i am trying to upload image captured from camera using ionic and capacitor and below code i am using:
var url = 'https://api.cloudinary.com/v1_1/' + this.cloudName + '/image/upload';
var xhr = new ...
-1
votes
0
answers
32
views
How to include .xcframework to a Capacitor App and Capacitor plugins
I'm trying to add a plugin that depends on a local .xcframework on my Capacitor app.
This framework should also be linked to my App target.
So, the plugin was cordova-based and I tried to add it as is....
-1
votes
0
answers
37
views
Firebase, Capacitor, @capacitor-firebase/authentication | Google Sign In Does Not Work On Mobile [closed]
I am working on porting one of my games to mobile, and saw that Capacitor could do this -- so, this is my first time using it. I have set-up firebase, and have no problems on the desktop build, but on ...
2
votes
1
answer
94
views
Capacitor iOS Geolocation watchPostion kCLErrorDomain error 1 while permission granted
I am using an older version of the capacitor geolocation, v1.3.1, and recently switched to the watchPosition implementation but occasionally that created a situation where the position is null or ...
0
votes
1
answer
22
views
How to configure a react capacitor app running on mobile by usb to make http request to sendbird as localhost instead of its IP address?
I have a React webapp that I have converted it to native app using Capacitor. For live reloading, I had to edit capacitor.config.json as follows:
const config: CapacitorConfig = {
//
webDir: '...
0
votes
1
answer
24
views
Ionic Capacitor Module Not Found
I'm getting the following error on code that was working fine a few days ago. Something in the dev environment changed and I'm unable to determine what is missing.
This is a Windows 11 environment ...
0
votes
0
answers
22
views
Status bar covers part of the application
I have a problem that the status bar covers part of the application, and I would like the status bar to be separate from the application. I use Angular 12 and Capacitor V4, should i use capacitor save-...
0
votes
0
answers
18
views
Capacitor Share ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL TypeError: Failed to execute
I'm working with Ionic 6 and Capacitor, and i'm using the default Capacitor Share API, but when using it i get this error.
ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on '...
0
votes
1
answer
55
views
How to fix Ionic Photo Viewer gradle compiler error?
So I wasted so many hours trying to simply add the photoviewer to my ionic angular app.
The steps seems simple.
$ npm install --save @ionic-native/core
$ npm install com-sarriaroman-photoviewer (this ...
0
votes
1
answer
24
views
InAppPurchase2 / Capacitor / Ionic: How to sell testperiod products (Offer / Discount)
I`m using In App Purchase in my Ionic App installed like described in
https://capacitorjs.com/docs/guides/in-app-purchases
With this npm package
https://www.npmjs.com/package/@ionic-native/in-app-...
-1
votes
0
answers
19
views
Ionic native -When installing CallLog plugin and try to initialise the getCallLog() compilation fails
This is the error shown in terminal
./node_modules/@ionic-native/call-log/__ivy_ngcc__/index.js:94:8-15 - Error: export 'Cordova' (imported as 'Cordova') was not found in '@ionic-native/core' (...
-2
votes
0
answers
40
views
How to add the IOS permissions like location in Info.plist using capacitor configuration
How to add the IOS permissions like location in Info.plist using capacitor configuration (capacitor.config.json or ionic.config.json)
-1
votes
0
answers
15
views
Capacitor JS not redirecting in app on Android 12
I have a Capacitor app that uses <a> elements to redirect the user to another page that is also located inside the /src/ folder. When I click the link, it goes to a blank page (shown below). I ...
0
votes
0
answers
36
views
how to send text string by command line through bluetooth connection?
I am trying to establish bluetooth communication between my computer and an application that I am developing, installed on an android tablet.
How can I send data from my computer to my application to ...
-1
votes
0
answers
21
views
CapacitorJS Keyboard covers app in android
I have a capacitor app with Keyboard plugin.
I want to resize the view when I open the keyboard, but it does't work.
My Config.
import { CapacitorConfig } from '@capacitor/cli'
import { KeyboardResize,...
-1
votes
1
answer
18
views
Ionic Framework 6 Admob
Reaching out the masses as at the loose end. I'm trying to integrate AdMob into my app. I've looked at the documentation on the ionic website and it points to a plugin that doesn't seem to want to ...
-1
votes
1
answer
42
views
Cors in capacitor for android
I want to convert my angular web app to mobile app.
I understand how works cors in web, there is just need to set port in frontend and the same port and url in backend allowedOrigins settings. But I ...
0
votes
0
answers
14
views
ionic capture image of DIV content in a 100% Capacitor, not using Cordova
I have seen ionic solutions for capturing the content of the whole screen, but I need to capture the image in a section of the screen, div or whatever works. And... (a big and) not using Cordova.
Is ...
-1
votes
0
answers
27
views
ERR_CONNECTION_REFUSED warnings in a Capacitor project
after I install my Ionic 6 Angular 12 Capacitor 4 project on my device to debug I am getting all these warnings in the console and they stall the app.
They appear after the Splashscreen and it shows a ...
0
votes
2
answers
100
views
Android Virtual Device error: This request has been blocked; the content must be served over HTTPS
I am simply trying to make a Capacitor (Angular) HTTP GET Request from the Android Virtual Device (API 29) to an API (.NET 6.0) also running on my PC.
In production I would change the API to only use ...
-1
votes
0
answers
95
views
Capacitor project doesnt recieve Push Notifications on Android Version
Hello I am having a problem with Push Notifications on my Ionic 6 Angular 12 Capacitor 4 project for over a month now and it's driving me crazy. It works on iOS just fine.
Let me give you all the ...
1
vote
1
answer
19
views
Why does Ionic toggle switches effect one another when using Recoil?
I have two Ionic toggle switches and they both effect one another when used with Recoil. When I console both of them, initially they show the correct default value but when I switch the OFF to ON, the ...
0
votes
0
answers
43
views
Error when using a Cordova Plugin to import an .aar library to Ionic / Capacitor
Create a plugin with Cordova to use a library (.aar file) in Ionic using Capacitor. The plugin works and I can run code from the plugin .java file, but when I try to import the library I get an error. ...
-1
votes
0
answers
15
views
ionic capacitor first app err_connection_refused error
I had project with ionic cordova. For some reason I started switching to capacitors. But when I install and compile the application, I get this error on my android device.
I created a new project for ...
0
votes
1
answer
31
views
Status bar overlaps Capacitor v2
I have a problem with the overlapping status bar. I want to have some margin or a safe area, that has other applications. I use Capacitor v2 because in the project I have Angular v7. I would like to ...
0
votes
0
answers
17
views
How to save a Video file on android using capacitor and angular
my code in angular is:
async downloadFilm() {
if (confirm(this.filmData.filmTitel + ' herunterladen?')) {
if(this.api.getIsWeb()){
this.api.downloadFilm(parseInt(this.filmData.id))....
0
votes
1
answer
60
views
iOS: Ionic angular app - capacitor camera crash after taking picture
I'm creating Ionic Angular app and I have some functionality which should allow user to take picture. Android app works completely fine but iOS crashes while taking picture. So to add photo you have ...
-1
votes
0
answers
11
views
Capacitor 4 reload same page after function success
i have a capacitor 4 angular 12 project. I having a function and after success i want it to reload the same page. I tried
location.reload()
windows.location.reload()
But it shows me a blank page.
...
0
votes
0
answers
38
views
HMS Core location Kit TypeError: Cannot read properties of undefined (reading 'getFusedLocationProviderClient') - Ionic/Capacitor - VueJS
I'm trying to implement HMS Core location kit into my vue ionic app.
I import HMSLocation and declare it, but when I try to use the getFusedLocationProviderClient function I get
TypeError: Cannot read ...
0
votes
1
answer
169
views
Running Gradle Build - Failed When i tried to run ionic capacitor run android -l --external
so before i just changed my device, my ionic project working just fine when i tried to run live reload. i think i have installed all the same version of jdk and node js as my old device.
and now, i've ...
0
votes
0
answers
17
views
How to Create Cordova install
My application itself is developed with Angular and Ionic 3, Ionic has a system for integrating features of devices such as Bluetooth, camera, network, among others, the name of this system is Cordova....
0
votes
0
answers
52
views
Ionic capacitor google maps appears over WebView on IOS
Integrated @capacitor/google-maps plugin in an Ionic capacitor application. Plugin is working fine when running the application in browser or in android. But in iOS ionic header is not visible as the ...
0
votes
0
answers
25
views
Implementing IAP for a WebApp (pwa) on ios/Apple
I am having a hard time finding an answer whether it is possible to implement in-app-purchases for a web-based application on ios.
Apple's guidelines, similar to Google's pretty much say, "If you ...