qonversion / flutter-sdk

Flutter SDK for cross-platform in-app purchase and subscription infrastructure, revenue analytics, engagement automation, and integrations
https://qonversion.io
MIT License
90 stars 18 forks source link

HTTP 500 Code #329

Closed FantaMagier closed 5 days ago

FantaMagier commented 2 weeks ago

With the Flutter SDK sometimes some user a get a io error with a HTTP 500 Repsonse but their have a internation Connection. The Method: qonversion_internal.dart in QonversionInternal.remoteConfig and get the following Error:

PlatformException: PlatformException(NetworkConnectionFailed, There was a network issue. Please make sure that the Internet connection is available on the device, Unable to resolve host "api.qonversion.io": No address associated with hostname, null)

or PlatformException: PlatformException(-1009, Es besteht anscheinend keine Verbindung zum Internet., Qonversion Error Code: -1009, null)

I think the users have an Internet connection, otherwise they couldn't send the Sentry Crash Report.

I am using the newest Qonversion Flutter SDK

class RemoteConfigNotifer extends StateNotifier<QRemoteConfig?> {
  RemoteConfigNotifer() : super(null);

  void loadRemoteConfig() async {
    final remoteConfig = await Qonversion.getSharedInstance().remoteConfig();

    state = remoteConfig;
    gRemoteConfig = remoteConfig;
  }
}

final remoteConfigProvider = StateNotifierProvider<RemoteConfigNotifer, QRemoteConfig?>(
  (ref) => RemoteConfigNotifer(),
);
suriksarkisyan commented 2 weeks ago

Hi, @FantaMagier NetworkConnectionFailed error is our wrapper above Android OS and Google Billing errors that indicate problems with the internet connection. I mean, we have no additional logic there; we just proxy the internet connection error from the system.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 5 days ago

This issue was closed because it has been stalled for 5 days with no activity.