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 in my computer.
The Error I keep getting is the following.
No such module 'BRLMPrinterKit'
I'm building the plug in with
npm init #capacitor/plugin#latest
I follow the steps found in
How to embed third party framework on ionic capacitor custom plugin?
I was expecting to use the Brother printer SDK in the custom capacitor plug in. Any tip in how can I implement a custom plug in with any framework?
I don't know very well about ios plugins for ionic, but I recommend you to use this post to create the plugin step by step (I used it for android plugins):
https://devdactic.com/build-capacitor-plugin
I think you can use this other post to solve that specific issue: How to import framework into XCode project?
I know it's not the best answer, but I hope it helps.
Related
I'm trying to implement new Flutter plugin to wrap my native SDKs and use my native SDK directly and return the result.
I already finished the Android part by adding my library using maven and use it inside my Android module, but now I'm stuck on iOS part as the plugin code is just a pod that will be used at the end so how I can add my dependence via Swift Package Manager to the plugin pod and use it instead of going and add vendor frameworks. Is there any way to do that?
Currently you likely need to switch to CocoaPods.
Flutter does not support Swift Package Manager. See https://github.com/flutter/flutter/issues/33850
I am doing ionic application with capacitor.
I have to use https://ionicframework.com/docs/native/themeable-browser plugin for one funcationality but when I make build and upload to apple store app is rejected because of UiWebView issue.
Commands for installing themeable plugin
npm install cordova-plugin-themeablebrowser
npm install #ionic-native/themeable-browser
ionic cap sync
If I remove that plugin and upload it to apple build process pass successfully.
Apple no longer accepts new submissions using UIWebView:
https://forums.developer.apple.com/thread/122114
There is also an Ionic blog article: https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/
You can use Capacitor's Browser API, but it is quite limited compared to some existing Cordova plugins. However it is built around WKWebView and is therefore compliant.
There is AFAIK no alternative but to move to WKWebView if you want your app to be on the Apple App Store.
I assume you are using Themeable Browser instead of InAppBrowser because you need to customize the toolbar and other components. Unfortunately Themeable Browser is no longer a supported project. In InAppBrowser version 5.0.0 https://cordova.apache.org/announcements/2021/02/16/inappbrowser-release-5.0.0.html only uses WKWebView and you can now set InAppBrowserStatusBarStyle to "darkcontent". Unfortunately, other changes have to be applied manually. I succeeded for Android and I fight for Ios :-)
I want to integrate ABBYY Real-Time Recognition plugin in my Ionic 4 app.
Here is the link.
Their documentation is quite incomplete. Visited this cordova npmjs link also but go error while building android app.
Could not resolve all files for configuration
':app:debugCompileClasspath'.
Could not find :abbyy-rtr-sdk-1.0:.
Any help would be much appreciated thanks!
I get workout of it with doing below in project folder.
Download sdk from rtrsdk site and extract it.
You will find libs > abbyy-rtr-sdk-1.0.aar file on it.
We have to put it under platforms > libs > android > abbyy-rtr-sdk-1.0.aar
Now try to make build.
Please watch video tutorial for same.
https://www.youtube.com/watch?v=vIzZe8irmRs
I'm trying to convert an existing VueJS project to use Ionic 4 and Ionic Native plugins. It's my first time using Ionic 4 and it looks like the Ionic CLI only allows you to build Angular based apps so far. The Vue integration needs to be done manually.
The documentation I've found so far allows me to consume Ionic components but does not seem to be enough to properly setup Ionic in my project.
After going through the steps and finally adding Vue.use(Ionic) to my main entry point, running ionic --help still tells me that my project is not an Ionic project, probably because I do not have a ionic.config.json available at root level. I then run ionic init, this config file gets generated, but it is now telling me to provide the ionic:serve npm script so that it can serve my project ("type": "custom"). How can I setup all the required scripts that Ionic needs ?
I will need to have this setup to be able to add Ionic Native plugins, build my app on different platforms, etc.
I could not find any information so far neither in the docs, nor in here.
Does anyone have further information about this ?
I know it's a bit late but it can be helpful for someone else. I'm in the same situation, and yes, now it's possible. From ionic docs:
https://ionicframework.com/docs/intro/cdn#ionic-vue
I'm a web developer, new to Ionic.But I can't find out how can I update my app on the server,like a website,and without having user redownload the app.Is there any solutions?
Thanks!
There's an available plugin you can use Cordova-hot-code-push
This plugin provides functionality to perform automatic updates of the web based content in your application.Basically, everything that is stored in www folder of your Cordova project can be updated using this plugin.
supported platforms: Android 4.0.0 or above.
iOS 7.0 or above. Xcode 7 is required.
It has a great wiki too.
Yes, as of recently there is a solution for this. Ionic calls it Ionic Deploy, and you can see the official documentation about it here.
However, one must note that this is still in Alpha version and they don't recommend it for production, but since they're very apt in shipping new features, I'm sure this will be even production ready very soon.