Is ARCore compatible with Ionic? - android

I want to create an AR app and read on the internet that ARCore is one of the things to work with. I previously tried basic app devolpment with Ionic and was pretty satisfied with it.
Therefore I was wondering if it is possible to integrate ARCore into an Ionic app (e.g. in an AR-tab)?
I found this answer on stackoverflow but it is just considering Xamarin and not Ionic...
I also found that it should be possible to integrate ARCore into Android (Java/Kotlin - which both could be used with Capacitor). But I am not really sure how (new to this topic) - can the ARCore elements just be copy and pasted to the desired tab inside my Ionic project?

you can use Wikitude SDK for AR App .. its support ionic follow this link below :
https://www.wikitude.com/download-wikitude-sdk-for-cordova/

Related

Is it possible to embed a Unity game into a Flutter app?

I am creating an app that will require small mini-games as a menu option, and I have created these games in Unity. Ideally, I would like to embed these games into a Flutter project. I have seen tutorials on doing this with Java and Android Studio, and I need to make a decision on which platform I will be using for my internship project. I have several questions about the SDK, but I have posted them separately to keep the answers distinct (and help filter out the noise for anyone searching for these specific answers), and this is one of my main questions.
Specifically, I am following this guide: https://medium.com/#davidbeloosesky/embedded-unity-within-android-app-7061f4f473a
for Android Studio, and was wondering if something similar was possible with Flutter. I am also using Android Studio as my IDE for Flutter, but need to decide if I should stick with Java, or switch to Dart and Flutter (which actually works much better for specific UI elements I need).
If not, is there another way to package a Unity project and a Flutter application together?
You can imagine the whole Flutter app to be rendered on one view of the final native application. It can coexist with native views. So it should definitely be possible to display a native Android/iOS view with Unity content and trigger that from Flutter.
Create a Flutter project and open the Android native part of it (right click the android folder in Android Studio, choose Flutter -> Open Android module).
Create a native Android view there and use platform channels to display it.
Add Unity content to the native view.
https://flutter.io/platform-channels/
As of May 2022, I would like to share an updated information for mobile app developers who are researching this interesting issue. The reason I'm writing this answer is because there was so many development tasks that need to be done before I get the right answer to the above question. A developer researching this subject should work in both Unity, Android Studio and Xcode in order to find a definitive answer to his/her question, and should also know how to develop mobile apps with Flutter. Honestly, if everything had not gone well, my long time development works might have been wasted. In addition to my answer, I would like to give also positive news on the side of Augmented Reality developers who are using Vuforia and investigating the same issue.
Using the magnificent https://github.com/juicycleff/flutter-unity-view-widget repo; in your mobile app developed with Flutter, you can run the game you developed with Unity or the AR app you developed with Unity + Vuforia. You can use the app you developed with Unity, in the Flutter App you developed. They can also communicate each other in the Flutter App. You can pass parameters from your Flutter App to your Unity application in the Flutter App, and you can also pass parameters from your Unity application to the Flutter App. This means, you can pass parameters from your Flutter App's Dart code to the C# code of your Unity work and vice versa. For those who develop AR Apps with Vuforia, I would like to point out that for the scenario I am working on, I use Image Targets. I have same experience on the phone, with the Unity APK and Android Studio APK, they are in the same stability. Of course APK sizes are different, Flutter App APK size is of course bigger than Unity APK, but in my case this is absolutely ok.
As of May 2022, the answer to the above question is: Yes, you can. Moreover, for those who develop AR Apps in Unity using Vuforia, the answer is also: Yes, you can. I wish success to everyone who will start working in this scenario. Since it is a detailed subject, some difficulties are waiting for you on the way, but if you can see that the product you dream to achieve will be a stable Flutter App, with all the nice features, I am sure that you will find the enough motivation to bring all of them together. Good luck.

Want to create a plugin in Cocos2d for my SDK

I have created an SDK, currently its for both Android and iOS.
But now i also have to give the support in cocos2d platform.
Does any one how to achieve this?
I already have working this SDKs working in native.
But i am going through the some blogs but cant find any easy tutorial of a documentation or blog to do that.
One thing i know that it requires the knowledge of NDK and JNI, which i have very less knowledge of it.
So can please anyone guide me or give me some link or tutorial about how to create an extension in cocos2d for my SDK.
Thanks.
First of all, I very much agree that finding some thing w.r.t. cocos2d is pretty tough! :)
Having said that, here are some pointers/information on how you can take this forward.
Android Native Development Kit (NDK)
Android apps are typically written in Java, with its elegant object-oriented design. However, at times, you need to overcome the limitations of Java, such as memory management and performance, by programming directly into Android native interface. Android provides Native Development Kit (NDK) to support native development in C/C++, besides the Android Software Development Kit (Android SDK) which supports Java.
An amazing and yet simple article with code examples can be found on Android NDK
Best place to start off with NDK JNI(considering you know what they are basically)-
Sample: hello-jni is the best place to start off with code at Github
Advanced Android: Getting Started with the NDK
It's better to start off by kicking off with some basic learning of Cocos2D-X-
Cocos2D-X Tutorial for iOS and Android: Getting Started
The Completest Cocos2d-x Tutorial & Guide List - Stackoverflow link
Some perfect references for plugin development-
How to use plugin-x in android
Plugin-x Architecture
How to write your own plugin for android
PluginX IOS IAP Integration
Third Party SDK Integration
Earlier there was a way to Integrate 3rd party SDK into Plugin X, but, recently I see they have moved away from this approach and are using SDKBOX which is supposed to simplify the same.
Here is the best and probably only good reference that we can get for now from the cocos2d official programmersguide.
"SDKBOX is more like a upgraded version of plugin-x, so in short it's just a plugin it's not something runs on a cloud. the reason it starts is because we want to provide a better plugin integration solution for cocos2d-x, but the fact is plugin-x always gets the low priority compare to other shinning new 3D features, so we decide to change that." - Cocos2d-x developer said.
But, SDKBOX is where they develop plugins for you. I think its something like npm for nodejs.
Anyway, Some reference web links that will help you even more-
How to setup Cocos2d-x (Windows and Android)
cocos2d-x (iphone-android)/IDE installation and setup under mac os
How to set up the Android Cocos2d-x development environment on Windows 7
External Tutorials - Contains a bunch of helpful articles & tutorials.
**Helpful Examples ** to learn SDK development or support from-
Integration with Flurry Analytics SDK
We use Google Analytics with cocos2d-x extension
Countly SDK for Cocos2d-x apps
Cocos2d-x Extensions - Github repo
cocos2d-x-extensions - Another Github repo
List of Open Source Cocos2d Projects, Extensions and Code Snippets - Old but helpful
**Articles on SDKBOX ** which may help you if you looking for officially hosting your SDK-
Cocos2d-x Solves SDK Fatigue with New SDKBOX Initiative
The Best Way to Integrate SDKs into your Mobile Game
Hope it helps! :)
Happy Coding!

