Dart with native mobile libraries calls - android

I'm considering to start project using Dart for the front-end development on the mobile platform. Basic idea is to use it for the UI and develop platform specific solutions using native mobile sdks. So it leads me to the several questions:
Can Dart with StageXL provide good performance for the UI components on the mobile platform ?
Is it possible to make external functions call to the custom mobile framework ?
Sharing of any hands-on experience highly appreciated.

What do you mean by custom mobile frameworks? You can make calls to JavaScript if that is what you want. You can create Chrome-packaged-apps
Maybe this is what you are looking for:
Getting Started With Dart and Cordova From Scratch on iOS
Rikulo - Build Native Mobile Application

Related

Native app for Android and iOS. Little Javascript knowledge. NativeScript? ReactNative? Other ideas?

I need to develop a native app for both OS.
This would be a simple app, not too complex.
What would you recommend for me to use? I only have little Javascript knowledge. Don't know anything about React or other frameworks.
Thanks in advance for your help.
I would recommend NativScript if you know JavaScript as for Flutter you need to learn Dart.Here is the comparison I posted for NativeScript and Flutter.
I use Nativescript with Angular but you can use plain JS as well.
Another reason to use Nativescript is theier marketplace and if you use some pre-built plugins, the time for building of NativeScript applications will be decreased
Hence you are Looking to develop application for both android and ios with java script
You could use following tools / frameworks
phone gap
as and option you could use
ionic
these could be best if you don't prefer react native or native script
else if you are okay with angular and jquery then
mobile angular
jQuery Mobile
also you can drag and drop themes with ThemeRoller jQuery Mobile
these above mentioned tools / frameworks has huge amount of tutorial in you tube and other blogs (my personal choice would be ionic / phonegap)
NOTE:
**phone gap free for personal use
**others are completely free
For both OS, i would recommend Flutter, open source mobile application SDK developed by google.
Flutter is Google’s mobile app SDK for crafting high-quality native
interfaces on iOS and Android in record time. Flutter works with
existing code, is used by developers and organizations around the
world, and is free and open source.
For more information on flutter ,see flutter.io
For flutter examples here

Android and IOS application cross-platform development

I have to develop a simple application for Android and IOS (Gui with use standard android/ ios components - both have equivalent components for what I want use). So I'm looking for a cross-platform solution that can make it easier. I found nativescript with angular and react native. Both look cool and I read a lot of positives and differences between them. Now I prefer nativescript with angular because of pieces of code in angular which I can use in web.
Here is but:
But I need be able to send some bytes via wifi (not to web or via http). And I can not find a solution for it. It's easy to do it in native app development. So is it some option to call java code from native script or how can it be done?
Or is in this case is better / only way to achieve it use native app development?
Thank you for any answer.
EDIT: I found manual to create native plugin and it works:
https://www.nativescript.org/blog/plugins-and-jars
For react it is pretty easy, you can wrap any native code within a react module. Have a look at this documentation page: https://facebook.github.io/react-native/docs/native-modules-android
For native script you access native APIs via JS code, see here: https://docs.nativescript.org/core-concepts/accessing-native-apis-with-javascript
I know Cordova isn't in question, but having a big chunk of work done in Angular for web, you could take it into consideration too. Integrating any native functionality/sdk is super easy with Cordova.

Which Multi-platform app development framework is better for background service/synchronization on both Android and iOS?

I am looking for a Multi-platform mobile app development framework.
Key features i require are:
Support for Background Services for synchronization
Database support
Which frameworks are better suite for these?
My research comparing React Native and Xamarin so far says that react native used more often in industry and has more developer support available but officially they only have 'headless-js-android' for Android for running services. Xamarin on the other hand has the support for running services on both platforms.
I need some guidance from someone who has worked with both technologies.
Thanks.
The following is a list of multi-platform mobile apps development frameworks:
Adobe PhoneGap: https://phonegap.com/
Appcelerator Titanium: http://www.appcelerator.com
Sencha Touch: http://www.sencha.com/products/touch
Ionic: https://ionicframework.com/
Sinpalm: http://www.simpalm.com/services/sencha-touch-development-developer
Check them out and let me know which one got your attention.
This is an oversimplification on the way they work:
They allow you to create a user interface with HTML5 and JavaScript.
Then, via JavaScript injection, they provide you with a standard API framework.
This JS API framework is a common interface to both Android and iOS. Therefore, you only focus on coding against the JavaScript API framework. Behind the scenes, they have libraries that will execute this API in the respective device.
Most of them allow you to use the database and other features provided by the respective OS (Android/iOS). You only need to check which supports the feature you need better.

Cross-platform advice Android / iOS / Windows

I'm maintaining a plethora of apps for one of my clients all of which have native projects for each of the three main platforms. The apps are relatively simple in functionality. My client wants to always take advantage of the latest features in each platform for marketing opportunities. They also want to appear to be a native app (responsive, not laggy). I haven't followed cross-platform development very much lately, so that's why I'm reaching out to SO.
My initial idea is to write a C++ library that has all the functionality shared by the three platforms. Then, for each platform, I'll write some network, file access, and UI-code that connects the abstract library code to the concrete platform.
Of course, this is exactly what cross-platform systems aim to do. Would it be a waste of my time to write the above myself when this has already been done by platforms like PhoneGap? My concern is that I would be dependent on a third-party. If I write the code myself, I have full control, and I will always have access to the latest features.
Hope to get some pro's and con's.
Thanks!
Yet a third option (after Facebook's React Native and Microsoft's Xamarin) is Google's new Flutter and as the other answers suggests "then writing the Windows app purely natively". BTW, React Native does have Windows support the lack of which in Flutter could be a plus or a minus depending on how you look at it.
Have you considered using React Native for iOS and Android, then writing the Windows app purely natively?
There are tons of articles out there about pros and cons for React Native.
PhoneGap is just a web, written in HTML, CSS and JavaScript. React Native actually renders native components for iOS/Android.
There is also Xamarin. It supports multiple platforms and uses c#. The new features from the native languages all work great.

Is it possible to develop Hybrid mobile applications using Java + (Cordova/Titanium)

I am hoping to develop a cross-platform image manipulation application for Android and iOS. I was thinking of using a development framework such as titanium mobile or Cordova but i was unable to find any image manipulation / processing library for them
I just want to know the possibility of developing the core image manipulation part using Java/ObjectiveC for the specific platforms and develop a common crossplatform front end using Titanium/Cordova
Is it possible to develop Hybrid Mobile applications using development frameworks such as titanium or cordova(phoneGap) while still having a part of code written in Java
Yes. its possible. if you are going the PhoneGap route, you need to create a PhoneGap plugin for this: http://cordova.apache.org/docs/en/2.4.0/guide_plugin-development_index.md.html
Once you create the plugin, you can invoke your native methods using Javascript.
Creating plugin for Android: http://cordova.apache.org/docs/en/2.4.0/guide_plugin-development_android_index.md.html#Developing%20a%20Plugin%20on%20Android
Creating Plugin for iOS: http://cordova.apache.org/docs/en/2.4.0/guide_plugin-development_ios_index.md.html#Developing%20a%20Plugin%20on%20iOS
Both PhoneGap and Titanium let you do this. The title of this question seems to imply you want to do JAVA development for iOS, which isn't possible (at least not with Titanium or PhoneGap).
Titanium has a development guide on how to extend the platform:
http://docs.appcelerator.com/titanium/3.0/#!/guide/Extending_Titanium_Mobile
It links to articles particular to iOS and Android.

Categories

Resources