IWS Version Manager makes it easy to notify new app versions and block versions that are no longer supported.
Features
- Popup notifications about new versions.
- Notifications of new versions and versions no longer supported.
- Widget to download new versions.
- Version and device usage tracking.
Getting started
Add the IWS API key and Version Code as a DART variable at compile time:
--dart-define=IWS_API_KEY=xxxxxxxxxxxxxx
--dart-define=APP_VERSION_CODE=1
Initialize the search for new versions
if (!IwsVersionManager().widgetsInitialized()) {
IwsVersionManager(
deviceId: 'xxxx-xxxx-xxxxx-xxxxx',
userIdentifier: 'xxxx-xxxx-xxxxx-xxxxx')
.initializeWidgets();
}
Usage
Show new version popups:
@override
Widget build(BuildContext context) {
return IwsVersionScaffoldMessage(
child: Scaffold(
appBar: AppBar(),
body: _body(context),
)
);
}
Check for new versions manually
final versionStatus = await IwsVersionManager(
deviceId: 'xxxx-xxxx-xxxxx-xxxxx',
userIdentifier: 'xxxx-xxxx-xxxxx-xxxxx',
).checkPlatformVersion();