ProjectAJ14 / connectivity_wrapper

A new Flutter package which makes sure that app is connected to an active internet connection.
Other
23 stars 35 forks source link

App works Perfectly fine with Wi-Fi though doesn't work with Mobile Data #16

Open Aruljebaraj opened 1 year ago

Aruljebaraj commented 1 year ago

We've been facing an issue with our apple application. Your help on the same is much appreciated.

Our application is built to work with Online and Offline mode.

Mode is identified based on the network connectivity, we're using connectivity_wrapper(flutter) library to identify if network is present which would help the app to identify if internet is present.

if (await ConnectivityWrapper.instance.isConnected) { offlineMode(false); } else { offlineMode(true); }

The application is working perfectly fine and as expected.

However, in some cases the application is not able to access to mobile data. Interestingly, on the same devices the app is able to identify the network if the user is connected via wifi. Only mobile data would not work.

We've verified the permission for the application - it does have permission to access network and mobile data.

Following is already added to info.plist:

https://drive.google.com/drive/folders/1iOEj1CrRoILDh5ux4CbFVPjdeoSOHJqB?usp=sharing

The mobile data is definitely working as other applications like whatsapp, facebook etc. are working.

Mu7ammadRasul commented 1 year ago

I'm having the same issue, did you fix it or what is a better alternative if you have used one?

thiagotalma commented 1 year ago

Exactly the same problem here. Any news about this? Or any alternative way to work around the problem?

ProjectAJ14 commented 1 year ago

I have updated the plugin. Please check @thiagotalma @Mu7ammadRasul. If you are still facing the issue do let me know.

ProjectAJ14 commented 1 year ago

connectivity_wrapper: ^1.1.2