booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

no internet access #61

Closed vishal880 closed 1 year ago

vishal880 commented 1 year ago

i have found some issue 1-No internet access after few seconds 2-when i click on whatsapp app is crashed in ios

Hassan6197 commented 1 year ago

Hello @vishal880, For When I click on WhatsApp app is crashed in iOS issue. It will be fixed in the next release, which is coming in a few days.

For No internet access after few seconds issue: Go to packages/houzi_package/lib/pages/property_details_page.dart andLook for BOTH fetchAgencyInfo and fetchAgentInfo methods and replace it with the following code:

Future<List<dynamic>> fetchAgencyInfo(List<String> list) async {
    _realtorInfoList.clear();
    List<int> tempList01 = list.map(int.parse).toList();

    for(var element in tempList01){
      List<dynamic>? tempList = await _propertyBloc.fetchSingleAgencyInfoList(element);
      if(tempList == null || tempList.isEmpty || tempList[0] == null || tempList[0].runtimeType == Response){
        // if(mounted){
        //   setState(() {
        //     isInternetConnected = false;
        //   });
        // }
        break;
      }else {
        if (mounted) {
          setState(() {
            isInternetConnected = true;
            if(tempList.isNotEmpty){
              _realtorInfoList.add(tempList[0]);
            }
          });
        }
      }
    }

    return _realtorInfoList;
  }

  Future<List<dynamic>> fetchAgentInfo(List<String> list) async {
    _realtorInfoList.clear();
    List<int> tempList01 = list.map(int.parse).toList();

    for (var element in tempList01) {
      List<dynamic>? tempList = [];
      tempList = await _propertyBloc.fetchSingleAgentInfoList(element);
      if(tempList == null || tempList.isEmpty || tempList[0] == null || tempList[0].runtimeType == Response){
        // if (mounted) {
        //   setState(() {
        //     isInternetConnected = false;
        //   });
        // }
        break;
      } else {
        if (mounted) {
          setState(() {
            isInternetConnected = true;
            if (tempList!.isNotEmpty) {
              _realtorInfoList.add(tempList[0]);
            }
          });
        }
      }
    }
    return _realtorInfoList;
  }
Hassan6197 commented 1 year ago

@vishal880 Can you come to any desk for a WhatsApp issue? We can fix it at any desk.

vishal880 commented 1 year ago

this is my

anydesk:398 719 721

On Fri, 2 Jun 2023 at 19:49, Hassan Ali @.***> wrote:

@vishal880 https://github.com/vishal880 Can you come to any desk for a WhatsApp issue? We can fix it at any desk.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/61#issuecomment-1573817284, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYWV5JN2SNZ2EMAPAOJ7J3XJHY5HANCNFSM6AAAAAAYWQBG7A . You are receiving this because you were mentioned.Message ID: @.***>

Hassan6197 commented 1 year ago

@vishal880 Please check on real devices for confirmation and let me know.

AdilSoomro commented 1 year ago

Marking this as closed. Open new issue when required.