Forum Xamarin.Android

How to implement Google Pay in Xamarin.Android with the MvvmCross 6.0

There was a rendering issue of View when navigating to ViewModel from fragment (Android.Gms.Wallet.Fragment)

await _navigationService.Navigate< SecondViewModel, Params, DestructionResult>(new Params { token = paymentTokenJson });

the transition is performed, the logic works, but the View of SecondViewModel is not drawn. If SecondViewModel contains a transition to SomeViewModel, it is performed normally (SomeView is rendered).

Answers

  • JuniorJiangJuniorJiang Member, Xamarin Team Xamurai
    edited December 2018

    Hi, @Khanin_Denis You can edit code

    await _navigationService.Navigate< SecondViewModel, Params, DestructionResult>(new Params { token = paymentTokenJson });

    like this ,it will be helpfull to read.
    await _navigationService.Navigate< SecondViewModel, Params, DestructionResult>(new Params { token = paymentTokenJson });

    the View of SecondViewModel is not drawn. If SecondViewModel contains a transition to SomeViewModel, it is performed normally (SomeView is rendered).

    Maybe you can post more code about this.

Sign In or Register to comment.