Fix For iOS
This commit is contained in:
@@ -59,25 +59,6 @@ class MyUpdatedNew {
|
||||
|
||||
registerCallback({bool first = false}) {
|
||||
//3、在initState中初始化
|
||||
/*
|
||||
D/DownloadWorker( 4745): Update too frequently!!!!, this should be dropped
|
||||
E/flutter ( 4745): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method 'update' was called on null.
|
||||
E/flutter ( 4745): Receiver: null
|
||||
E/flutter ( 4745): Tried calling: update(message: "下载中,请稍后…", progress: 0.0)
|
||||
E/flutter ( 4745): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
|
||||
E/flutter ( 4745): #1 MyUpdatedNew._updateDownLoadInfo (package:hyzp_ybqx/pages/MyMsics/05_updated/MyUpdatedNew.dart:251:10)
|
||||
E/flutter ( 4745): #2 _rootRunUnary (dart:async/zone.dart:1206:13)
|
||||
E/flutter ( 4745): #3 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
|
||||
E/flutter ( 4745): #4 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
|
||||
E/flutter ( 4745): #5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
|
||||
E/flutter ( 4745): #6 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
|
||||
E/flutter ( 4745): #7 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
|
||||
E/flutter ( 4745): #8 _StreamController._add (dart:async/stream_controller.dart:682:7)
|
||||
E/flutter ( 4745): #9 _StreamController.add (dart:async/stream_controller.dart:624:5)
|
||||
E/flutter ( 4745): #10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
|
||||
E/flutter ( 4745):
|
||||
*/
|
||||
|
||||
if (!first) {
|
||||
// 解决2次进入报错无法下载的问题-OK
|
||||
// 如果以前注册过必须先移除,否则报错无法下载:DownloadWorker( 4745): Update too frequently!!!!, this should be dropped
|
||||
@@ -128,6 +109,8 @@ class MyUpdatedNew {
|
||||
_showNoNewVersionAppDialog();
|
||||
}
|
||||
});
|
||||
} else if (Platform.isIOS) {
|
||||
// TODO: iOS更新
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user