Issue I am trying to publish a capacitor plugin. According to the error it is not able to recognize rm. I am using Window’s Powershell (VC Code) The following error is being generated in the powershell when npm publish in
Continue readingTag: capacitor
How to connect to Ble device without rescan and manual device selection
Issue I’m creating an Ionic react (TypeScript) app which uses the Community Bluetooth-le plugin. When I try to connect to a device using requestDevice this shows the available devices and I can then pair/connect with that device and all is
Continue readingionicframework iOS cannot be uploaded after push notifications were added
Issue I have recently deployed iOS app (using ionic framework + capacitor) to the app store. Today I have added push notifications support, using this guide: https://capacitorjs.com/docs/guides/push-notifications-firebase I have tested the app – push notifications works for the connected device.
Continue readingCapacitor Hard ware back button closing the app in release build
Issue 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 (router.pathname === "/") { CapacitorApp.exitApp(); } else { router.back(); } }); return
Continue readingionic capacitor share plugin not sharing image with whatsapp
Issue I have created this function that shares image very well on many applications, but when it comes to WhatsApp or Instagram it not sharing the image. I’m using Ionic v5 with capacitor v3 async shareImage() { let receiptName =
Continue readingHow do you update the iOS & Android app version in Ionic w/ Capacitor?
Issue I am developing an app using Ionic and Capacitor. Builds are generated using Ionic’s new AppFlow service, so I don’t build them locally. How do I go about updating the iOS and Android version numbers? I’ve tried updating the
Continue readingHaving an 'SyntaxError: Unexpected token 'export' Issue with my Electron-Ionic Application
Issue //Having this issue and I don’t know how to solve it: Uncaught C:\Users\Zac\ionic_projects\robot-backup-4\node_modules\@ionic\core\components\index.js:4 export { setAssetPath, setPlatformOptions } from ‘@stencil/core/internal/client’; ^^^^^^ SyntaxError: Unexpected token ‘export’ at new Script (vm.js:101:7) at createScript (vm.js:262:10) at Object.runInThisContext (vm.js:310:10) at wrapSafe (internal/modules/cjs/loader.js:979:15) at
Continue readingAngular Ionic Capacitor Barcode Scanner Plugin not working on Web
Issue 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", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test":
Continue readingIonic5/Angular Capacitor Device API
Issue I am new to Ionic/Angular and I was hoping for some help. I want to output the device battery level on the screen using the Capacitor Device plugin but I can’t work out how. I have managed to log
Continue readingExecution Failed capacitor-cordova-android-plugins:compileDebugJavaWithJavac in Ionic 6
Issue I am using Cordova plugin to use fileOpener in the capacitor ionic project. Before this, everything was working fine as I install following packages: npm install @ionic-native/file npm install cordova-plugin-file npm install @ionic-native/file-opener npm install cordova-plugin-file-opener2 Here is the
Continue readingSign in with apple on the web with Capacitor plugin not redirecting
Issue I am trying to implement Sign in with Apple functionality in my Ionic app. In order to do that I am using the plugin: https://github.com/capacitor-community/apple-sign-in Everything is fine when using it on a device, but I can’t make it
Continue readingwhy i can't run command "npm update" in my ionic project?
Issue I can’t run command npm update or npm install in my ionic project. this is an error that I get. and here is my "ionic info" Solution ….. This kind of stuff happens exactly when you continuously remove package-lock.json
Continue readingCapacitor Filesystem returns error while using main functions
Issue I created a new app using capacitor 3, in this app I used the Filesystem to perform some functions. I created a service to handle everything related to the filesystem, but when I went to use the functions I
Continue readingChrome Custom Tab support in capacitor
Issue Is there any way to make Browser Tab work with a capacitor react project. I found that it’s supported in ionic. I’m relatively new to ionic and capacitor. I’m trying to use this ionic plugin in my react capacitor
Continue readingupload image from Angular to aws s3 error: the image cannot be displayed because it contains errors
Issue I’m trying to capture an image with the Android camera and upload it to an AWS S3 bucket. Using Angular 13 Ionic 6 and the Capacitor camera. Finally I got the image to upload to S3, but when attempting
Continue readingFirebase dynamic link always goes to ios app store even if app installed
Issue 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
Continue readingiOS simulator running Capacitor converted web app can't seem to retrieve data consistently from local development server
Issue I have a web app developed in node.js, and now I am starting to create a mobile app from it using capacitorjs. In the web app I used handlebars to parameterize views and then served them using res.render(). With
Continue readingiOS simulator running Capacitor converted web app can't seem to retrieve data consistently from local development server
Issue I have a web app developed in node.js, and now I am starting to create a mobile app from it using capacitorjs. In the web app I used handlebars to parameterize views and then served them using res.render(). With
Continue readingAzure AD B2C login with Firebase Auth Capacitor plugin: Ionic/Angular
Issue I use this Capacitor plugin to Auth with MS. But no luck yet. I have followed this doc and configured it all well. But can you tell me where to set this up? When registering apps with these providers,
Continue readingAzure AD B2C login with Firebase Auth Capacitor plugin: Ionic/Angular
Issue I use this Capacitor plugin to Auth with MS. But no luck yet. I have followed this doc and configured it all well. But can you tell me where to set this up? When registering apps with these providers,
Continue readingHow to integrate Capacitorjs with Node.js?
Issue The web app is already written in node.js but the project pivoted to a mobile app platform, capacitor is promising way to easily run a node.js web app to a native mobile. However after doing some research, most of
Continue readingHow to integrate Capacitorjs with Node.js?
Issue The web app is already written in node.js but the project pivoted to a mobile app platform, capacitor is promising way to easily run a node.js web app to a native mobile. However after doing some research, most of
Continue readingHuawei HMS maps not working on Ionic Capacitor runtime
Issue I have followed this guide to add Huawei HMS maps to my IONIC capacitor runtime app. https://github.com/HMS-Core/hms-cordova-plugin/tree/master/cordova-plugin-hms-map/example/ionic This app has google-services.json and huawei agconnect-services.json. In project build.gradle I’m using […] classpath ‘com.huawei.agconnect:agcp:1.5.2.300’ capacitor.build.gradle dependencies { […] implementation "com.huawei.hms:base:5.2.0.300" implementation
Continue readingHuawei HMS maps not working on Ionic Capacitor runtime
Issue I have followed this guide to add Huawei HMS maps to my IONIC capacitor runtime app. https://github.com/HMS-Core/hms-cordova-plugin/tree/master/cordova-plugin-hms-map/example/ionic This app has google-services.json and huawei agconnect-services.json. In project build.gradle I’m using […] classpath ‘com.huawei.agconnect:agcp:1.5.2.300’ capacitor.build.gradle dependencies { […] implementation "com.huawei.hms:base:5.2.0.300" implementation
Continue readingAngular Ionic Capacitor | Why is Even a Simple Animation Laggy
Issue I’m building a simple Ionic Capacitor app with Angular. The app includes a few pretty simple animations, and I’m stunned to learn these animations are incredibly laggy: In the app, I have a list of contacts. When a contact
Continue readingAngular Ionic Capacitor | Why is Even a Simple Animation Laggy
Issue I’m building a simple Ionic Capacitor app with Angular. The app includes a few pretty simple animations, and I’m stunned to learn these animations are incredibly laggy: In the app, I have a list of contacts. When a contact
Continue readingAndroid Studio – blank white screen when running Ionic App on an emulator
Issue I’m working on an Ionic App. It’s running fine both in iOS emulator (via Xcode) and via ionic serve, but when trying to run it on an android emulator in Android Studio, the following happens: The Emulator launches successfully
Continue readingAndroid Studio – blank white screen when running Ionic App on an emulator
Issue I’m working on an Ionic App. It’s running fine both in iOS emulator (via Xcode) and via ionic serve, but when trying to run it on an android emulator in Android Studio, the following happens: The Emulator launches successfully
Continue readingmake addListener get data on demand only in js (no keep listening)
Issue I am using capacitor 3 in a project and I have this code: import { PluginListenerHandle } from ‘@capacitor/core’; import { Motion } from ‘@capacitor/motion’; let accelHandler: PluginListenerHandle; myButton.addEventListener(‘click’, async () => { try { await DeviceMotionEvent.requestPermission(); } catch
Continue readingCapacitor v3 Motion api – using AccelListenerEvent properties
Issue I am using Capacitor version 3 and I’m trying out the Motion Api. In the documentation here, the AccelListenerEvent comes with some properties which I want to set but there are no examples of how to use this. So
Continue readingWhat is the best approach for separating native features code in web Angular application which is also native android/ios app using Capacitor?
Issue I have question regarding Angular application which is using Capacitor. Our Angular application source code should be used for web build and also for native android/ios applications. Is there some proposed approach which should be followed if we use
Continue readingHow to send push notifications with node and capacitor
Issue I have Angular application with Capacitor (without Ionic) and I need to send push notifications to the user app from Node.js backend. How would I do that? Any article, source or example would be much appreciable? Here is capacitor.config.ts
Continue readingSlow button response time with Capacitor x Svelte on Ios
Issue I try to create a starter app with Capacitor and Svelte. Everything works fine except one thing, when I use native html anchor ( with svelte-routing) for navigate the there is a slow respond time to user interaction, maybe
Continue readingIonic Capacitor IOS Only Works With Livereload
Issue In my ionic capacitor ios app, the app works just fine on a web browser using ionic serve. When I try running ionic capacitor run ios, that is successful but when I build the app I get this: While
Continue readingHow to skip target device in ionic-cli version 6
Issue I created a new ionic capacitor angular project with platforms android and ios. Now when I run the command ‘ionic cap run android -l –external’ as usual the command line asks for a target device (happens also when I
Continue readingIonic Capacitor: how to see console when running on android emulator
Issue I am new to ionic and I want to run my app on an android emulator with hot reload and get access to the console. I use this command (i’m using capacitor): ionic capacitor run android but once the
Continue readingExchange applepay token to stripe token on ionic angular
Issue Project Version: ionic: 6.16.1 capacitor: 3.0.2 angular: 12.0.5 The situation is that we manage to integrate stripe (google pay and credit cards) on ionic web (no domain since it is a native app, just developed in web). However, we
Continue readingCapacitor / Ionic Filesystem writeFile to csv
Issue I am using Capacitor 3, Filesystem and I’m saving data into a file. Here is the code: writeToCSVFile = async () => { await Filesystem.writeFile({ path: ‘text.csv’, data: `0123445544,4556677`, directory: Directory.Documents }); }; The file is saving but there
Continue readingUnable to close IONIC InAppBrowser for particular URL
Issue I am using Ionic with React or Capacitor I want close my InAppBrowser for any particular URL ….Thanks in advance. // open InAppBrowser w/out the location bar var ref = window.open(‘http://myloginapp.com’, ‘_self’); // attach listener to loadstart ref.addEventListener(‘loadstart’, function(event)
Continue readingHow to restart an app in ionic after not using it for 5 or 10 min?
Issue I have a query about ionic with capacitor v3. I would like to be able to restart the app at a specific time when the app is in the background, example: I have my app open but then I
Continue readingError occurred while copying resources/android/icon/mdpi-foreground.png
Issue I am getting following error while copying icons and splash screen using cordova-res. I am using capacitor to build the app I am using following command to copy the icons: cordova-res android –skip-config –copy here is the response of
Continue readingIonic 6 PWA Capacitor 3 Camera plugin getPhoto method open camera like native camera view
Issue Does anyone know how to open native fullscreen camera (2nd image) in an Ionic PWA on mobile phones directly from getPhotos() method, instead of opening camera view showing in browser w/ url bar still showing (3rd image)? 1st image
Continue readingFailed to send post request with Capacitor (works fine from regular webpage)
Issue I’m working on an app using Ionic (Vue) and have already set a server side (Python with FastAPI). While I’ve no issues sending a request when running my app on the browser (ionic serve), I fail to do so
Continue readingCannot disable capacitor plugin logging in web inspector
Issue I am using Capacitor storage to get and set values as seen here https://capacitorjs.com/docs/apis/storage Everything functions correctly however I am getting a large volume of console messages while developing using xcode simulator and safari web inspector, every time I
Continue readingIonic Live Reload Capacitor Gradle build – failed! Unable to locate a Java Runtime
Issue Live Reload not working anymore? Now after the update to Capacitor Version 3 I can’t use Live Reload in my Ionic Angular Project anymore. Unable to locate a Java Runtime. Has anyone else got the same issue? I’ve followed
Continue readingGet success or failure response from Bluetooth-le write
Issue I’m using the Bluetooth-LE community plugin in a Ionic React project. I’m writing a value to the GATT server with the following code: await BleClient.write(device.deviceId, SERV_SYSTEM_SETTINGS, CHAR_RTC, dvDateTime ); This works fine except I need to be able to
Continue readingHow to get a response from the async write function in capacitor-community / bluetooth-le
Issue I’m working with an ESP32 chip and am trying to create an Android app (using Ionic) which allows user to send wifi credentials to the ESP32 chip via BLE. I’d like to be able to update the status of
Continue readingIonic 5 Capacitor hardware back button ending the app
Issue I have a problem testing my ionic app on my phone and android studio, when i press the hardware back button the application inmediatly exits, i’ve tried many solutions, but it simply won’t work and won’t listen to whatever
Continue readingnpx cap sync vs npx cap copy
Issue I am new to the capacitor and developing an application where I am making changes into code and running ionic build npx cap copy npx cap open android And it is also recommended to use npx cap sync in
Continue readingWhat is the command to run ionic/capacitor app on device with live reload for android and ios
Issue I have ionic capacitor project and I am trying to run it on device. Need help for android livereload debugging as i am using windows machine Solution Making sure that we have already setup jdk and android studio. We
Continue readingIonic 5 + Jasmine test whether SplashScreen.hide() was called fails (update to Capacitor 3)
Issue I have a problem to pass a unit test that worked before. I’m trying to update my Ionic project from Capacitor 2 to Capacitor 3 and have a problem to integrate the new SplashScreen plugin. Here is my app.component.ts
Continue readingBuild fails with ionic cap run android -l –external
Issue After updating to latest @ionic/cli version I started receiving this error, after I try to do this command : ionic cap run android -l –external FAILURE: Build failed with an exception. [capacitor] [capacitor] * Where: [capacitor] Build file ‘E:\laragon\www\ProjekatA\frontend\android\app\build.gradle’
Continue readingIonic App is crashing after login, when I run build on Android emulator
Issue Note : its and ionic (Capacitor) project and i am using Android Studio for testing. requestNotificationsPermissions(): void { PushNotifications.requestPermission().then(result => { if (result.granted) { PushNotifications.register(); } }).catch((err: any) => { console.log(err); }); } Solution I see you are using
Continue readingthis.file.listDir won't return folders under the externalRootDirectory on Android
Issue I am trying to select directories of file:///storage/emulated/0/images/ with ionic-native/file but the Entry[] et return 0. I tried different folders under externalRootDirectory but get the same 0 results. I think maybe the cordova-plugin-file issue with capacitor, ionic-native/file. Can anyone
Continue readingIonic App Icon not appearing in task / applications view
Issue I just got into ionic and I made my first app. I would like to know how to change the icon that is presented here: I did already change the normal icon that is displayed, like so : I
Continue readingIonic 5 Cordova Plugin EmailComposer NullInjectorError
Issue I’m doing an App using Ionic 5 and Capacitor. package.json "dependencies": { "@angular/common": "~9.1.6", "@angular/core": "~9.1.6", "@angular/fire": "^6.0.2", "@angular/forms": "~9.1.6", "@angular/platform-browser": "~9.1.6", "@angular/platform-browser-dynamic": "~9.1.6", "@angular/router": "~9.1.6", "@capacitor/android": "^2.4.0", "@capacitor/core": "^2.4.0", "@capacitor/ios": "^2.4.0", "@ionic-native/core": "^5.27.0", "@ionic-native/email-composer": "^5.28.0", "@ionic/angular": "^5.2.3", "cordova-plugin-email-composer":
Continue readingOpen a Map Url on a native device Map app
Issue Q: I need to open this kind of link on the Native Map app. Can you tell me what plugin should I use here? https://www.google.com/maps?q=15405 Hebbe Ln+Au… I have used the Capacitor Browser plugin and it works nicely on
Continue readingRun Ionic 5 app on real android device using capacitor
Issue I’ve recently started working with capacitor using using ionic 5. I’ve read all the capacitor documentation but I didn’t find any guidance that how can I run Ionic 5 app on real android device. Can anyone guide me how
Continue readingBuild Electron app using Ionic v5 with @capacitor-community/electron
Issue I’ve been sitting last week with the following problem – I wanted to compile my Ionic project not only to android version, but also to electron desktop app. But, every time when I deployed packed electron version, I’ve got
Continue readingIonic 5, how to get the serial number of device via capacitor?
Issue I’m building an app by using Ionic 5 & CapacitorJs, I want to know how to get the serial number via the capacitor plugin? I don’t want to use the Cordova plugin if possible. Solution You can read IMEI,
Continue readingUpdate value inside Capacitor Storage
Issue Following situation: I have an Ionic React app, which I use to take photos and then save the photos with its belonging info. I take all the existing data (at the point of taking the photo) and save it
Continue readingIonic Capacitor: Application says "Something went wrong"
Issue I have a webapp that was built with ReactJS that runs beautifully. I’m trying to convert this webapp into an Android app using Iconic Capacitor. I’ve gone through the steps to do so, imported things into Android Studio and
Continue readingDifference between Plugin/Api implementation with @ionic/angular and @capacitor/XXX
Issue I update an app to ionic 5 with capacitor. Before that, ionic 3 was used with Cordova. If I want to display an ActionSheet in the app now, I have two options. Either via @ ionic / angular I
Continue readingObservable gets the wrong value when using the from operator with a promise after immediately updating that value in another promise
Issue I have an observable that listens to route changes 🙂 I also have a promise that clears my local storage and when it’s done I immediately change the route but my switchMap/switchMapTo inside my route-change observable get the old
Continue readingHow to LiveReload and debug Ionic/Capacitor application on Android device/emulator
Issue I’m new to Ionic and want to debug the Ionic app that’s running on Android device (and emulator). I’ve followed the official documentation for debugging and livereload, but still the breakpoint is never hit on VS Code from Android
Continue readingAngular 11, Ionic 5 , Capacitor 2 gradle sync error "Caused by: org.gradle.api.resources.MissingResourceException"
Issue I am getting the following error on npx cap open android Caused by: org.gradle.api.resources.MissingResourceException: Could not read script ‘/Users/adk/Documents/projectA/node_modules/cordova-androidx-build/src/android/cordova-androidx-build.gradle’ as it does not exist. I have cordova-androidx-build installed and cordova-androidx-build.gradle file is present in node_modules of my project. The
Continue readingiOS 15.1 safari PWA statusbar color stays green despite changes in index.html and manifest.json
Issue In buidling a PWA with ionic and capacitor. I’ve just updated my iPhone to iOS 15.1. When building for production, I noticed that the statusbar had a green color. I changed my apple-mobile-web-app-status-bar-style to black-transculent. Build the app again,
Continue readingChrome inspect not showing android application WebView anymore for debugging
Issue I have created an application in an Ionic capacitor. Now it’s running in android mobile perfectly, but I want to debug its webview. Previously It used to display the android application in the list whenever I used to connect
Continue readinggoogle social login not working in ionic capacitor using codetrix-studio capacitor-google-auth
Issue in the capacitor.config.json "GoogleAuth": { "scopes": ["profile","email"], "serverClientId": "KEY.apps.googleusercontent.com" } in index.html <meta name="google-signin-client_id" content="KEY.apps.googleusercontent.com"> in android folder string.xml file <string name="server_client_id">KEY.apps.googleusercontent.com</string> and in our page .ts file to get detail of google user detail const user = await
Continue readingIonic capacitor live reload not working on android
Issue I am using the following command to perform live reloading on android ionic capacitor run android –livereload –external But it is not working. Here is the error I am getting The web page at http://localhost:8100/ could not be loaded
Continue readingIonic Capacitor – Screenshot to Gallery (iOS)
Issue Haven’t been able to find any solution to this. I’m using Ionic Framework 5+ and using Capacitor 3+. I need to be able to have the user take a screenshot on iOS and Android and have that screenshot automatically
Continue readingUnable to download file using ionic file transfer plugin in ionic 5+
Issue here im using ionic file transfer plugin for downloading a file and when ever i tried to download the file im getting below error and also every time i build a file i need to add the below code
Continue readingAfter Update androidx.appcompat:appcompat:1.4.0-beta01 build failed
Issue From 29th September 2021 , i got this error when i build my ionic capacitor app The minCompileSdk (31) specified in a dependency’s AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module’s compileSdkVersion (android-30). Dependency: androidx.appcompat:appcompat:1.4.0-beta01. AAR metadata file: C:\Users\username\.gradle\caches\transforms-2\files-2.1\fc809b477a0dcde256a643199c214be5\appcompat-1.4.0-beta01\META-INF\com\android\build\gradle\aar-metadata.properties.
Continue readingThere was an error with the request: Cleartext HTTP traffic to localhost not permitted
Issue I am working on ionic 4 using capacitor. I tried to call an api from localhost but am getting this error There was an error with the request: Cleartext HTTP traffic to localhost not permitted!! Solution Since android 9
Continue readingWhy does preflight fail on newer Android devices but not older devices and desktop?
Issue I am using the axios package to send API requests from my app to my backend The backend is built with Laravel and is a simple rest API If I run the Ionic app on desktop using ionic serve
Continue readingIonic Capacitor page is flashing on some Android devices
Issue I made an application using ionic, first releases were using Cordova, but my last release uses Capacitor, now some customers are no longer able to use the last release on their Android phones(specially Tecno devices running on Android 8.1,
Continue readingCapacitor v3 plugins not working on android build
Issue I’m using capacitor v3 beta and there are no problem working in web and iOS but can’t run android app. Build is done fine but when running the app appears this error: E/Capacitor/Console: File: http://localhost/vendor-es2015.js – Line 41296 –
Continue readingIonic Capacitor iOS doesn't respect dark mode
Issue I have an Ionic app using @media (prefers-color-scheme: dark), when I build the ios version using capacitor, it does not respect dark mode. I have tried this node module, looked here, and here, but nothing seems to work. Why
Continue readingIonic ReactApp – ios status bar color
Issue We have an ionic react app, from which we built an ios app using capacitor. We have problem with our status bar color being white on a white background. I tried looking around for fixes and found this: https://developer.apple.com/forums/thread/16771
Continue readingwindow.open() with ios for an async function not working
Issue In my app so far all the window.open calls work fine on iOS but this one is using an async function. Is there a solution for this? I have spent several hours trying various things from stackoverflow. I have
Continue readingIonic 5 / Capacitor: How to find out if app is running in browser or compiled as native app?
Issue I just want to know, if my Ionic 5 app is running in a browser, or in the webview of a compiled app. Platform does not work: https://ionicframework.com/docs/angular/platform It just tells about the device. But when I run it
Continue readingIonic 5 / Capacitor: How to find out if app is running in browser or compiled as native app?
Issue I just want to know, if my Ionic 5 app is running in a browser, or in the webview of a compiled app. Platform does not work: https://ionicframework.com/docs/angular/platform It just tells about the device. But when I run it
Continue readingIonic application Xcode build errors
Issue I have created a new ionic react project based on the templates on the ionic website and also added capacitor ios. When I open my project and try to run it in Xcode I get the following errors as
Continue readingPOST request doesn't work on iOS devices in IONIC app
Issue I tried to make post-request to my server from iOS device (iOS emulator inside Xcode). I’m using ionic 5 and VueJS and @capacitor-community/http. So my code looks like: methods: { async submitForm(){ const form_data = this.$store.getters.my_data; const options =
Continue readingCapacitor splash screen animation
Issue I have an Angular 2+ app wrapped with Capacitor. I want to add a splash screen animation to it. After researching this issue I understood that animating the splash screen is not possible, but we can wait until the
Continue readingCapacitor 3 and Ionic 6 Android build hitting "uses-sdk:minSdkVersion 1 cannot be smaller than version 21 declared in library [:capacitor-app]"
Issue I’m quite stuck here despite having found a few quite similar Stack Overflow questions. My specific case is trying to get an app to build on Android which I recently updated to Ionic 6 and most notably added Capacitor
Continue readingCapacitor Plugin for Ionic App in Kotiln Unresolved reference: Plugin
Issue I have created a capacitor plugin and an Ionic app locally for development in two separate directories. Both the plugin and the app on Android are using Kotlin. I am using Ionic Framework : @ionic/react 6.0.7 Capacitor CLI :
Continue readingIonic capacitor push-notifications duplicate tokens
Issue I have an Ionic 5 angular app with push notifications, using the @capacitor/push-notifications plugin. Set up correctly as described here, and running on iOS. PushNotificationService: import { Injectable } from ‘@angular/core’; import { HttpClient } from ‘@angular/common/http’; import {
Continue readingHow to get the mac terminal to be using UTF-8 encoding on the new macs?
Issue i have searched other answers to this question and they all say to edit the .zshrc or .profile files however these do not exist on my system even with hidden files shown. I have a feeling there is a
Continue readingImplementing Google Analytics in Ionic 5 with Capacitor
Issue I am trying to implement the GA on an ionic project for days now without any luck. I need this to work in the browser (PWA) and Android platforms. Let’s start with what docs say: https://ionicframework.com/docs/native/google-analytics Capacitor: npm install
Continue reading`.gitignore` for an Ionic project with Android target
Issue I’m creating an Ionic project using Capacitor (edit: the newer recommended framework compared to Cordova) and added Android as a target. I’ve been able to build the app and add the Android target, which creates a bucketload of files
Continue readingIonic : Hardware Back Button Event Listener not executed when modal is open
Issue In ionic framework when the hardware back button is pressed the following event listener method is executed. document.addEventListener(‘ionBackButton’, (ev) => { ev.detail.register(10, () => { console.log(‘Handler was called!’); }); }); But when a modal kept opened then the above
Continue readingImplement Firebase Dynamic Links in Ionic / React.js application with Capacitor
Issue I’ve developed a React.js application with Firebase as the backend, we’re also using Ionic to deploy the application to android and IOS builds. We’re adding some native functionality using Capacitor at the moment and we’re having trouble implementing Dynamic
Continue readingJava – fix lambda expression either with version or conversion
Issue I am trying to add a custom capacitor plugin to my android app. Works for iOS, currently I am integrating it into android. I am no Java developer, my Java knowledge is fairly old. The build step of the
Continue readingIonic react splash screen is showing two times with capacitor
Issue I am a building android app using ionic react + capacitor I added the splash screens with their correct sizes but on app loading splash screens are displayed two times. Find below image, app splash screen displayed two times:
Continue readingCustom hook for Capacitor storage
Issue I’m trying to implement a custom hook, which extends the useState() by automatically saving the current state value in the Capacitor storage. In this case I’m struggeling with the aynchronus functions of the Capacitor storage plugin, which causes that
Continue readingCapacitor BackgroundTask Err: 'Cannot read property 'beforeExit' of undefined'
Issue I have set up a background Task as shown in the Capacitor Docs and i get this Error. https://capacitorjs.com/docs/v2/apis/background-task The Error occurs upon closing the Application TypeError: Cannot read property ‘beforeExit’ of undefined at Object.callback (main.js:76) at Object.cap.fromNative ((index):434)
Continue readingAngular + Capacitor: Swift Compiler Warning and Capacitor Keyboard not working
Issue Error Message I have set up my Angular app as Android and right now im working on the iOS part. So far my App is working but the keyboard doesn’t show. My Pods are installed correctly running on version
Continue readingIonic & Capacitor – Android Splash Screen Responsiveness
Issue Context This is related to the splash screen images responsiveness and according to my research it just happens because there is missing documentation at Capacitor Docs – Splash Screen. Problem The problem starts when implementing the splash screen plugin
Continue readingAngular + Capacitor: appStateChange listener not working
Issue To solve a KPI, i’m trying to generate a logEvent with the Firebase SDK when the user closes the Application (Ionic / Capacitor / Angular). But i’m having a lot of trouble trying to enter at that appStateChange listener
Continue reading