Android - Non-interative login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StevesTips
    Junior Member
    • Nov 2016
    • 1

    #1

    Android - Non-interative login

    Hello,

    I'm trying to create an android app for personal use that checks what bets I have on, alerts me when a race is about to start etc. nothing fancy.

    I have already created a C# windows service to place bets for me so am familiar with the non-interactive login process but I have no experience of Android and am getting a bit stuck.

    I intend to use Xamarin so I can write the code in C# but when I do things like get the SSL certificate from the Android key chain, it is a Java.Security.Cert.X509Certificate. The C# code I have uses a System.Security.Cryptography.X509Certifcate which probably won't work.

    private WebRequestHandler getWebRequestHandlerWithCert(X509Certificate cert)
    {
    var clientHandler = new WebRequestHandler();
    clientHandler.ClientCertificates.Add(cert);
    return clientHandler;
    }

    Does anyone have any experience of getting this to work, or should I chuck it in and use the interactive login?

    Many thanks for any insights.
Working...
X