SQLite does not work global
Don't put the database abstract layer in a controller, but in a service/factory. The service/facory will hold the instance to the database. A service/factory is an singleton object.
View ArticleSlow on Android 5 and up
I have been working with Cordova and Ionic for awhile now. After I launched my first big app people have been complaining how slow it is on Android. I thought it was my app so I have been doing...
View ArticleEmail Notification
Newbie here! I'm using Nic Raboy email composer and just wondering if anyone can give any tutorial/suggestions and tips for email notification whenever user sent/replies email. I've been working on...
View ArticleHow to disable a button on a condition?
Here's something that worked for me for dynamically disabling a button. In the HTML, put <button disabled={{buttonDisabled}}> and in your code, put this.buttonDisabled = true; to disable, or...
View ArticleSend app request to facebook friends list
@ihadeed I tried with facebook connect plugin showdialog method but it is returning "No active session" error. what might be the reason for this any idea regarding this.
View ArticleIonic build android finished with non-zero exit value 1
When I searched for 'node_modules' in my project folder, I found 13 search result in different subdirectories. I don't have a vendor folder inside www/js. There is only one file named app.js in that...
View ArticlePushPlugin notificationReceived Called Multiple Times when Push Notification...
If the Ionic iOS app is in the background and you receive a push notification for the first time, the $cordovaPush:notificationReceived' event fires once when you click the notification and open the...
View ArticleCordova plugins not working inside .config() in iOS
Where have you placed the interceptor code?
View ArticleHow to use pre-filled SQLite database in Ionic2?
I saw that Ionic2 support SqlStorage and only for table creation, I don't know how to use pre-filled sqlite db with SqlStorage.Can any help me about this?Thanks in advance!!
View ArticleIonic build android finished with non-zero exit value 1
I use vim check my html file and found some ^H in href attribute of the <a> tag , then I delete them away , problem resolve. But I still finding the reason why I got ^H in each href value of...
View ArticleCreate swipe up to open content
I am creating a simple app with the ionic framework, and I want to run a function on each of the swipe events or drag events. From the documentation, no example yet. like this: When user swipe up/drag...
View ArticleIonicon circle-outline?
There are lots of icons with circles around them. I'm making a checklist app, where I'm gonna use the checkmark-circle-outline icon, for the checklist items that are checked. For the ones not checked,...
View ArticleProblem at http request to a rest api in ionic 2
I encountered a problem to http request a rest api in ionic 2. Here is my code: this.http.get('http://localhost:3000/news').subscribe(res => { this.data = res.json() console.log(res) }) But got the...
View ArticleHow to close ion-item-sliding by api?
After a <ion-item-sliding> is slide opened, is there an API to close it?
View ArticleCordova plugins not working inside .config() in iOS
Also in a .config() But I don't use a plugin like $cordova network in the http intercept But I was thinking .. why don't you just skip the online check in your http intercept. so like...
View ArticleIonicon circle-outline?
You could do the same as Ionic does for checkboxes : Create a div (like 25px * 25px), and put a border-radius or 25px on it, will do a circle. Hope it helps
View Article$cordovaSocialSharing.canShareVia("instagram") not working in Android
I've also tested this with the window.plugin notation.
View ArticleResponsive on crosswalk
Continuing the discussion from Crosswalk + Ionic, App appears too small: Hi,try to put this line in html header: <meta content="width=device-width, initial-scale=1.0" name="viewport" /> It works...
View Article