Webview Navigation events not firing on iOS Xamarin.Forms

Mar 14 2018 5:38 AM
Hi i have using following code working fine android but not get response from iOS in xamarin forms
  1. web_view_login.Source = "https://aix.takoma.fr/takoma/app-lo/api/ihm/sign-in?client_id=h0YhUHzaWPvhJuk8euOcAco8Fc6yRBXM&response_type=token&redirect_uri=anton::authz";  
  2. public async void WebViewnavigated(WebNavigatedEventArgs args, NavigationEventArgs e, string url)  
  3. {  
  4. try  
  5. {  
  6. var obj = Newtonsoft.Json.JsonConvert.SerializeObject(web_view_login.Source); var uri = Newtonsoft.Json.JsonConvert.DeserializeObject<JObject>(obj)["Url"];  
  7. var access_token = uri.ToString();  
  8. if (access_token.Contains("access_token"))  
  9. {  
  10. var accesstoken_ = uri.ToString().Split(new char[] { '?''&''{''}''=' })[2];  
  11. var token_type = uri.ToString().Split(new char[] { '?''&''{''}''=' })[4];  
  12. await Navigation.PushAsync(new Home());  
  13. //await Navigation.PopAsync();  
  14. }  
  15. }  
  16. catch (Exception ex)  
  17. {  
  18. }  
  19. }  
webview login button click after i'm still getting pass url value in iOS but android login button click after get as accesstoken value.
 
what did I'm wrong? anyone know then help me!!!