I tried the ComicBook sample. With custom renderer, it shows my white blank page on iOS. Presenter is working fin. Any hint what I am missing, please?
Xamarin.Forms Presenters implementation is tested a lot better than Custom Renderers. There were several fixes in 188.8.131.52 for Custom Renderers.
Real quick the account store is not storing the account information for IOS it works perfectly for android but for IOS it does not any clue why?
Do i need to add anything additional for the Entitlement.plist or the Info.plist.
public class CredentialService: ICredentialService
public async Task<IEnumerable> FindRefreshTokensAsync()
var accounts = await AccountStore.Create().FindAccountsForServiceAsync(App.AppName);
return accounts.Select(x => x.Properties["RefreshToken"]);
public async Task SaveRefreshTokenAsync(string refreshToken)
Account account = new Account();
await AccountStore.Create().SaveAsync(account, App.AppName);
The code above works flawlessly for Android but for IOS it does not store the account information.
Can someone please shine some insight
So after 12 hours of working this issue with the Simulator not storing the account information into the IOS keyChain
this is what I concluded so far,
it appears you need a provisioning profile which is done through Xcode which I created.
But now it complains about the device not being found under the apple developer site.....
Why cant they tell us if we can use a Simulator to test key chain features or not...
This is why I hate Apple and All Apple products I mean its a god damn nightmare there documentation is so malformed and misleading.
Does this mean I need a real device to store stuff into the IOS KeyChain or will the Simulator suffice =/
@moljak @EdHubbell I am still having troubles with Google Auth on iOS. Native browser opens fine, I can login to Google and Accept claims access. But then it never closes, just goes to google home page and Completed handler never gets called.
I compared my solution to Evolve2016 sample and it looks very similar, not sure what I am missing.
var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter(); presenter.Login(authenticator);
I can't figure out what I am missing. Is this some kind of configuration issue in google console?
Also, breakpoint in AppDelegate.OpenUrl.cs is hit, but nothing happens
Note about KeyChain and Simulator - it is Apple's bug and never was fixed.
Pls go to community slack channel, so we can discuss it there in real time.
All 4 steps look OK.
I have update all the nugets in android
Google auhtentication works but it is not redirecting to the app(it redirects to www.google.com). Even does not call the Authenticator_Completednew Uri("com.demoapp.app:/oauth2redirect")
I am facing same issue all of the sudden in my android app. I am using Xamarin.Auth 184.108.40.206 version in my Xamarin.Forms(4.1) app.
I am getting User Agent as "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 Mobile Safari/537.36" from Xamarin.Auth.WebViewConfiguration.Android.UserAgent which I am setting to webView.Settings.UserAgentString.
I tried editing user agent to "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36" but no luck.
Any help ?
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies