Commit c16d74a6529b50400d8018fa900a0c24889d2597
1 parent
cfbfc73f
Revert "feat(ui):增加flutter激活标记,方便applehealth回调判断app是否是存活态"
This reverts commit cfbfc73f.
Showing
2 changed files
with
0 additions
and
13 deletions
| 1 | -import 'dart:async'; | ||
| 2 | - | ||
| 3 | import 'package:doublefeel_flutter/app/modules/friends/controllers/friend_trend_controller.dart'; | 1 | import 'package:doublefeel_flutter/app/modules/friends/controllers/friend_trend_controller.dart'; |
| 4 | import 'package:doublefeel_flutter/app/modules/friends/controllers/friends_controller.dart'; | 2 | import 'package:doublefeel_flutter/app/modules/friends/controllers/friends_controller.dart'; |
| 5 | import 'package:doublefeel_flutter/core/constants/flutter_bridge_method_name.dart'; | 3 | import 'package:doublefeel_flutter/core/constants/flutter_bridge_method_name.dart'; |
| @@ -46,7 +44,6 @@ class HomeController extends GetxController { | @@ -46,7 +44,6 @@ class HomeController extends GetxController { | ||
| 46 | void onInit() { | 44 | void onInit() { |
| 47 | super.onInit(); | 45 | super.onInit(); |
| 48 | _mainChannel.setMethodCallHandler(_handleNativeMethodCall); | 46 | _mainChannel.setMethodCallHandler(_handleNativeMethodCall); |
| 49 | - unawaited(_markAppActivated()); | ||
| 50 | isFromOnboard = Get.arguments?['isFromOnboard'] ?? false; | 47 | isFromOnboard = Get.arguments?['isFromOnboard'] ?? false; |
| 51 | SchedulerBinding.instance.addPostFrameCallback((_) async { | 48 | SchedulerBinding.instance.addPostFrameCallback((_) async { |
| 52 | try { | 49 | try { |
| @@ -67,15 +64,6 @@ class HomeController extends GetxController { | @@ -67,15 +64,6 @@ class HomeController extends GetxController { | ||
| 67 | }); | 64 | }); |
| 68 | } | 65 | } |
| 69 | 66 | ||
| 70 | - Future<void> _markAppActivated() async { | ||
| 71 | - try { | ||
| 72 | - await _mainChannel | ||
| 73 | - .invokeMethod<bool>(FlutterBridgeMethodName.appActivited); | ||
| 74 | - } catch (error) { | ||
| 75 | - debugPrint('[HomeController] app activation mark failed: $error'); | ||
| 76 | - } | ||
| 77 | - } | ||
| 78 | - | ||
| 79 | @override | 67 | @override |
| 80 | void onClose() { | 68 | void onClose() { |
| 81 | _mainChannel.setMethodCallHandler(null); | 69 | _mainChannel.setMethodCallHandler(null); |
| @@ -4,5 +4,4 @@ class FlutterBridgeMethodName { | @@ -4,5 +4,4 @@ class FlutterBridgeMethodName { | ||
| 4 | static const handleFlutterUrl = 'handleFlutterUrl'; | 4 | static const handleFlutterUrl = 'handleFlutterUrl'; |
| 5 | static const healthDataUpdated = 'healthDataUpdated'; | 5 | static const healthDataUpdated = 'healthDataUpdated'; |
| 6 | static const uploadHealthData = 'uploadHealthData'; | 6 | static const uploadHealthData = 'uploadHealthData'; |
| 7 | - static const appActivited = 'appActivited'; | ||
| 8 | } | 7 | } |
-
Please register or login to post a comment