2016-04-12 178 views
1

我已经构建了一个流星应用程序它成功地在网上工作,但是当我建立它的apk文件时,它只显示白色屏幕。我也签署了apk命令我运行“流星建立〜/聊天应用程序 - 服务器= chat.citze.in” 任何帮助,我请卡在这里。流星android apk显示空白屏幕

这里是我的手机,配置JS

App.info({ 
    id: 'com.example.chat.citze', 
    name: 'Chat', 
    description: 'Citze Chat Application', 
    author: 'Himanshu Gupta', 
    email: '[email protected]', 
    website: 'http://chat.citze.in' 

}); 

// Set PhoneGap/Cordova preferences 
App.setPreference('BackgroundColor', '0xff0000ff'); 
App.setPreference('HideKeyboardFormAccessoryBar', true); 
App.setPreference('Orientation', 'default'); 
App.setPreference('Orientation', 'all', 'ios'); 

请帮我解决这个问题。

+0

你是我们插入任何插件?你有没有为应用设置正确的访问权限? – SunnySonic

+0

我没有使用任何插件,我必须为应用程序设置权限..? – HimanshuKart

回答

1

可能你需要互联网权限或类似的android应用程序,也可能是apk的签名问题。

有一个在你的AndroidManifest.xml

对于权限,你至少需要Internet权限:

<uses-permission android:name="android.permission.INTERNET" /> 

这也可能会有所帮助:

https://forums.meteor.com/t/cordova-is-it-possible-to-force-meteor-to-use-https-for-meteor-local/17908/5

https://forum.ionicframework.com/t/how-to-set-geolocation-permissions-for-android/11616

+0

<使用权限的android:name =“android.permission.INTERNET”/>这个权限也设置我已经找到一篇文章,我们<使用权限android:name =“android.permission.INTERNET”/> hould删除ng-app从main.html给它试一试 – HimanshuKart

+0

@HimanshuKart祝你好运! – SunnySonic

+0

我试过了,现在收到错误 “'Access-Control-Allow-Origin'头部的值不等于提供的原始值'http://meteor.local'Origin'http:// localhost: 12912'因此不被允许访问。“任何解决方案 – HimanshuKart