Integrate Unity3D with Vuforia into Cordova app

We have Cordova application that displays content from a back end CMS system and now client wants to implement Augmented Reality modeule to this application which is going to start after click on menu item in Cordova app.
We found a good way to do AR using Unity3D with Vuforia extension. Wikitude unfortunately does not support functionality that we need achieved in Unity.
Problem is that there is no plugin for Cordova that supports Unity project integration.
Is it possible to create plugin like that?
My idea: Export Unity project as Android project, make Cordova plugin with all the binaries Vuforia is using (is it possible?) and from Cordova app call Intent that opens Unity activity. Then do similar thing for iOS.
Thanks in advance and sorry for my bad english :)
It is definitely possible to make this work. It is by no means trivial though. I've just released a Vuforia-based plugin for image recognition onto NPM and Cordova.
https://github.com/thisisbd/cordova-plugin-vuforia
It should be possible to build what you are looking for either on top of this or using this as an inspiration piece.
One thing I would say is that what you are looking at is a fairly large undertaking and should be treated as such. I'm hoping the cordova-plugin-vuforia repo will help you with what you are trying to achieve.

Opentok module for Titanium SDK that supports both Android and IOS?

I am developing a mobile application using Titanium SDK. This is my first mobile app. Most of the app is done successfully. The only module that remains is Video conference support. The company I am working in has chosen to use Opentok SDK. I finished the web application and it works fine. Now I've hit a wall in mobile app and can't move further. The problem is Opentok provides a module to use for Titanium, But it only supports build to IOS not Android. The reason we chose Titanium is for cross platform support.
Is there any module available to use or any other way to implement Opentok with Titanium that builds into both Android and IOS.
I have already tried using a WebView to open the conference module of web application. But bad luck, Opentok only works with chrome browser in mobile. But WebView utilizes native stock browser which does not support WEBRTC. So, opentok doesn't work with webview too.
Please help me. This is my first app and I am stuck at this point.
To Create a Module for OpenTok Android:
These are the steps I would follow.
Create a new Android module: titanium.py create --type=module --id=com.tokbox.ti.opentok --platform=android --name=opentok-titanium
Follow the installation instructions from OpenTok for Android. (Hint: I added a separate section down below to help you get through their instructions.)
Make sure the module runs: ant run.emulator or ant install.
Try running their sample, fully in JAVA, completely separate from Titanium. Make sure it works, and you know what it should look like. Then, figure out what exactly you need from their API. Or, if you're feeling ambitious, decide you want everything. Work to strip down the example to just the surface area that you need. Simplify it down to the least number of files you feel makes sense.
Write an example/app.js that demonstrates how you want the module to be used. For example, maybe you'd start off by requiring the module, then setting some API + Session keys, then calling some API, etc.
Based on the documentation, port what you need in to your module. Reference the Appcelerator Android module dev guide and open source Android modules for inspiration.
Write documentation for the module to specify what the various properties, methods, etc are, so that other developers can figure out how to use the module.
When you're done, submit a PR to OpenTok and revel in your creation and contribution.
Some Hints for Step 2:
.jar files go in lib/.
.so files go in platform/android/libs/armeabi/
Permissions go in timodule.xml, and you can see an example in the open source PayPal module for Android
OpenTok does not work with WebView. OpenTok support for Titanium Android does not currently exist because it is currently in beta and we don't currently have engineering bandwidth to build a Titanium Android integration. However, if you are familiar with Titanium, you are more than welcome to add the integration yourself and send a pull request. You can get the Android beta here and you can get titanium source code here
If you are in a hurry and open to trying other frameworks, our PhoneGap Plugin currently supports both android and ios.

How the html5 works as a cross platform?

I am currently looking for a cross platform technolgy for my Android App, I come to conclusion of HTML5,I tried some sample code and some Native applications using PhoneGap.
I'm little confused about Native Application(Using PhoneGap),It Uses .java files for writting plugins for Android, now if I want to develope same App for Windows,should i need to create new plugins for windows phone?.
(I'm working on NFC project in android.The plugins for NFC in android are available at
http://phonegap.com/2011/09/26/building-an-nfc-enabled-android-application-with-phonegap/
)
Yes. You will need to create plugins for different platforms that you use. You can use the base set of API's everywhere but if something does not exist, then you'll have to create a plugin for it in the platform's native language. You can contribute these plugins as open source back tot he community so others can use it as well.
See the plugin development guide here:
http://docs.phonegap.com/en/2.1.0/guide_plugin-development_index.md.html

Categories

Resources