ionic-framework

Ionic Android build stopped working

社会主义新天地 提交于 2020-01-02 01:21:09
问题 My Ionic/Cordova app has all of a sudden stopped building on Android after updating the Ionic and Cordova CLI. I've spent the last 2 days searching Google for a solution but I couldn't find anything that has helped. I'm assuming it's something to do with Cordova now using Gradle to build instead of Apache Ant. My Android SDK and build tools are all up to version 22, Gradle 2.2, Ant 1.9.4, JDK 8. Other details: Cordova CLI: 5.1.1 Ionic CLI Version: 1.6.1 Ionic App Lib Version: 0.3.3 OS: Mac OS

Ionic 3 Project does not have config.xml

假装没事ソ 提交于 2020-01-02 01:13:20
问题 I was trying to follow this tutorial: https://www.youtube.com/watch?v=SOOjamH1bAA. But I couldn't even begin, because from what it looks like, my project does not have a config.xml file and I tried looking up the documentation online, and it says nothing about it, I also tried searching how to generate it, didn't find anything, why am I missing this config.xml? how to generate this file? Here's a link to display where its supposed to be, and it's not there: heres the ionic info output: Ionic:

Android - ionic - no platforms added to this project

允我心安 提交于 2020-01-02 01:10:16
问题 I have successfully executed the following commands $ npm install -g cordova $ npm install -g ionic $ ionic start myApp blank $ cd myApp $ ionic platform add android But the next command is not working $ ionic build android when I execute the command, I see an error ie " No platforms added to this project. Please use 'cordova platform add platform' " please help me with your suggestions, thank you 回答1: please do following: npm install -g cordova npm install -g ionic ionic start myApp blank cd

Twilio on cross platform mobile tools (Ionic, React-Native)

一笑奈何 提交于 2020-01-01 19:32:33
问题 I'm looking to build with Twilio's IP Messaging APIs using a cross mobile framework like React Native or Ionic. My question is - is this a sane request? I see that Twilio has a Javascript library that I plan to use. Examples of successes/failures would also help. My overall goal is to build in simple chat rooms cross platform. 回答1: If anyone else found their way here from a Google search, I recently released the code I developed to implement IP Messaging on React Native for my org. You can

$http.get with 2 parameter in ionic framework (angularjs)

风格不统一 提交于 2020-01-01 18:51:30
问题 I have my $http.get with one parameter, and it works like : getUserBand: function(email) { return $http.get(baseUrl + 'selectUserBand.php?email=' + email); }, I want to send 2 parameter like : getUserBand: function(email,param2) { How to call 2 parameter in this field? }, How to call email and param2 in the $http.get field? 回答1: You can append param with '&': getUserBand: function(email,param2) { $http.get(baseUrl + 'selectUserBand.php?email=' + email + '&param2=' + param2); } 回答2: Store all

$http.get with 2 parameter in ionic framework (angularjs)

巧了我就是萌 提交于 2020-01-01 18:51:08
问题 I have my $http.get with one parameter, and it works like : getUserBand: function(email) { return $http.get(baseUrl + 'selectUserBand.php?email=' + email); }, I want to send 2 parameter like : getUserBand: function(email,param2) { How to call 2 parameter in this field? }, How to call email and param2 in the $http.get field? 回答1: You can append param with '&': getUserBand: function(email,param2) { $http.get(baseUrl + 'selectUserBand.php?email=' + email + '&param2=' + param2); } 回答2: Store all

Open database before main controller is called in Ionic Sqlite in Ionic,ngCordova (AngularJS)?

强颜欢笑 提交于 2020-01-01 14:44:48
问题 I have a function init DB this.db = $cordovaSQLite.openDB({ name: "pasa.db" }); $cordovaSQLite.execute(this.db,'CREATE TABLE IF NOT EXISTS dashboard (id integer primary key, orders_open integer,orders_complete integer,orders_all integer,alerts integer)'); $cordovaSQLite.execute(this.db,'CREATE TABLE IF NOT EXISTS orders (reference text primary key not null, first_name text,last_name text,delivery_address_country_code text,state text,merchant_price text)') $cordovaSQLite.execute(this.db,

Error: Multiple dex files define Landroid/support/annotations/AnimRes with Admob and Facebook Cordova plugins

本小妞迷上赌 提交于 2020-01-01 14:21:16
问题 I'm building an app using cordova and the Ionic framework. I'm using the Wizcorp facebook plugin: https://github.com/Wizcorp/phonegap-facebook-plugin . and I recently added the google admob plugin: https://github.com/floatinghotpot/cordova-admob-pro However now when I build my project I'm met with the error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/annotations/AnimRes; Other SO solutions mention multiple android-support-v4.jar

Windows Cordova / Ionic app white screen after release build

荒凉一梦 提交于 2020-01-01 11:37:52
问题 I developed a Cordova/ionic Universal Windows app. Everything works perfectly in debug mode in the simulator and a real device. After i make a release build (Store -> Create app packages...) and start the release build or start a new debug session the app starts a "about:blank" page after the splash screen has disappeared. I have to run "ionic build windows" again to see my app. I hope anyone is familiar with this problem, its driving me crazy! Cordova CLI: 6.0.0 Ionic version: 1.2.4 Ionic

FormControl debounceTime not available in angular 5 (ionic 3)

一曲冷凌霜 提交于 2020-01-01 10:14:10
问题 I just updated angular in ionic app from version 4 to 5. I have some search FormControl inputs that allow user to search a database via ajax requests. I used debounceTime() method to delay ajax search request but after angular upgrade this method is no longer available. I removed this method call but now a new request is made on every user key press on android. Is there any other way to achieve this delay? this.searchControl.valueChanges .debounceTime(2000) .subscribe(search => this.getCities