Im trying to build a windows application using flutter. I want to show native windows notification on certain events. I did not find any library to do this.
any idea?
you can use flutter_local_notifications_linux: ^0.3.0 it part of flutter_local_notifications so it should work
Related
I am creating a xamarin form app which require user location after every 10 meter.
I am able to get location when app is running in foreground but unable to get location when app get into background.
Any advice will be great.
You need to create a background service in Xamarin.Android and then call that using dependency services. You could also look at Shiny. It is a good plugin built for this purpose.
https://github.com/shinyorg/shiny
Background updates are handled a bit different on each platform. For Android, you will want to integrate a foreground service that subscribes to location changes and the user interface binds to.
You could use the Xamarin.Essentials and MessagingCenter for this.
For more details, please check the code sample in the link below. https://stackoverflow.com/a/63665571/11850033
I want to find a solution when the user uninstalls my app, a toast notification will be shown. But I could not find any solution for it. I tried using, the package uninstall event:
https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.packagecatalog.packageuninstalling?view=winrt-18362
But this only worked when the app was opened. Not when the app is closed. Is there any way to observe app uninstallation? I heard I can do that using win32 API but not sure how. Can you guys help me? If you can suggest any win32 API that will also be helpful.
You maybe able to use the desktop6:UninstallAction package extension, which requires the customInstallActions restricted capability. You specify an executable in your package, a name for the action, and arguments to pass to the executable. Have the executable when invoked with the arguments display the desired toast notification.
I am creating a Store Build for my UWP app. I would like the app to run automatically (without user intervention) once installed on end-user device. Is that possible? If so, how?
I’m afraid you can’t let the app run automatically after installation.
Currently, uwp doesn’t provide such api to do this. If you do want this feature, please feel free to submit your feature requirement with Windows Feedback Hub app.
Is there any solution to take picture using the laptop camera with Flutter desktop (on Windows)?
I don't want to use go-flutter.
You would need to write a plugin that implements it using Windows APIs.
Since the Texture widget isn't supported for Windows yet, you would need to use a separate native window for any live preview UI.
use camera_windows 0.1.0+1, the official plugin
I have a requirement to print PDF on the printer from the Flutter app. Is there a chance to have a possibility to do so right now? I mean that my application is going to fetch the PDF file from the server and then I would like to put it directly to the printer, so it can be printed instantly. The platform that I am targetting is windows.
If this is not possible then is there a chance to execute .bat script using flutter? In the case that there would be no such possibility I could make the script that would print expected file to avoid flutter in this functionality
Printing support is something you would likely want to implement with a plugin.
You can try Printing Package ANDROID IOS LINUX MACOS WEB WINDOWS