-1

In my flutter app, I need to get information from a device via wifi as a stream. Also I need to keep my google maps online via Mobile internet. How can I use both wifi and mobile network at the same time in my phone. I made a lot of search but I can't find any solution for this.

  • A phone uses one or the other. It doesn't keep wifi and mobile data going at once. But Google maps will work over wifi as well, so this is a non-issue. – Gabe Sechan Nov 18 '21 at 17:12
  • Yeah, Google maps should be using Wi-Fi so I am not seeing what the issue is here? – Always Learning Nov 18 '21 at 18:31
  • Not sure how to do this with flutter, but this is possible on Android in general. https://stackoverflow.com/questions/29835240/how-to-stay-connected-through-mobile-network-after-wifi-is-connected-on-android Note: You can only force _your app_ to use mobile + wifi data. Other apps will use whatever network the Android OS decides to use. Also, pretty much all devices handle offline Wifi connections differently. Some will keep the connection, some will ask the user if they want to disconnect and use mobile data. Its a mess. – Alexander Hoffmann Nov 19 '21 at 22:42
  • I also had to deal with this issue here: https://stackoverflow.com/questions/59660494/connect-to-an-offline-wi-fi-and-keep-using-mobile-data-for-all-other-apps-too – Alexander Hoffmann Nov 19 '21 at 22:44
  • This device will be in a vehicle and wifi is not available in vehicles. My aim was recieving data from taximeter and refresh map from mobile internet at the same time. – mehmet akif sayrım Nov 24 '21 at 14:52
  • I decided to get data from taximeter with ssid. It works but not refreshing as I imagined. Is there any way that I can get ssid of taksimeter as a stream without delay? – mehmet akif sayrım Nov 24 '21 at 14:55

1 Answers1

0

I don't think it's possible.

The phone would need two network antennas and possibly two network adapters.
You can surely toggle both wifi and mobile data at the same time and they can probably switch frequently to optimize your connection or send requests to different services.
But you can't really use them both at the same time.
(if it's possible) I don't recommend it, since a majority of phones will not support this feature since you need two network antennas.

BLKKKBVSIK
  • 2,211
  • 2
  • 11
  • 29