TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramprasath Selvam
NA
5
2.5k
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
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"
;
public
async
void
WebViewnavigated(WebNavigatedEventArgs args, NavigationEventArgs e,
string
url)
{
try
{
var obj = Newtonsoft.Json.JsonConvert.SerializeObject(web_view_login.Source); var uri = Newtonsoft.Json.JsonConvert.DeserializeObject<JObject>(obj)[
"Url"
];
var access_token = uri.ToString();
if
(access_token.Contains(
"access_token"
))
{
var accesstoken_ = uri.ToString().Split(
new
char
[] {
'?'
,
'&'
,
'{'
,
'}'
,
'='
})[2];
var token_type = uri.ToString().Split(
new
char
[] {
'?'
,
'&'
,
'{'
,
'}'
,
'='
})[4];
await Navigation.PushAsync(
new
Home());
//await Navigation.PopAsync();
}
}
catch
(Exception ex)
{
}
}
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!!!
Reply
Answers (
0
)
How can i import html file to MongoDB using Meanstack
MessageBox in C#