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

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now i search i came across a Service. but now i see this is implemented differently on each platform. Most examples i get are examples where one is binding the Control in Android Project. WhatUp if my Data binding is done in Xamarin Form (Standard Class) . 1) Can i kindly …

Member Avatar
+0 forum 0

Hello i am using authservice to call my MySql database with PHP api and therefore my php functions for my Ionic 3 Angular 4 app. This is how i call to get userData and it works fine import { AuthService } from "../../providers/auth-service"; public authService: AuthService, private loadingCtrl: LoadingController ) { const data = JSON.parse(localStorage.getItem("userData")); this.userDetails = data.userData; this.userPostData.uid = this.userDetails.uid; let loader = this.loadingCtrl.create({ content: 'Please wait...' }); I have another project that uses AngularFirestone import { AngularFirestore, AngularFirestoreDocument } from 'angularfire2/firestore'; import { AngularFireAuth } from 'angularfire2/auth'; import { Storage } from '@ionic/storage'; and calls the constructor like …

Member Avatar
Member Avatar
+0 forum 1

Hello i want to add fa fa-users (the users icon from font awesome) but when i do <i class="fa fa-users" aria-hidden="true"></i> i am not getting the icon, html displays the code of the font-f0c0 that is. Any guess why? p.s. i am using other fonts just fine e.g. contact, search and so on

Member Avatar
Member Avatar
+1 forum 3

Hello i want to create an app -not native- to work with iOS, Android, and Windows. I am working with Ionic Framework to do that. A programmer told that i should use CodeIgniter because i am good with PHP. Whats your opinion about Ionic and CodeIgniter?

Member Avatar
Member Avatar
+0 forum 6

Last week a group of six 'm-commerce' experts took part in a round robin discussion in Manchester, England to determine the best ways forward for developers interested in creating a serious mobile web presence yet wanting to make money through the medium of mobile advertising at the same time. Anyone who has been involved in this particular area of Internet growth will appreciate just what a serious challenge the mobile web presents to those who have not invested, in thought and deed as much as financially, in getting to grips with a realistic m-commerce marketing strategy. Unless you are creative …

Member Avatar
Member Avatar
+0 forum 3

Hello I'm try to use a hardware to create key for encryption in mobile devices( in a model at first) this is my question: can i get my keys from TPM? If is it possible, how can i do it?

Member Avatar
Member Avatar
+0 forum 4

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

Does all .apk files can be decompiled no matter on how they are protected and secured, and recompile back in apk file? I have an apk file which i need the source code to change something a little bit. I tried using [javadecompilers](http://www.javadecompilers.com) but i did not get the main files with code i need. Is there any alternative to this site or is there any possible way of achiving this? Thank you.

Member Avatar
Member Avatar
+0 forum 4

I have a code that picks contacts, the problem is that if a user pick a contact or choose a contact that was not saved on a phone but was saved on google contacts (This is a way many people now save their contacts so that should their phones are lost but contacts are ever lost because when s/he gets a new phone, s/he will just sign in with google account and get his/her contacts) now my app is able to get the name and return it to an EditText but the number/phone number is not returned in these contacts. …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am an absolute beginner to Xamarin and just started to develop a small application wherein, I am not getting any idea about why the BindableProperty changes are not getting reflected inside the view model. Presently, I have written my BindableProperty in a separate Class and the code is as follows: public static readonly BindableProperty IsValidEntryProperty = BindableProperty.Create("IsValidEntry", typeof(bool), typeof(MaxLengthValidatorBehavior), false, BindingMode.TwoWay); public bool IsValidEntry { get { return (bool)GetValue(IsValidEntryProperty); } set { SetValue(IsValidEntryProperty, value); } } protected override void OnAttachedTo(Entry bindable) { bindable.TextChanged += HandleTextChanged; base.OnAttachedTo(bindable); } void HandleTextChanged(object sender, TextChangedEventArgs e) { IsValidEntry = false; IsValidEntry = …

Member Avatar
Member Avatar
+0 forum 2

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

Hi I am developing an app for a specific facebook page. The problem is that when i load URL in mywebview.loadURL(https://web.facebook.com/CoversShopping/). The page opens successfully but the page always reload when the oreintation changes. This problem only occurs for the above type Urls(i-e when I give the link of specific facebook page). But if i load URL as www.facebook.com or www.youtube.com or http://www.easyonlineconverter.com/converters/case_conveter.html no any page reload occurs as I have set android:configChanges="orientation|screenSize". Even If I give URL of any website with its specific page ,no page reload occurs when orientation changes. Page reload only occurs in case of specific …

Member Avatar
Member Avatar
+0 forum 1

I have made a simple app which gets curren location (latitude and longitude). It is working perfectly. But now i want to take location updates. For this i implemented LocationListener interface . I overridded the metod On location Change, but when i run the application, this method does not respond in any way. There is no error, no exception and no response I have attached my code. Please check it and guide me package com.example.hp430.gpslocaction; import android.Manifest; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.provider.Settings; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.support.v7.app.AlertDialog; import …

Member Avatar
+0 forum 0

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

Hello i want to run my Ionic Project on my android device when i run `ionic cordova run android` on node.js command prompt i am getting this error ..... [14:26:25] webpack finished in 8.20 s [14:26:25] sass started ... Witout `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning [14:26:26] sass finished in 1.59 s [14:26:26] postprocess started ... [14:26:26] postprocess finished in 17 ms [14:26:26] lint started ... [14:26:26] build dev finished in 15.13 s > cordova run android Android Studio …

Member Avatar
Member Avatar
+0 forum 1

Hi Dw. This is my first Android app, and what I'm trying to do is to post a POST/GET method to my webserver using Http in Android studio. I also have a Textview which suppose to display echoed data from server which will be a response to a request since the php file I'm posting to simply echo back the data. Here is what I have: try { URL url = new URL("http://myURLAddress/run.php"); JSONObject postDataParams = new JSONObject(); postDataParams.put("name", "Mr.M"); Log.e("params", postDataParams.toString()); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout(15000 /* milliseconds */); conn.setConnectTimeout(15000 /* milliseconds */); conn.setRequestMethod("GET"); conn.setDoOutput(true); conn.setDoInput(true); OutputStream os …

Member Avatar
Member Avatar
+0 forum 3

Hello! I have installed android studio 3.0.1 in my laptop . I had some android projects in my desktop computer (with older version of android studio) But after installing latest version(3.0.1) of android studio in my laptop, i copied projects from my desktop to my laptop and opened that projects in my new android studio(3.0.1) But there appears an error: "Gradle project sync failed. Basic functionality(e.g editing, debeugging ) will not work properly" And in the console a message appears: ""Unable to resolve dependency for: 'app @UnitTest/compileClassPath: could not found any version that matches com.android.support: support-v4:27.+. I can't understand this …

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 want to access my SQL database with a Android Studio Emulator. I use `ionic cordova run android` and the project/app begins correctly but when i put the credentials (username and password) it stucks there. It works fine when i use `ionic serve` Any hint?

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

Hi, How can i calculate time difference in swift 2 between two dates/time and store in 2 different variables, one showing the full difference in terms of "Year, Month, Days, Hours, Minutes" & one variable for converting the total time difference in minutes. For example- First Date/time - 04/13/2016 8:11 AM Current Date/Time - 04/22/2016 12:53 AM Now one variable should display difference as "8 Day 16 hours & 43 Minutes", if there was a year & month difference, it should show that as well. And second variable should simply convert "8 Day 16 hours & 43 Minutes" into minutes …

Member Avatar
Member Avatar
+0 forum 3

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

I tried to run an Ionic 3 project from existing files using not C++ but Apache/Cordova and i am getting these errors. Idid a Typescript project works fine. But Cordova won't run with Javascript? Severity Code Description Project File Line Suppression State Error TS2304 Build:Cannot find name 'object'. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\compiler\src\compile_metadata.d.ts 168 Warning No compiler log specified, 'Clean' won't work. ionic2 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 320 Error TS1139 Build:Type parameter declaration expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS1109 Build:Expression expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS1128 Build:Declaration or statement expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS2304 Build:Cannot find name …

Member Avatar
Member Avatar
+0 forum 6

Hello i am getting an error on log about npm... Any suggestion? PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Web\External\npm.CMD" install npm WARN deprecated babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-minify npm WARN engine webpack@2.2.1: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"5.4.1","npm":"3.3.4"}) npm WARN deprecated babel-preset-babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-preset-minify npm WARN install Couldn't install optional dependency: Unsupported npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Web\\External\\Node.exe" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Web\\External\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! …

Member Avatar
Member Avatar
+0 forum 2

The End.