Authentication using Apache Cordova for Visual Studio

后端 未结 2 525
时光说笑
时光说笑 2021-01-23 11:17

I am working on a cross-platform Twitter app using Cordova in Visual Studio and I am stuck at the authentication of twitter account.
When targeting Windows/Windows Phone, I

2条回答
  •  有刺的猬
    2021-01-23 11:45

    I think you shouldn't rely on a Windows API on a cross-platform app, as it won't be available on any other platform than Windows. Instead you may want to authenticate with a javascript solution that works on every platform.
    There are several possibilities doing this in js, depending on what frameworks and libraries you're using in your app: You may authenticate using $.ajax if you're using jquery or the $http service if you're using angular... If you're not using any library you could use a XMLHttpRequest.

提交回复
热议问题