ionic-framework

ionic how to display a dropdown of choices on button click

十年热恋 提交于 2020-01-07 05:53:58
问题 I am just starting with ionic framework, trying to redo an existing bootstrap / angular application to mobile as a hybrid app. Is there an idiomatic way to do a dropdown menu in ionic? I have searched the ionic website/forums and also googled but no luck. Like bootstrap single button dropdown. I am OK with JavaScript but HTML/CSS is not my cup of tea. Will appreciate your help. --EDIT Thanks TechMa9iac. I am trying to follow that line. I am trying to make a 2-level dropdown using angular? I

Returning Data from Service to Controller with Asynchronous Callback

老子叫甜甜 提交于 2020-01-07 05:33:46
问题 I'm trying to upload image from Camera or gallery. I wrote all the code in the service. The controller must receive the complete url from the camera or gallery to show it in a slide box, but now nothing receive. Everything works, but I couldn't send back to the controller the url of the image. I think the error is because I'm trying to return the value before that the function "obtenerImagen" execute. I'm trying to implement Callbacks , but I think I did not implemented correctly. The

How to set phone speaker as default audio output in webview (Ionic)

假装没事ソ 提交于 2020-01-07 05:25:17
问题 I have implemented twilio VOIP in ionic framework. When i trigger call at that time phone speaker will serve as default audio output source instead of phone default speaker. I have try using getUserMedia() but i haven't fount correct way. I want something cool like audio.setSpeaker(phoneSpeaker) 回答1: I have found cordova plugin that toggle speakers. these plugin will found here https://github.com/alongubkin/audiotoggle cordova plugin add audiotoggle 来源: https://stackoverflow.com/questions

Respon with status: 0 for URL: null

我们两清 提交于 2020-01-07 05:01:27
问题 im using ionic view legacy and the http post don't have any problem about it. but when migrating using ionic view pro when doing http post then show error " Respon with status: 0 for URL: null ". This is a part of my config.xml <access origin="*" subdomain="true" /> <allow-navigation href="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" />

Remove app from production and use beta testing instead

╄→гoц情女王★ 提交于 2020-01-07 03:46:06
问题 I accendently uploaded a APK to Production instead Beta. Now i have unpublished the app und uploaded an APK to closed Beta testing and republished the app, but the other APK is still in production with the old version code. What can I do? 回答1: Even I made similar mistake before and then unpublished my app. Started again the publish process with different package name as Google remembers your app by the package definition. You won't be able to delete an unpublished app. That needs to be unique

Ionic2 - Android build failed

房东的猫 提交于 2020-01-07 03:28:18
问题 I was trying to build an Ionic2 app with Android platform on my Win 7 (32 bt) system. I ran the ionic build android command in the CLI and the following error occurred : ...ionic build android > ionic-hello-world@ ionic:build D:\<path> > ionic-app-scripts build [20:12:32] ionic-app-scripts 1.0.0 [20:12:32] build dev started ... [20:12:32] clean started ... [20:12:32] clean finished in 10 ms [20:12:32] copy started ... [20:12:32] transpile started ... [20:12:37] transpile finished in 5.47 s

How to get path of selected file in AngularJS

穿精又带淫゛_ 提交于 2020-01-07 03:13:25
问题 I'm trying to get the path of a selected file in my Ionic cordova app. Both in browser and ionic app path is empty. How can I extract this information? { "0": { "name": "abc.jpg", "lastModified": 1477556723897, "lastModifiedDate": "2016-10-27T08:25:23.897Z", "webkitRelativePath": "", "size": 18779, "type": "image/jpeg", "slice": function slice() { [native code] } }, "length": 1, "item": function item() { [native code] } } var app = angular.module('myApp', []); app.controller('myCtrl',

ionic run android - configurations not running app on device

会有一股神秘感。 提交于 2020-01-07 02:44:16
问题 I am trying to build and debug ionic 2 app on my android devices. Following are the details of console out put when am trying to run command ionic run android #->ionic run android ∆ Compiling Sass to CSS √ Matching patterns: app/theme/app.+(ios|md).scss ∆ Copying fonts √ Matching patterns: node_modules/ionic-framework/fonts/**/*.+(ttf|woff|woff2) ∆ Copying HTML √ Matching patterns: app/**/*.html ∆ Compiling and bundling with Webpack... √ Using your webpack.config.js file √ Sass compilation

Ionic - How to change header-bar style with a variable

独自空忆成欢 提交于 2020-01-07 02:35:10
问题 I created an Ionic app with 'ionic start myApp sidemenu', added a login page and now I want to customize my headers style according with the type of user entered in the login, lets say positive class for admins and calm for normal users for example. I've try to change the class from the controller with a variable, but it is not working, here is my code: app.js: ... $stateProvider .state('app', { url: '/app', abstract: true, templateUrl: 'js/app/menu/sideMenu.html', controller:'appController'

ionic 2 Duplicate identifier 'export='

时光毁灭记忆、已成空白 提交于 2020-01-07 02:28:27
问题 I am facing an error when I am trying to deploy and run an android app. ionic run android Here is the error I am facing. Any help is highly appreciated. [11:47:12] Error: Error at C:/Users/adirz/myapps/HaverSami/node_modules/firebase/firebase.d.ts:409:3 [11:47:12] Duplicate identifier 'export='. [11:47:12] Error at C:/Users/adirz/myapps/HaverSami/node_modules/@types/firebase/index.d.ts:326:2 [11:47:12] Duplicate identifier 'export='. [11:47:12] ngc failed [11:47:12] ionic-app-script task: