Let's consider this use case:
I have an already developed app in android and iOS which is out here for a while. I would like to implement a library/package in Flutter that could run on Android and iOS projects. Let's say I want to store some data in the flutter part, trigger some events, and so on. I might not want to show any screen from flutter just a logic part would be here. Is it currently possible to do something like that? Just to reduce the effort to implement it natively in iOS and Android
Related
My goal is to create app on Android/Windows using MAUI, and as I want to be able to add to this app more functionality by plugins, I want to create some simple plugin system.
This plugins should be able to subscribe to domain events, add components (like menu items and "pages" components that will be shown in app after menu click), communicate with each other.
So, is there any way to do it cross-platform?
If it was only windows, I would just create plugins dlls, on app start up I need to load them, find every IPlugin or similar, initialize them, etc.
But where to store it on Android? How to compile/load this plugins on Android? (and in future not only Android, but iOS & Mac too)
P.S. I'm super new to MAUI stuff, and need to learn a lot, so appreciate full answers
P.P.S. Not a native English speaker, sorry for mistakes
I have notification which has buttons. On a button click I want to call an API and just patch its value.
Its something like Whatsapp reply where we don't want the app to launch.
I know we can write native code for android and ios seperately. But it would be really great if i could run a snippet of dart code.
Since you have only asked if you can, yes you can. We did it in our android app a while back. The whole point of flutter engine is not only to render UIs but also to run code inside it without any UIs as well. Use platform channels for communication.
I want to display a msg box when another app is launched. The msg can be changed in a Flutter app. So this last one got to be responsible for displaying. It would run in the background. Any ideas?
This is part of a learning experience for Flutter. So, so far the technologies that was tried is basic Flutter
Flutter uses a different rendering canvas as compared to what native apps use. I don't think it is possible to display a message box or AlertDialog using Flutter's own rendering on top of another app. The only way I see in order to do this is implementing a platform-specific functionality.
For Android, you can use a BroadcastReceiver to check the app that have been launched. More info here.
I am working in an application where I would like to combine a code that I have developed in Android with Flutter.
More specifically, I have a login in Android where I would like to send me to the main that I have in Flutter.
I would like to know if I can pass from an Android activity to Flutter as I normally do in Android with the manifest.
Does anyone know if this is possible?
Yes, you can.
You can use a Platform View to achieve what you want, in this particular scenario, an AndroidView widget. It’s more or less like a platform plugin, but this time, you’re actually inlining native views in your widget tree.
It’s not immediate and there are a few things that you need to setup before achieving it, so you should only do so if your activity is too complex to the point where it’s not worth to recreate and maintain with Flutter widgets.
Nevertheless, I’ll leave you with an article that goes through the process of creating the Android Platform View itself.
i have developed an app, running on iphone and android, using phonegap and jquery mobile.
The combination of them is really great.
To support multi platform, I have also evaluated some other platforms too, but the problem that i have is that the UI does not feel native (and although not a problem for most apps performance cannot be compared with native).
The only solution so far giving acces to native UI seems to be monotouch.
Do you have any suggestions on platforms offering native ui at least on iphone and android, regardless of language used?
Thanks.
The only way to have native UI response is to write native apps.
The native UI is a puzzle indeed. You need read HIG firstly, cook UI with color and images to get close with system default ones. But if you are using PhoneGap thing, why do you even worry about it? Just rely on framework to get close the look and feel. Get your app really useful is more attractive than looking accustomed for user.
But it is important to adjust interactive design to avoid conflict. For example iOS navigation bar has return button in left most part, don't put it at right. And Android user will get disappoint if there is no response for long pressing or context menu key pressing.
for now i will go with a mixed on js based on phonegap and native controls plugin which i will extend as needed.