Is it possible to develop flutter windows desktop with fcm push notification? - flutter

I was thinking to developing a windows desktop application with dart and flutter but i don't know how can i integrate Firebase cloud messaging with it. Any suggestions will be appreciated. Thanks in advance

At the moment, there is no Windows desktop support in the firebase_messaging flutter packages. There was a separate effort to develop desktop support for some of the firebase platform that Google had announced in partnership with a company called Invertase, however I haven't heard much about that in the past 6 months and I don't believe that messaging is at the top of the priority list (I know, I want it too)
It looks like the project is still alive and seeing regular commits but for now my suggestion would be, unless you want to use the C++ SDK and develop your own plugin, you might want to curb plans for native Windows push notifications for a little while. (If you decide to make your own plugin, let me know, because again, I want it too!)

Related

Flutter reactive ble or Flutter blue which package is best

Im going to start bluetooth project in flutter, can anyone suggest which package is best for production.
My case is to connect with smartwatches,weightscale,bp devices to get the medical data.
Flutter blue:https://pub.dev/packages/flutter_blue
Flutter reactive ble:https://pub.dev/packages/flutter_reactive_ble
Which ble package that is best is a personal opinion. But I have spent the last four years on making apps that use ble to talk to iOT devices. I have use three different packages:
I used flutter_blue in production about 4 years ago. I was not happy with it(I don't remember exactly why). They made breaking changes that included a switch to RxDart so there where no reason to stay with flutter _blue.
When I started to develop a new app I selected flutter_ble_lib. The reason for that was that the main developers come from the consultant company Polidea. But Polidea was bought by an other company and they stopped developing packages. So I had to change ble package to be able to keep my app upgraded.
I asked google if they had any plans on making a ble package, they said no. But they recommended flutter_reactive_ble. So I have been using flutter_reactive_ble since then. It is Philips Hue that develop it for their smart lamps. The reasons why I prefer flutter_reactive_ble:
I think its the more stable choice because of its developed by Philips hue. It is as good as it get when it comes to stability.
I use the library to tell iOT devises how to connect to internet. It's the probably what this package is made for.
Flutter reactive ble is better since It has lesser reported issues.
please read this disclaimer by flutter_blue team
This library is actively developed alongside production apps, and the
API will evolve as we continue our way to version 1.0.
Please be fully prepared to deal with breaking changes. This package
must be tested on a real device.
Flutter reactive ble is a lot more stable and it's not a newly started project. It's been tested and fixed over a long course of time.
Other good option is flutter_blue_plus. It's a fork of flutter_blue and it's actively maintained.
I started with flutter_blue but last commit was two years ago. Then I decided to switch to flutter_blue_plus

Flutter Basics (write once, run anywhere?)

Hi stack overflow community,
I'm a novice programmer in high school and have never written an app for mobile devices before so please bear with me. If I was to write an app using Flutter, will I only be required to write the code once and then be able to distribute different versions of it (iOS, macOS, Windows, Linux, Android, etc)? Or will I need to make small changes for each version such as using XCode to create the iOS version and Android Studio for the Android version? I know this is such a basic question but I've spent a couple of hours looking this stuff up and I'm still confused. Any help would be nice.
Thanks,
Daniel
In a product development environment, after writing the cross-platform code with Flutter, there are some need-to-do tasks related to Native environment.
In the case of Android, there are several cases when you'll need to touch the Native level such as config Firestore settings, Social authentication (Login with Facebook for example), changing the launch icons/ splash screen of the app or publishing to app store, etc
For iOS, the same case apply as well. So I suggest you start with small steps to develop the app first, then when running into something that seems impossible with just Flutter code, there are tutorials and SO to guide you through. It might seem overwhelmed at first, but we are all on a journey, so no need to rush it ;)
You should make small changes too. For eg when adding launcher icons and splash screen you have to edit the respective native folders. When distributing for ios you need to manually customize its Runner from xcode. There are many library that support either android only or ios only. In that case if you need that feature you have to make changes in native code like java ans swift.
if you're creating your own native plugins, you will have unique code to write. But if you're just using things out of pub, almost nothing will require change (unless you are publishing to the store).

Building a Flutter application for mobile and desktop

Recently I've found out about Flutter being able to support desktop applications as well. I'm just curious how far this technology is and if any of you had success porting your mobile apps to the desktop. If so, what was the experience like? Are desktop-specific features like windows, mouse interaction, desktop notifications, etc. supported?
It was demonstrated at the Flutter Live event in December, but nothing official has been released that I'm aware of.
Flutter for Desktop was launched as alpha build at flutter interact 2019.
The official documentation is available at https://flutter.dev/desktop
The following video describes how to run your flutter app on a MacOS
You can watch the following video is you don't wanna read the docs
https://www.youtube.com/watch?v=9tEdoVuC1uQ&t=23s
(Skip to 0:48 seconds, as slight noise occurs for few seconds)
A simple app is created using android studio and we can easily see the options available to port the code to all platforms. For example, if you create a default app using android studio, the mouse event will help you to tap on a button and increase the count.
Regarding the experience, it feels good to write a single code and port/deploy on any platform. Using VSCode or android studio, both are helpful.

Want to develop mini program with Flutter

Can Flutter dev mini-app or not? Like Wechat mini-app. Cos I dont want dev Native app. Spend a lot time. Mini-app is easier to dev.printf("%d\n", 42);
Flutter is a totally different thing from a "mini-app". Flutter is mobile application development SDK for iOS and Android while the latter is just a tool/service (more like wordpress).
Mini-app sounds like a massive privacy invasion. You are asking users to join another application ecosystem to just use your app.
You should list all of your requirements to see whether or not you need it.
Edit:
Developers are working to reduce build sizes for android instant.
https://github.com/flutter/flutter/issues/16833

iPhone chat functionality

i want to implement a chat functionality between two iOS devices.Please suggest me some libraries for the same.I went for XMPP but code is not available for that on repository.
Thanks,
You visit tutorial by RayWenderlich. Part1 and Part2. In this tutorial he has explained how to use webservice and PushNotification for chat kind of functionality.
You can also check Scringo. It's SDK offers chat between your app users.
Have you considered using push notifications?
You could use a service like Urban Airship so you don't have to roll your own push server, and they provide a pretty comprehensive iOS Framework which you could use to take advantage of their services.
You would of course still need some way of tracking who was talking with who so there would need to be some work on your part to build the necessary intermediary software/API, although this should be a pretty trivial task since all you'd need to do is keep a record of each of the device tokens in the conversation.
XMPP is still alive.. A newer version also came up...
You can download Version 2 directly here
To download Version 3 you have to download and install Mercurial repository and download it running this hg clone on the Mac Terminal...