草庐IT

android - 解析 CorodvaPush Ionic : Android doesnt show notifications when app in background

我的插件有问题。当我在应用程序中并使用Parse发送通知时,我会收到一strip有消息的警报(这按预期工作)。但是,当应用程序处于后台时,手机上没有任何显示。以下是我如何使用插件以及如何处理通知:vargmcId="xxxxxxx";varandroidConfig={senderID:gmcId};document.addEventListener("deviceready",function(){$cordovaPush.register(androidConfig).then(function(result){console.log("result:"+result);},fun

android - Uncaught ReferenceError : ionic is not defined

ionic应用程序在浏览器中打开时显示UncaughtReferenceError:ionicisnotdefined日志进行测试,在移动设备中显示空白。有解决此问题的解决方案吗? 最佳答案 添加ionic-platform-web-client和push-plugin后。添加Ionic.io();在我宣布ionic.push()为我解决了问题之前。 关于android-UncaughtReferenceError:ionicisnotdefined,我们在StackOverflow上找

android - Ionic View 不显示在 chrome inspect 上

问题我正在尝试对我的ionic应用程序进行一些调试,我有一个MotoMaxx(国际版DroidTurbo)。问题是,检测到设备,但我的应用程序未列在chrome://inspect上,如您在下面的屏幕截图中所见。P.S.:其他设备显示我的应用程序正常。该问题也发生在其他摩托罗拉设备上。到目前为止我做了什么启用USB调试。(而且adb看到手机就好了)。设备连接良好,已使用其他电缆进行测试。DiscoverUSBdevices已在chrome://inspect上选中。尝试在USB连接前后关闭和打开应用。那么,我做错了什么吗? 最佳答案

android - Jenkins : ionic 安卓构建失败

我是ionic移动开发的初学者,现在我正在使用Jenkins(在本地主机上)为我的移动应用程序设置CI。我遇到了很多天无法解决的错误。ionic编译成功但最后在android构建准备时它失败并给出我在下面提到的错误。FAILURE:Buildfailedwithanexception.*Whatwentwrong:Aproblemoccurredconfiguringrootproject'android'.>Couldnotresolveallfilesforconfiguration':classpath'.>Couldnotresolvecom.android.tools.bui

android - ionic registerBackButtonAction 不起作用

重现步骤如下:创建一个基本的ionic项目ionicstarttestsidemenu添加android平台ionic平台添加android在app.js中添加代码:$ionicPlatform.registerBackButtonAction(function(event){alert("backbuttonactionhandler");event.preventDefault();},999);此代码可以添加到.run方法或$ionicPlatform.ready()方法中-结果相同,但不起作用ionicbuildandroid然后ionicupload->或手动将APK放到设备

android - 构建错误-Ionic Cordova 对 android 失败

这个问题在这里已经有了答案:Running"cordovabuildandroid"-unabletofindattributeandroid:fontVariationSettingsandandroid:ttcIndex(26个答案)关闭4年前。运行命令“ioniccordovabuildandroid--stacktrace”时出现以下错误::generateDebugResources:mergeDebugResources:processDebugManifest:processDebugResourcesERROR:InFontFamilyFont,unabletofind

android - 设置 Ionic 应用程序时出错

我刚刚开始使用IonicFramework编写我的第一个Android应用程序。我可以设置项目,但是当我想通过“ionicplatformadd”添加Android平台时,它说:'?Errorreadingconfigfile:Error:ENOENT,open'D:\Projects\android2\config.xml'Errorhappened:undefined'当我想通过“ionicbuildandroid”构建应用程序时,它说:“当前工作目录不是基于Cordova的项目。”当我从ionicFAQ('cordovacreate')运行修复程序时,它说:'Atleastthe

android - Ionic Android 构建失败 : Unable to start the daemon process

当我运行ionicbuildandroid--release我得到一个错误ErroroccurredduringinitializationofVMCouldnotreserveenoughspacefor2097152KBobjectheap有人知道怎么解决吗? 最佳答案 我通过添加一个新的系统变量name:_JAVA_OPTIONS和value:-Xmx512M得到了解决方案 关于android-IonicAndroid构建失败:Unabletostartthedaemonproce

android - Ionic 3 Android 应用程序的状态栏文本颜色为深色或黑色

我需要将状态栏文本颜色更改为深色(或黑色)。但是itisnotsupportedonCordovaplugin.但是我看到在Android原生设备上有一个方法,如下所示。我们也可以在Ionic3应用程序上做同样的事情吗?Refernce:@color/status_bar_colorfalse 最佳答案 你可以试试这个statusBar.overlaysWebView(true);statusBar.backgroundColorByHexString('#1f2933'); 关于and

javascript - DocumentViewer 不适用于 Ionic 3

我尝试使用ionic/cordovapluginhere.所以我将这段代码放在我的页面中:showDocument(){varoptions:DocumentViewerOptions={title:'Abook',documentView:{closeLabel:''},navigationView:{closeLabel:''},email:{enabled:true},print:{enabled:true},openWith:{enabled:true},bookmarks:{enabled:true},search:{enabled:false},autoClose:{onP