Search Posts

Category: cordova

Phonegap: FileUploadOptions() is not working

I’m working on angularJS v1.2 and building its APK via In my config file it is giving error while adding <plugin name=”cordova-plugin-file-transfer” /> file transfer plugin. This is why i can’t use use FileUploadOptions() to upload files. I have tried var fd = new FormData(); fd.append(“file”, results[i]); var objXhr = new XMLHttpRequest(); objXhr.addEventListener(“progress”, updateProgress, false); objXhr.addEventListener(“load”, transferComplete, false); objXhr.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { // Typical action […]

How to append ID to Ionic tab anchor?

In my Ionic Tabs template I have assigned IDs to the <ion-tab id=”Tab1″> however when the page renders I can see that the actual clickable Tab code is outside the defined <ion-tab>. This is my tab definition: <ion-tab id=”Tab1″ disabled=”tabControl.disableTab1″ title=”Products” class=”icon” icon-off=”ion-model-s custom-icon-off” icon-on=”ion-model-s” href=”#/tab/tab1″> <ion-nav-view name=”tab-tab1″></ion-nav-view> </ion-tab> But what actually renders is: <ion-tab id=”tab1″ disabled=”tabControl.disableTab1″ class=”icon” icon-off=”ion-model-s custom-icon-off” icon-on=”ion-model-s” href=”#/tab/tab1″></ion-tab> <a ng-class=”{‘tab-item-active’: isTabActive(), ‘has-badge’:badge, ‘tab-hidden’:isHidden()}” ng-disabled=”disabled()” class=”icon tab-item” icon-on=”ion-model-s” icon-off=”ion-model-s custom-icon-off”> <!– ngIf: […]

Cordova – how do I know if my app is using the HTML5 Geolocation API or the cordova geolocation plugin?

I am developing an Angular 1.5.3/Cordova 6.5/Ionic 1.3.3 App. In my app I intend to use the cordova geo-location plugin. The app will run in WebView (usually Chrome Stable on Android). Here is my package.json file: { “name”: “myApp”, “description”: “yadda”, “version”: “4.2.0”, “private”: true, “dependencies”: { “angular”: “1.5.3” }, “devDependencies”: { }, “cordovaPlugins”: [ “[email protected]”, “[email protected]” ] } I notice that there is an HTML5 API to detect geolocation: I also notice a […]

Data binding in ionic application

I am working on employeeManagement application, it take care of employee database and some review associated with the employee. I am using ionic storage for local storage purpose and mysql as database. I have to show some data on a page as soon as page loads…but page is getting load earlier than object gets it value from the database. below is the code <ion-list *ngFor=”let item of reviews” > {{ item.remarks }} and .ts file […]

Opening the camera after button is clicked in a mdDialog in Angularjs

I want the camera to open after the button is clicked. I can’t figure out what the problem is and it’s very hard to perform debugging when using phonegap. My camera service: factory(“CameraService”, function ($q) { var CameraPromise = $q.defer(); var takePic = function () { (fileUrl) { CameraPromise.resolve(fileUrl); }, function (err) { CameraPromise.reject(err); }); return CameraPromise.promise; } return { takePic: takePic } My mdDialogpopup looks like this: ${ templateUrl: ‘CameraPopup.html’, clickOutsideToClose: true, }) […]

I have a angular website and want to use ionic to create the mobile apps. Whats the easiest way?

I have a website that is created in Angular 4 (with Lumen as the Rest API) that has a responsive design. The website works on desktop & mobile browser fine but now I want to create the mobile applications. What is the easiest way to wrap ionic around my existing Angular website to create the mobile applications? The mobile applications will need camera, location, bar-scanning, etc. So I cant just webkit or webview the mobile […]

unable to run ionic serve after upgrading to ionic 2

so i have an old ionic v1 project that was done. i have since moved on to ionic v2 and now i wanted to go back to the old v1 project to change some stuff but i’m unable to run ionic serve. when i run ‘ionic serve’ in the v1 project root.. i get the following… Looks like a fresh checkout! No ./node_modules directory found. Would you like to install project dependencies? (Y/n) it looks […]

Next Page »