Which phone is compatible for OTG in SAMSUNG

Member Avatar
Member Avatar
+0 forum 1

Hello i want to create a script that allows the user to use the device mic and record audio, then display it using Typescript (.ts) file. Here is what i have so far. home.ts import { Component, ViewChild } from "@angular/core"; import { NavController, App, AlertController, Platform } from "ionic-angular"; import { Common } from "../../providers/common"; import { Media, MediaObject } from '@ionic-native/media'; import { File } from '@ionic-native/file'; @Component({ selector: "page-home", templateUrl: "home.html" }) export class HomePage { recording: boolean = false; filePath: string; fileName: string; audio: MediaObject; audioList: any[] = []; getAudioList() { if (localStorage.getItem("audiolist")) { this.audioList = …

Member Avatar
Member Avatar
+0 forum 1

I have a web app already running on the web. It is web responsive. I want to make update of it. I hear good things about Ionic and i started working on Ionic 3 with Angular. Its almost finished. Now i need help to sinish and publish it. I wanna ask these questions. Do you think Ionic would make a difference or i just should updated my existing web app? Is it better to use native apps/Hydrid or Web apps? Thanks

Member Avatar
Member Avatar
+0 forum 3

Hello i have a Ionic Angular project. I haven't changed any of my files and i am getting an error `data is null` after `ionic serve` That means that i can't connect to my database. I havent made any changes on the database or change any of my files. Any help?

Member Avatar
Member Avatar
+0 forum 13

Friends, I am using web service and forms for a number of situations in my project. But now when I try to use same strategy the data is not provided by the provider function. It gives ‘null’ value always. But I can see the value in chrome web console. page.ts (controller) call function **this.getYearMaster(); ** in constructor my controller function is getYearMaster() { this.projectplanprovider.getYearMaster() .then(data => { this.year = data; //console.log(this.data); alert("hi: "+this.year); }); } my provider function is public getYearMaster() { const obj = {wsname: 'YearMaster' }; const myData = JSON.stringify(obj); return new Promise((resolve, reject) => { console.log('will call …

Member Avatar
+0 forum 0

Hello i made a ionic searchbar script returns the items[] ok but i want to connect it with my php authservice and return the results from a php function. I already connected my app with the authservice and i have returned JSON data in other pages so the authservice works fine i just don't know how to put the php function in here this.items = [ { title: 'one' }, { title: 'two' }, { title: 'three' }, { title: 'four' }, { title: 'five' }, { title: 'six' } ]; this is what i've done so far. searchPage.ts @Component({ …

Member Avatar
+0 forum 0

Hello i want to pass the user id (uid) from the home page to a user Details Page. Because i display multiple users on my home page i don’t wan to pass the user session id (as given by the `JSON.parse(localStorage.getItem("userData"));` ), i want to click on the name of any user on the home page and pass its id and other parameters on the user details page. home.html `<p (click)="UserPage()" [innerHTML]="item.username | linky"></p>` home.ts public userDetails: any; public resposeData: any; public dataSet: any; public noRecords: boolean; rootPage: any = HomePage; pages: Array<{ title: string, component: any }>; userPostData = …

Member Avatar
+0 forum 0

Friends, I have a search list as shown in image below ![View3.png](/attachments/large/2/d1321f559022df4c5850e9a5fce3635e.png "align-left") When clicking on a result i need to show that detaIls on same place without going to another page ( like ajax in web) . I click first row in search result got that details as shown ![View4.png](/attachments/small/2/ab5a19e0457545e19d4f00c2946dadff.png "align-left") * Here List of projects replaced by Project details * Is that possible ? when click item i call a provider to take web service data. Please advise how it can done with a sample ... Thanks Anes

Member Avatar
+0 forum 0

Hello i have a problem with my Ionic App. I am using typescript files. I am getting console log `No Access` that means there is a problem with `resposeData`. Any hint? I am really stuck home.ts file import { Component, ViewChild } from "@angular/core"; import { NavController, App, AlertController } from "ionic-angular"; import { AuthService } from "../../providers/auth-service"; import { Common } from "../../providers/common"; import { Camera, CameraOptions } from "@ionic-native/camera"; @Component({ selector: "page-home", templateUrl: "home.html" }) export class HomePage { @ViewChild("updatebox") updatebox; public userDetails: any; public resposeData: any; public dataSet: any; public noRecords: boolean; userPostData = { uid: "", …

Member Avatar
+0 forum 0

Hello i have a problem working with Camera on Ionic and i need some advice. I have installed both ionic camera and media capture plugins. I am using two scripts one to capture Video (Start Reocording) and one to capture a Photo (Take Photo) I am getting the errors displayed on the image i show you here. I guess that is because i am calling the Camera Method on `@ionic-native/Camera `when i should called it from `ionic-native`. I try to use both `import { MediaCapture, Camera, CameraOptions } from 'ionic-native';` home.ts import { Component, ViewChild } from "@angular/core"; import { …

Member Avatar
Member Avatar
+0 forum 1

Hello, i am trying to do an Ionic app and i am getting an error. Any suggestion? Runtime error this.file.documentsDirectory is null [194]/HomePage.prototype.startRecord@http://localhost:8100/build/main.js:80:13 View_HomePage_2/<@ng:///AppModule/HomePage.ngfactory.js:36:19 handleEvent@http://localhost:8100/build/vendor.js:13608:132 callWithDebugContext@http://localhost:8100/build/vendor.js:15093:39 debugHandleEvent@http://localhost:8100/build/vendor.js:14680:12 dispatchEvent@http://localhost:8100/build/vendor.js:10057:16 renderEventHandlerClosure/<@http://localhost:8100/build/vendor.js:10671:38 decoratePreventDefault/<@http://localhost:8100/build/vendor.js:36353:53 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15649 onInvokeTask@http://localhost:8100/build/vendor.js:4973:24 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15562 F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10815 F</h</e.invokeTask@http://localhost:8100/build/polyfills.js:3:16787 p@http://localhost:8100/build/polyfills.js:2:27646 v@http://localhost:8100/build/polyfills.js:2:27893 home.html <ion-header> <ion-navbar> <ion-title> Sound Recorder & Player </ion-title> </ion-navbar> </ion-header> <ion-content padding> <ion-card> <ion-card-content> <ion-card-title> <button ion-button primary (click)="stopRecord()" *ngIf="recording"><ion-icon name="mic-off"></ion-icon>&nbsp;&nbsp;Stop Record</button> <button ion-button primary (click)="startRecord()" *ngIf="!recording"><ion-icon name="mic"></ion-icon>&nbsp;&nbsp;Start Record</button> </ion-card-title> </ion-card-content> </ion-card> <ion-list> <ion-item *ngFor="let audio of audioList; index as i;"> <p>{{audio.filename}}</p> <button ion-button clear item-end large (click)="playAudio(audio.filename, i)"><ion-icon name="play"></ion-icon></button> </ion-item> </ion-list> </ion-content> home.ts import { Component } from '@angular/core'; import { …

Member Avatar
Member Avatar
+0 forum 6

Hello i want to make a script in Ionic 3 to capture audio and video from device. index.html `<button ion button (click)="captureApp()" id="captureAudio">Capture Audio</button>` index.ts document.addEventListener("deviceready", onDeviceReady, false); function id(element) { return document.getElementById(element); } function onDeviceReady() { navigator.splashscreen.hide(); captureApp = new captureApp(); captureApp.run(); } function captureApp() { } captureApp.prototype = { pictureSource:null, destinationType:null, run:function() { var that = this; id("captureVideo").addEventListener("click", function() { that._captureVideo.apply(that, arguments); }); id("captureAudio").addEventListener("click", function() { that._capureAudio.apply(that, arguments); }); id("captureImage").addEventListener("click", function() { that._captureImage.apply(that, arguments); }); }, _captureVideo:function() { var that = this; navigator.device.capture.captureVideo(function() { that._captureSuccess.apply(that, arguments); }, function() { captureApp._captureError.apply(that, arguments); }, {limit:10}); }, _capureAudio:function() { var that …

Member Avatar
Member Avatar
+0 forum 7

Hello i just started to use Ionic and i have some questions. First of all i downloaded an existing ionic project on GitHub to start. I do these commands and works fine. $ git clone https://github.com/srinivastamada/ionic-restful-authentication.git $ cd ionic-restful-authentication $ npm install $ ionic serve The project starts at localhost:8100 as wanted. I understand that the files are on a cloud and the database too, right? When i download the files how can i use them so i may do some changes? I Mean i type in commands on NODE.JS command prompt? The tutorial says that uses PHP-Restful-Api https://github.com/srinivastamada/PHP-Slim-Restful to …

Member Avatar
Member Avatar
+0 forum 8

Hello i am getting these error node sass could not find a binding for your current environment windows 64-bit with unsupported runtime (59) when i am typing `ionic serve` on my command prompt does anyone knows how can i fix it?

Member Avatar
Member Avatar
+0 forum 1

Hi Guys, I'm after a user interface element for ionic that operates like a cross between a range slider http://ionicframework.com/docs/components/#range and spinner. Essentially the 'button' or tag that you would drag from side to side in a range needs to stay in the middle, but as you swipe, the scale in the background slides past it. The idea is for a simple camera exposure calculator and I want the settings to resemble looking down onto a camera lens from above and rotating the aperture ring or shutter speed selector. The camera body has an arrow pointing to some point on …

Member Avatar
Member Avatar
+0 forum 1

Hi Guys, I've been playing around with Angular and Ionic tutorials and I'm attempting to put together things I've learnt from different tutorials to build a simple NPR audio player. I have a really really anoying issue with ng-show/ng-hide... Basically, in the bottom left hand corner of my application I have a play/pause button. Acutally it's 2 buttons, a play button and a pause button, they are both supposed to occupy the same space (i.e. only one of them being visible at once) so I have used ng-show and ng-hide on them. When player.paused is true, the play button is …

Member Avatar
Member Avatar
+0 forum 1

The End.