I successfully got Oauth2 to work with my localhost implementation using iOS and this Xamarin example: https://github.com/rasmuschristensen/SimpleOAuth
However, using Android, only a blank grey page is displayed. No error messages. I cannot figure out why the:
protected override void OnElementChanged (ElementChangedEventArgs<Xamarin.Forms.Page> e)
event does not get fired in the LoginpageRenderer.cs for Android.
This is the best and most recent Xamarin.Auth sample I found so far. Any ideas?
This issue is now fixed in the new Xamarin.Auth 1.3.
Related
Calling function navigator.credentials.get({ publicKey }) from background in Firefox addon throws following error The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission..
I cant find any information about that issue. Is there any way to use WebAuthn functions in Firefox addon scripts? In Chrome extension it works without any problems.
I struggled with getting webauthn to work for literally months, turns out there's a stupid firefox bug which throws a false negative- If you have the console open, it doesn't work. Closing the console finally fixed it for me. Here's the bug report:
https://bugzilla.mozilla.org/show_bug.cgi?id=1479500
hope this helps,
Kevin
It's Xamarin iOS application, where I am opening a url in WKWebView which contains "Google reCAPTCHA" option. But it does not show captcha option in webview instead it keeps that place bank.
I tried opening same url in iPhone(Simulator) safari browser which produced the same result.
When I opened it on web browser i.e. Safari/Google chrome, it worked perfectly fine.
Thanks for your help in advance.
I found an answer for this.
There are two reasons why it wasn't working as expected :
My network was blocking re-captcha url.
Solution - Solved this by connecting another network.
WKWebView has not calling decision handler for re-captcha url.
Solution - Added condition where it executes decision handler in
DecidePolicy Method.
[Export("webView:decidePolicyForNavigationAction:decisionHandler:")]
public void DecidePolicy(WKWebView webView, WKNavigationAction navigationAction, Action<WKNavigationActionPolicy> decisionHandler)
{
if (url.ToString().Contains("https://www.google.com/recaptcha"))
{
decisionHandler(WKNavigationActionPolicy.Allow);
}
}
I have created an ios app (Xcode) with a single WebKit View component that loads an external website. This website tries to get the current geolocation with this Javascript: navigator.geolocation.
This all works fine, but the problem is, I get 2 messages:
First a message for the app: 'Allow "NameApp" to access your location while you are using the app?'
Second a message for the webview: 'https://mywebsite.com would like to use your current location'.
I have seen similar questions about this issue, but they all went about a native/offline Cordova app. I have an online app in my Webview.
How can I prevent this double message? Or a workaround for this problem?
I used the WebViewGold for iOS app template for it & it worked out of the box without second / repeated dialog. Maybe helps other developers/no-code guys.
I'm trying to implement video streaming with OpenTok video streaming solution, based on MvvmCross architecture (Android app).
My video page is a MvxFragment, that is instantiated from MvxCachingFragmentCompatActivity. That activity manages a couple of fragments, and on custom command it shows my video fragment.
The problem is that i receive video and audio from subscriber, but unable to send the publisher data. Publisher view always shows black screen.
Here is my publisher creation block:
public void OnConnected(Session p0)
{
if (_publisher != null)
return;
_publisher = new Publisher(Activity, "publisher", true, true);
_publisher.SetPublisherListener(this);
AttachPublisherView(_publisher);
p0.Publish(_publisher);
}
But if i am not using mvvmcross, and implement OpenTok interfaces in FragmentActivity, instead of fragment, everything works fine.
I suppose that, the problem somehow depends on the provided context when i create Publisher, but cannot find the way to get it work.
Will be thankfull to any thoughts or help.
Finally i found what caused the problem. It was incompatible target android version. After i set it to "Use compile using SDK version" the problem is gone.
We've been using the latest version (unified API) of the iOS Google Maps component from xamarin in our app with great success. We of course have the proper API key in place and can render maps all day with custom markers and other features.
Our problem is that when the app "sometimes" comes back from being in the background (home button pressed), the map no longer draws any data on it. The map is blank but the Google logo is still in the bottom left corner so I know the control hasn't been unloaded. Once in this blank map state we have to kill the app and restart it to start getting map data drawn again. There are no exceptions thrown and no errors in the iOS logs. I have done a lot of research and this issue also presents it self when the maps do not have a proper API key but that clearly isn't our scenario unless somehow the maps component is losing that API key connection?
what could be the cause of this and how can we fix it Please? can we pay for support from xamarin for this issue if there is no 'quick fix'?
Here is the screenshot of the issue:
No worry I also had the same problem when I'm working with this Component
try not to save API Key on any constants. Directly pass the value. If it is not working try regenerating the API Key. Map should
I thing currently you are following this code pattern like how they provide
using Google.Maps;
...
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
const string MapsApiKey = "<Get your ID at https://code.google.com/apis/console/>";
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
MapServices.ProvideAPIKey (MapsApiKey);
...
}
}
Instead of this code you can directly pass the API Key like below or you might be forgot to remove the angle brackets.
MapServices.ProvideAPIKey ("AIzaSyAnxfhuAwEqdVhQpoUkGFZpsBukOSXVFr0");
Happy coding:)