Open undergroundcreative opened 2 years ago
I'm sorry, but I have no experience with downgrading plugins to make them work wirh capacitor 3. However, I recently upgraded my app from cap 3 to capacitor 4. I also expected lots of problems with the plugins (I use a dozen different plugins) but the upgrade was super simple and smooth as nearly all capacitor plugins have a forked version that supports capacitor 4. The upgrade 3 -> 4 seems to be way smoother than 2 -> 3 used to be.
Thanks, I decided to bite the bullet and upgrade but I've been struggling with a couple of forked plugins.
I've managed to get it to build and run with all plugins except one.
Slightly off-topic, but how would you install this fork/PR?
https://github.com/AppsFlyerSDK/appsflyer-capacitor-plugin/pull/30
I can install it with:
$ npm i appsflyer-capacitor-plugin@github:Ejobs/appsflyer-capacitor-plugin
But when I do npm run build I'm getting:
Cannot find module 'appsflyer-capacitor-plugin' or its corresponding type declarations.
There's no dist folder..
I think it's best to check it out as a git submodule. Create a dependencies folder, then inside this folder:
git submodule add git@github.com:AppsFlyerSDK/appsflyer-capacitor-plugin.git
npm install
npm run build
Then inside your app folder: npm install file:dependencies/appsflyer-capacitor-plugin
Plugin with support for capacitor 3: https://github.com/nowjobs/capacitor3-plugin-android-post-notifications-permission
Thanks @hermitdemschoenenleben for the code!
Hi, thanks for the plugin!
I'm using Capacitor 3.3.3 so this won't install for me. I don't want to risk breaking my app by migrating to Capacitor 4 so I wondered how to get this working with Capacitor 3?
I've tried cloning the repo and changing the dependencies in package.json and package-lock.json to
"@capacitor/android": "^3.3.3", "@capacitor/core": "^3.3.3",
Then "installed" using:
npm install file:///Users/[username]/Apps/[appname]/scrap/capacitor-plugin-android-post-notifications-permission
But no joy when I try to import using:
import {AndroidPostNotificationsPermission} from 'capacitor-plugin-android-post-notifications-permission';
I'm getting:
Cannot find module 'capacitor-plugin-android-post-notifications-permission' or its corresponding type declarations.ts(2307)
In the node_modules folder, I can see an alias to the source folder. I tried deleting this and copying the source folder but still no joy.
Any help would be much appreciated! I'm hoping to stick with Capacitor 3.3.3 for now as I have loads of plugins that might break the app.
Many thanks,
Sean
Ionic info:
Ionic:
Ionic CLI : 6.19.0 (/Users/seanwilson/.nvm/versions/node/v15.1.0/lib/node_modules/@ionic/cli)
Capacitor:
Capacitor CLI : 3.3.3 @capacitor/android : 3.3.3 @capacitor/core : 3.3.3 @capacitor/ios : 3.3.0
Utility:
cordova-res (update available: 0.15.4) : 0.15.3 native-run (update available: 1.6.0) : 1.5.0
System:
NodeJS : v15.1.0 (/Users/seanwilson/.nvm/versions/node/v15.1.0/bin/node) npm : 7.5.2 OS : macOS Catalina