Questions tagged [capacitor-plugin]

178 questions
17
votes
9 answers

Capacitor 3.0 Upgrade Plugins "not implemented" Exception (Nx Monorepo)

We use Angular in a nx monorepo in which we have been using Capacitor 2.4 for half a year now. We only use the android platform as of now. Now, we need to upgrade to Capacitor 3.0. The app itself is running again, however, as soon as I use any…
irispoe
  • 191
  • 1
  • 1
  • 6
13
votes
7 answers

Capacitor v3 plugins not working on android build

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 - Msg:…
legomolina
  • 1,043
  • 2
  • 13
  • 33
7
votes
0 answers

No podspec found for `package` when adding iOS project to existing Ionic 5 project

I built a Capacitor plugin for Ionic and Capacitor and published it to NPM - call it test1. I then use it in my Ionic 5 project and successfully add a new Android project via: ionic build ionic cap add android ionic cap sync Tested it and it…
Tim
  • 91
  • 1
  • 5
6
votes
3 answers

Share files with capacitor share plugin

I need to share a PDF file. I am using CapacitorJS for native functionality. let shareRet = await Share.share({ title: 'See cool stuff', text: 'Really awesome thing you need to see right meow', url: 'http://ionicframework.com/', dialogTitle:…
johnbraum
  • 276
  • 4
  • 18
5
votes
0 answers

Login using Azure from a Capacitor built app opens a new login window outside the app

I am using capacitor 3.0 to build a native iOS app with React. The app's user is expected to login first. I want the user's login to be handled by Microsoft Azure ActiveDirectory B2C and followed this tutorial to set this…
user716222
  • 279
  • 1
  • 2
  • 5
5
votes
2 answers

how to disable screenshot in capacitor plugin only for few pages not for entire app

it's an ionic capacitor angular project in which I am trying to build a capacitor plugin so that I can disable screenshots only for required pages/screens. I have used getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,…
Yaseen
  • 101
  • 2
  • 7
5
votes
1 answer

Where to add GoogleService-Info.plist for Capacitor

I found a lot of related questions, but none about the specifics for Capacitor. When it comes to Capacitor, do we need to add GoogleService-Info.plist to: ios/App OR ios/App/App The Firebase console says this...
mesqueeb
  • 5,277
  • 5
  • 44
  • 77
4
votes
1 answer

Custom capacitor plugin fails with pod dependency

I'm writing my own capacitor plugin based on https://capacitorjs.com/docs/ios/custom-code https://devdactic.com/build-capacitor-plugin/ but adding it to my main project with npm install ../MyPlugin fails npx cap sync with ✖ Updating iOS native…
El Dude
  • 5,328
  • 11
  • 54
  • 101
4
votes
2 answers

Unable to open PDF files in app view in Capacitor Ionic

import { Plugins } from '@capacitor/core'; const { Browser } = Plugins; Browser.open({ url: 'http://www.africau.edu/images/default/sample.pdf', windowName:'_self' }); When the url is specified as a link to a website, it works fine but doesnt when…
richa Singh
  • 435
  • 2
  • 5
  • 10
3
votes
0 answers

Clarifications on @capacitor/filesystem Directory enum

I am working with @capacitor/filesystem package and struggle with picking directories for specific purposes. The package has the following enum defined: export declare enum Directory { /** * The Documents directory * On iOS it's the…
3
votes
1 answer

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 undefined even when the device is showing the…
BillPull
  • 6,853
  • 15
  • 60
  • 99
3
votes
1 answer

Capacitor Geolocation.getCurrentPosition is very slow in IOS. Is there any other solution available?

I am using capacitor geolocation plugin to find current location coordinates(latitude and longitude). const coordinates = await Geolocation.getCurrentPosition({enableHighAccuracy:true}); const center = {lat: coordinates.coords.latitude, lng:…
3
votes
0 answers

How to use Android File Chooser througth a Capacitor custom Plugin

I'm trying to develop a File Chooser for an app developed in Ionic, the intention of this function is to read big files. I tried using Capacitor plugin, however the app crashes with files above 25mb, depending on cell phone. Through Memory Profiler…
3
votes
1 answer

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 well as setting the CSRF token via cookies. The…
BillPull
  • 6,853
  • 15
  • 60
  • 99
3
votes
1 answer

Ionic 5 - Lock Screen Orientation for Ionic/Capacitor Application that will be on Android/iOS

I'm trying to figure out how to lock my Screen Orientation for the entire application, so when it's deployed to Android/iOS, it is only used in its portrait mode. I see quite a few questions asked and answered using Cordova and the config.xml. But I…
1
2 3
11 12