How to run a function which calls an api when the app closes?
To run a function when your app closes, you can use lifecycle methods. For example, in Android, use onStop() or onDestroy() to call your API. In iOS, you can use applicationWillTerminate(). Make sure...
View ArticleIOS : Ionic @capacitor-community/bluetooth-le issue during connection with...
Hi twestrics, Below is my code for connection to connect device await BleClient.connect(r.id,async () => { console.log("disconnect >> ",r); }); please check above code and let me know if...
View ArticleWhere to import ionic components in standalone angular component
import { Component, OnInit, inject } from ‘@angular/core’; import { ActivatedRoute, Router, RouterLink } from ‘@angular/router’; import {DataService} from ‘…/service’; import { HuobiPipe } from...
View ArticleFetch of mp3 succeeds but with http status zero not 200
using capacitor 6.2, deploying via xcode to ios device. A simple fetch for a local resource such as fetch("/public/C4.mp3", { method: "GET" }); produces a result with http status 0 instead of 200. The...
View ArticleLooking for Capacitor / Appflow Developer - Freelancer
Hello Matthias, This is Jay from Moon Technolabs! As discussed, We’d love to help you migrate your Cordova web app to Capacitor via Appflow. Our process involves assessing your current app, planning...
View ArticleIonic Capacitor on Azure DevOps Pipeline
you can build an Ionic Capacitor app in Azure DevOps. For Android, use Gradle or Android Build, and for iOS, you’ll need a macOS agent with Xcode. Set up the pipeline to install dependencies, run...
View ArticleCapacitor background runner not able to locate the src file
I am not able to successfully run the @capacitor/background-runner plugin in react as it is not able to locate the runner file whose path we give in the config file of capacitor. It says to give...
View ArticleHow to run a function which calls an api when the app closes?
Can you share the way to access these said lifecycle methods.
View ArticleLooking for Capacitor / Appflow Developer - Freelancer
Hi, I have experienced in building and changing apps. I would like to hear more about the existing app before sharing any suggestions. Please provide the same. Thanks
View ArticleFetch of mp3 succeeds but with http status zero not 200
Are you using Capacitor HTTP where it is intercepting your fetch calls? Also, why are you fetching the mp3 instead of just using a normal HTTP path?
View ArticleWhite Screen After Splash Screen on iOS
Hi everyone, I’m encountering an issue with my app on iOS devices. After the splash screen, the app shows a white screen and doesn’t proceed unless I close the app and reopen it. I’ve already adjusted...
View ArticleFetch of mp3 succeeds but with http status zero not 200
Not using the capacitor http package. That said, I see from network inspection that my request is processed as “capacitor://localhost/C4.mp3”. It’s my understanding that it works that way regardless...
View ArticleFetch of mp3 succeeds but with http status zero not 200
You can disregard my second question since you are trying to get the actual bytes of the file for further processing. As a workaround, maybe just store the byte array of the mp3 directly in your JS? I...
View ArticleFetch of mp3 succeeds but with http status zero not 200
Thanks. I was just looking at WebViewAssetHandler.swift. Here’s what I determined: Various file extensions, including mp3, are identified as media files (function IsMediaExtension If it’s a media...
View ArticleIOS : Ionic @capacitor-community/bluetooth-le issue during connection with...
We had a similar issue in one of our customer projects and were able to solve it in @capawesome-team/capacitor-bluetooth-low-energy. Feel free to check it out.
View ArticleLive reload repeats infinitely after upgrading Ionic and Angular
thanks @lazmeister! Unregistering the service worker fixed the issue for me.
View ArticleCSS Variables not defined in ion-modal
Hey @matheo84, I ran into the same issue but I discovered that if you wrap your component with a div then it works. Not sure why but it does for me. e.g. <div> <comp>component with CSS...
View ArticleIsolate ionic styles
I want to use ionic in existing project and basically i want to use only some components of ionic, mostly pages related and navigation. I follow this guide to add it to my project Adding To An...
View ArticleHealthkit integration suggestions?
Hello, I want to integrate healthkit reading into my app, just basic calorie reading, how would u go about it, I found cordova health plugin (GitHub - dariosalvi78/cordova-plugin-health: Cordova...
View Article