Showing
3 changed files
with
14 additions
and
4 deletions
| @@ -47,10 +47,16 @@ class WearEngineHostApiImpl( | @@ -47,10 +47,16 @@ class WearEngineHostApiImpl( | ||
| 47 | return HuaweiWearBridge.sendTextMessage(context, device, message) | 47 | return HuaweiWearBridge.sendTextMessage(context, device, message) |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | - override fun sendWatchSyncPayload(jsonPayload: String): Boolean { | ||
| 51 | - return sendTextMessage(jsonPayload) | 50 | + override fun addWatchSurface(callback: (Result<Boolean>) -> Unit) { |
| 52 | } | 51 | } |
| 53 | 52 | ||
| 53 | + override fun sendWatchSyncPayload( | ||
| 54 | + jsonPayload: String, | ||
| 55 | + callback: (Result<Boolean>) -> Unit | ||
| 56 | + ) { | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + | ||
| 54 | override fun removeBackground(originImagePath: String, callback: (Result<String?>) -> Unit) { | 60 | override fun removeBackground(originImagePath: String, callback: (Result<String?>) -> Unit) { |
| 55 | 61 | ||
| 56 | } | 62 | } |
| @@ -173,7 +173,10 @@ class MembershipDetailController extends GetxController { | @@ -173,7 +173,10 @@ class MembershipDetailController extends GetxController { | ||
| 173 | 173 | ||
| 174 | Future<void> manageSubscription() async { | 174 | Future<void> manageSubscription() async { |
| 175 | try { | 175 | try { |
| 176 | - await _platformHostApi.requestAppReview(); | ||
| 177 | - } catch (_) {} | 176 | + await _platformHostApi |
| 177 | + .nativeHandleUrl('https://apps.apple.com/account/subscriptions'); | ||
| 178 | + } catch (e) { | ||
| 179 | + AppLogger.e('manageSubscription error: $e'); | ||
| 180 | + } | ||
| 178 | } | 181 | } |
| 179 | } | 182 | } |
| @@ -237,6 +237,7 @@ class MembershipDetailView extends GetView<MembershipDetailController> { | @@ -237,6 +237,7 @@ class MembershipDetailView extends GetView<MembershipDetailController> { | ||
| 237 | onTap: () { | 237 | onTap: () { |
| 238 | controller.manageSubscription(); | 238 | controller.manageSubscription(); |
| 239 | }, | 239 | }, |
| 240 | + behavior: HitTestBehavior.opaque, | ||
| 240 | child: SizedBox( | 241 | child: SizedBox( |
| 241 | height: 56, | 242 | height: 56, |
| 242 | child: Row( | 243 | child: Row( |
-
Please register or login to post a comment