我安装了最新的PhoneGap版本(3.3),打包了我的移动服务HTML应用程序并点击了已知的授权问题:
仅从http://和https:// URL支持登录.请将您的页面托管在Web服务器中
我已经在互联网上搜索了这个问题(http://social.msdn.microsoft.com/Forums/windowsazure/en-US/a2386093-73cd-44fb-a418-4fa83a36c800/phonegap-apps-using-the-new-html -client-for-azure-mobile-services-not-working?forum = azuremobile)但该解决方案对我不起作用.该项目由phonegap参考创建,但即使我将其更改为
它也无效.
这个问题有什么解决方案吗?
我的源代码:
Report
myscript.js
var app = { initialize: function() { document.addEventListener('deviceready', this.onDeviceReady, false); }, onDeviceReady: function() { var client = new WindowsAzure.MobileServiceClient( "https://myapp.azure-mobile.net/", "XXX"); client.login("google").done(.... }, }; $(document).ready(function documentReady() { app.initialize(); });
显然,PhoneGap 3不会window.device.cordova
在移动服务检查它的情况下报告其版本.但即便假装也无济于事 - 经过Google授权后,它会进入空白页面.