День добрый.
Попробовал использовать для своего проекта flutter_rustore_update. Но у меня возникла проблема в виде ошибки:
I/flutter ( 7000): Update available: 2
I/flutter ( 7000): Start listener
I/flutter ( 7000): RustoreUpdateClient.silent
D/FlutterRustoreUpdate( 7000): ru.rustore.sdk.appupdate.errors.RuStoreInstallException: app update error
I/flutter ( 7000): silent err PlatformException(ru.rustore.sdk.appupdate.errors.RuStoreInstallException: app update error, RuStoreInstallException, Cause: null, Stacktrace: ru.rustore.sdk.appupdate.errors.RuStoreInstallException: app update error
I/flutter ( 7000): at ru.rustore.sdk.appupdate.errors.RemoteProviderErrors.toRuStoreException(Unknown Source:23)
I/flutter ( 7000): at ru.rustore.sdk.appupdate.c0$a.a(SourceFile:2)
I/flutter ( 7000): at ru.rustore.sdk.appupdate.d0$a.onTransact(Unknown Source:36)
I/flutter ( 7000): at android.os.Binder.execTransactInternal(Binder.java:1339)
I/flutter ( 7000): at android.os.Binder.execTransact(Binder.java:1275)
I/flutter ( 7000): , null)
Как я понял, не стартует listener, потому что замыкание, в параметрах:
RustoreUpdateClient.listener((value) {
print("listener installStatus ${value.installStatus}");
print("listener bytesDownloaded ${value.bytesDownloaded}");
print("listener totalBytesToDownload ${value.totalBytesToDownload}");
print("listener installErrorCode ${value.installErrorCode}");
if (value.installStatus == INSTALL_STATUS_DOWNLOADED) {
// тут можно вызывать метод complete()
}
});
не выполняется - в окне отладки не видно соответвующих строк print. При этом не возникает ни какой ошибки и код (RustoreUpdateClient.listener...) просто игнорируется.
Тестирую на эмуляторе. Использовал код в примере https://gitflic.ru/project/rustore/flutter-rustore-update/blob?file=example%2Flib%2Fmain.dart&branch=master
В чем может быть проблема?
День добрый.
Попробовал использовать для своего проекта flutter_rustore_update. Но у меня возникла проблема в виде ошибки:
I/flutter ( 7000): Update available: 2
I/flutter ( 7000): Start listener
I/flutter ( 7000): RustoreUpdateClient.silent
D/FlutterRustoreUpdate( 7000): ru.rustore.sdk.appupdate.errors.RuStoreInstallException: app update error
I/flutter ( 7000): silent err PlatformException(ru.rustore.sdk.appupdate.errors.RuStoreInstallException: app update error, RuStoreInstallException, Cause: null, Stacktrace: ru.rustore.sdk.appupdate.errors.RuStoreInstallException: app update error
I/flutter ( 7000): at ru.rustore.sdk.appupdate.errors.RemoteProviderErrors.toRuStoreException(Unknown Source:23)
I/flutter ( 7000): at ru.rustore.sdk.appupdate.c0$a.a(SourceFile:2)
I/flutter ( 7000): at ru.rustore.sdk.appupdate.d0$a.onTransact(Unknown Source:36)
I/flutter ( 7000): at android.os.Binder.execTransactInternal(Binder.java:1339)
I/flutter ( 7000): at android.os.Binder.execTransact(Binder.java:1275)
I/flutter ( 7000): , null)
Как я понял, не стартует listener, потому что замыкание, в параметрах:
RustoreUpdateClient.listener((value) {
print("listener installStatus ${value.installStatus}");
print("listener bytesDownloaded ${value.bytesDownloaded}");
print("listener totalBytesToDownload ${value.totalBytesToDownload}");
print("listener installErrorCode ${value.installErrorCode}");
if (value.installStatus == INSTALL_STATUS_DOWNLOADED) {
// тут можно вызывать метод complete()
}
});
не выполняется - в окне отладки не видно соответвующих строк print. При этом не возникает ни какой ошибки и код (RustoreUpdateClient.listener...) просто игнорируется.
Тестирую на эмуляторе. Использовал код в примере https://gitflic.ru/project/rustore/flutter-rustore-update/blob?file=example%2Flib%2Fmain.dart&branch=master
В чем может быть проблема?