Integrate third party android SDK in ionic v2 - android

I am using a third party android SDK for some functionalities (card reader, QR code scanner), I am able to use it in the native Android app, now I want to create a hybrid app on ionic and I want to use that 3rd party library.
Thanks in advance.

So finally I got the answer and it was pretty straight forward
If you have exported your module / plugin like
module.exports = new YourPluginJavaClass();
then you will be able to use it in your Ionic application as
(window as any).YourPluginJavaClass.yourFunction();

Related

Integrate Android and iOS libraries in flutter

I want migrate my application to flutter, and i have now two versions (Android and iOS) of this application, for Android i have a third party library (Jar file) and for ios the same library (Framework file), the issue here is that i want to use flutter but i'm new with with it, so i want to know how to integrate the libraries for both plateforms, is there any way to do this ?
NB: The both libraries use bluetooth and for Android in addition we have Wi-Fi.
Thank you in advance.

How can i add my custom cordova plugin in my android App?

I have a native android sdk which uses phone camera. I want to add a custom cordova plugin so that i can use that android code for web as well using plugins(google suggested it can be done). can someone please suggest me how it can be done?
I am able to create plugin but not able to add it to android code.
And from googling it is suggested that for that i need to create a cordova project first. I made a cordova project for testing purpose added platforms as-android, ios.
But I'm unable to get even the layout of that project so that i can even edit.
I have my native android code, please suggest me how can i add a cordova in native android project.

Is there a way to use android application functionality on cordova?

I have two applications one is running on android java,the other one is a cordova application. I need to use the android functionality on the cordova app. is therere a workround to this? I have been scratching my head for a week.
I have looked into Android plugins but i don't really know how to glue them together. I know Cordova can communicate back and forth with native code. But since i am an android developer and i have little idea on how cordova works with plugins Am Stuck with just my plain Android App built on java.
If you have a custom requirement, then your best shot is creating a plugin for Cordova which is well documented in the cordova docs. It will guide you on how to build as well as publish a plugin for Cordova.
Once you publish a plugin, you can add it using
cordova plugin add <plugin_name>

How to create a cordova plugin for my android library?

I have developed an android library using which one can send messages to other android devices. I have developed many demo apps for mobile and watch to demonstrate this using native android projects. Now I want to explore hybrid android development. I want to know how a native android code can access my android library and use the functionalities.
I have come across custom Cordova plugins. Is it possible for me to build a Cordova plugin for my android library? If yes, can I then use it in a hybrid project and access the functionalities? If not, what is the best way to do it? Thanks in advance.
To answer your 2 important questions:
1. Is it possible for me to build a Cordova plugin for my android library?
Yes, it's possible to create a custom Cordova plugin for your library. That's how all the Cordova plugins are dependent on the base Android library.
2. can I then use it in a hybrid project and access the functionalities?
Yes, you can.
Some are the links that might be helpful to create a new custom Cordova plugin.
https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/
https://cordova.apache.org/docs/en/2.5.0/guide/plugin-development/android/
https://taco.visualstudio.com/en-us/docs/createplugintutorial/

Can I build Android apps with react native?

The recently launched react native features just iOS app example and docs.
Yes.
React Native for Android was released September 14th, 2015.
Docs: http://facebook.github.io/react-native/
No. You can't build Android apps with this release.
Facebook has indicated that they are working on an Android version, and famously said "give us 6 months", which some people have taken as a promise. I wouldn't base any important business decisions on the illusion that it will be unveiled when the 6 months is over, but you can at least take some hope in the fact that they're serious about making it production-ready before they give us access to it, and that it's not just a pie-in-the-sky hope.
Also, as others have pointed out, Facebook has already release apps that they've built with the Android version of React Native. So at least parts of it are ready for prime time.
UPDATE
Early support for React Native for Android has been pushed to GitHub!
As noted, there are several things that are currently not working if trying to port an application from iOS. But it's worth checking out.
https://github.com/facebook/react-native/commit/42eb5464fd8a65ed84b799de5d4dc225349449be
It is not aiming to be a cross platform, write-once run-anywhere, tool. It is aiming to be learn-once write-anywhere. -Colin Eberhardt, from Raywenderlich
Good news is that React Native for Android is finally here. (https://code.facebook.com/posts/1189117404435352)
while you can't do it right now, it shouldn't take that long.
The first React Native Android App has been published about two weeks ago in the play store as tweeted by the reactjs twitter account:
https://twitter.com/reactjs/status/615638361328349185
Great news! Now its possible!
"And so it happens, the commit we're waiting since about 6 months!" - usereact.com
Please read more on: http://www.reactnative.com/react-native-for-android/
Watch this video: https://www.youtube.com/watch?v=MNNR01NF290
I've tried out Facebook react native on Android and it really worked.
Simple Ubuntu install guide can be found here
Simple js files: link
Yes , We can now developed android apps too in react-native.
and some of the apps are already developed in react-native for android
suchs as:
1)F8
2)Facebook ads manager
3)Squad
4)Discovery VR
5)Ziliun etc..
and many more still counting.
Developers from around the world now opting react-native for mobile app development because of easy of use of JSX syntax.
and also it is commonly noted as simply the V in MVC.
Since React makes no assumptions about the rest of your technology stack, it's easily embeddable within an existing non-React Native app.
TLDR; Yes,
Detailed answer (As of November 2017)
React Native android application development is very stable and a good number of Android applications have been already built and used in production using React-Native.
You can find a showcase of applications here. Most of them have both IOS and Android versions.
You can also easily integrate your native Android java code to react-native. Refer here
As a developer who is building Android app using react-native with a lot of native java code dependencies, react-native runs stable and I found the documentation and community support is adequate.
Yes, it works for both the platforms ios and android, be sure to mention code entry points in app.js if it uses different code for different platforms. However native functions like native events or location manager need to be coded in native languages and then exported using RCT_EXPORT, you can find more about it in the docs
Sure,
Using React Native you can build real mobile app. real app means close to platform or simply can say 99% native app.react native provide easy way for building native android app using javascript for lucrative design.You have basic knowledge of android studio and error fixing in android studio related native module integration and good understanding of react.js then you can build android app using react native.
Basic Requirement for android app
1. Configure android studio please follow below link and avoid installation of python.
https://facebook.github.io/react-native/docs/getting-started .
2. for UI you will learn flex-box from official documentation.
I thing that is enough
Yes, not just with android but also with iOS using XCode
Yes, you can make real-world mob application with React-Native. React-Native is used to create a hybrid mobile application. In this, we write code in javascript which gets converted to swift for ios and java for android.
Yes, You can build the Android app using React Native. For this, you have to install Android Studio with all the required SDKs. You can run your React Native app in Android simulator by using Android Studio and command line both.
For command line, run the following command:
react-native run-android
Otherwise you can open the android project in Android Studio which is created by React Native in android folder and run the project from there.
Happy Coding.. :)
Yes, you can definitely build android apps using react-native.This is one of the great benefits of React Native. Before Facebook created it, you had to build your app twice and with different code : one for iOS using Swift or Objective-C and one for Android using Java or Kotlin.

Categories

Resources