我构建了一个 meteor 应用程序,它可以在网络上成功运行,但是当我构建它的 apk 文件时,它只显示白屏。我还签署了运行“meteor build ~/Chat-App --server=chat.citze.in”的 apk 命令 任何帮助,我被困在这里。
这是我的移动配置 js
App.info({
id: 'com.example.chat.citze',
name: 'Chat',
description: 'Citze Chat Application',
author: 'Himanshu Gupta',
email: 'contact@example.com',
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');
请帮我解决这个问题。
最佳答案
可能是您的 android 应用程序需要互联网许可或类似的权限,也可能是 apk 的签名问题。
看看你的 AndroidManifest.xml
对于权限,您至少需要互联网权限:
<uses-permission android:name="android.permission.INTERNET" />
这也可能有帮助:
https://forum.ionicframework.com/t/how-to-set-geolocation-permissions-for-android/11616
关于android - Meteor android apk 显示空白屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36579383/