ofload / native_updater

Flutter package to embed native in-app updater
MIT License
56 stars 48 forks source link

Null check operator used on a null value #25

Closed elnurxf closed 2 years ago

elnurxf commented 3 years ago

_CastError: Null check operator used on a null value File "native_updater.dart", line 79, in NativeUpdater._showCupertinoAlertDialog File "native_updater.dart", line 58, in NativeUpdater.displayUpdateAlert

Sylvain17 commented 2 years ago

In fact you have to add

NativeUpdater.displayUpdateAlert(
  context,
  forceUpdate: true,
  appStoreUrl: '<Your App Store URL>', // <== THIS LINE
);

to avoid this error.

elnurxf commented 2 years ago

Did this way. I thought package gets store URL automatically depending on app namespace.

Thank you.