ionic-framework

Ionic / Angular hybrid app, issue with getting a shake event working

十年热恋 提交于 2020-01-05 04:28:05
问题 This is for a Ionic/Angular hybrid app. I'm trying get a shake event to fire using cordova-plugin-shake. It's supposed to reload a random image. So far a random image is showing up on load, but it's not working when testing a shake event in the simulator. I'm getting the error ReferenceError: shake is not defined However the docs say You do not need to reference any JavaScript, the Cordova plugin architecture will add a shake object to your root automatically when you build. What am I missing

Ionic Build Failed: JAVA_HOME is invalid

∥☆過路亽.° 提交于 2020-01-05 04:27:06
问题 I wanted to start my first build with ionic. But the Build fails very soon with the following error: Running command: E:\Apps\ASV\Node\node.exe E:\Apps\ASV\Code\MyASV\hooks\after_prepare\010_add_platform_class.js E:\Apps\ASV\Code\MyASV add to body class: platform-android Error: Failed to run "java -version", make sure that you have a JDK installed. You can get it from: http://www.oracle.com/technetwork/java/javase/downloads. Your JAVA_HOME is invalid: C:\Program Files\java\jdk1.8.0_77 I tried

Ionic v4 windows platform giving blank screen

▼魔方 西西 提交于 2020-01-05 04:18:06
问题 Does anyone know if ionic 4 has a workable platform for windows? I've been trying to start a ionic 4 cordova app using the windows platform which works fine with version 3, however gives me a blank screen using version 4 (windows universal platform). It should show me the app in the screen. I think it's something to do with not calling the right js files or something to do with angular 6? I'm pretty new to this, so I apologize if I'm too vague. steps to recreate - ionic start myApp tabs -

Is it possible to change color of hybrid app badge icon?

不问归期 提交于 2020-01-05 04:17:32
问题 Is it possible to change hybrid app badge icon styling like background color? By default its background color is red and it shows as round shape. Can we change these styling? Is it possible with native app? 来源: https://stackoverflow.com/questions/44921127/is-it-possible-to-change-color-of-hybrid-app-badge-icon

White screen appears for a split second after splash screen

被刻印的时光 ゝ 提交于 2020-01-05 04:10:14
问题 I have made an app with IBM mobileFirst 7.0 (I also use Ionic) and I notice that right after the splash screen and for half a second or so, a white screen appears. I searched the web and some people said that uncommenting autoHideSplash: false, in wlInitOptions and adding this code: var app = angular.module('app.controllers', []); //manually hide splash screen app.run(function($ionicPlatform) { $ionicPlatform.ready(function() { setTimeout(function() { WL.App.hideSplashScreen(); }, 100); }); }

Ionic 2 banner is not visiable after publishing on play store?

百般思念 提交于 2020-01-05 04:06:32
问题 Ionic 2 banner is not visiable after publishing on play store. Its just a black box bottom of the screen. Not sure what is the problem if( /(android)/i.test(navigator.userAgent) ) { // for android & amazon-fireos console.log('in here'); this.admobid = { banner: 'ca-app-pub-3767919174603479/5466077284' }; } if(AdMob) AdMob.createBanner({ adId: this.admobid.banner, position: AdMob.AD_POSITION.BOTTOM_CENTER, autoShow: true }); 来源: https://stackoverflow.com/questions/42456137/ionic-2-banner-is

How to let initiated Controller Know that scope value has changed

蓝咒 提交于 2020-01-05 03:49:04
问题 Am new in AngularJS. I have a signin controller which verifies the user details and when successful calls a service to save the user details in localStorage and and also assign the details to a variable in same service that is used to retrieve that user details from various views. Buh after login when i redirect user to another view which has been previously initiated (Visted page) i will not see the new updated user details until i refresh the page(view) meaning the view does not know that

adding a js library (not yet in typings) to an ionic2 project

孤者浪人 提交于 2020-01-05 03:26:08
问题 I'm trying to use this external javascript library CamanJS with my Ionic2 (typescript project) I've found several articles like this and this, however all of them assumes the library that is going to use is in typings But CamanJS is not yet in the typings and there is a open ticket for it my question is, is there a way to add an external js library (which is not yet added to typings) to an ionic2 (typescript) project? 回答1: Let me describe this process in a common case: To include a JavaScript

ionic and cordova - css active not working on android device

旧街凉风 提交于 2020-01-04 16:56:06
问题 I am using ionic framework with cordova platform. The css for active state of an element (div, button or a) works fine in browser during development/testing but not at all in android device/emulator i have defined some classes .bg-dark { background: #333333 !important; } .bg-active-darkBlue:active { background: #16499a !important; } and following html <a class="fg-white bg-active-darkBlue button" style="background-color:#3B5998;">Sign in with Facebook</a> even tried this (got on ionic forum)