Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49088 articles
Browse latest View live

iOS Remote Debugging

$
0
0

@valentinoa wrote:

Hi all,

I’m trying to remotely debug my ionic app that is on an iOS device on my windows computer (I’m doing the building on my friend’s mac but I’d like to at least debug on my Windows laptop).

I have set up the chrome web inspector so that I can inspect any safari page that is open on the phone (and it works). I used https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter

The weird thing is that when I open the ionic app I don’t see it in the chrome://inspect view, but like I do see Safari tabs.

We are using cordova-ios-4.5.3.

Does anyone have an idea of what we could do?

We are out of ideas

Posts: 1

Participants: 1

Read full topic


Reporting possible SASS error

$
0
0

@GuiLima wrote:

In my APP, i had remove this lines

   199: .toolbar-background-md {
   200:      background: $color-base;
   201:  }

from

ionic/src/components/toolbar/toolbar.md.scss

Because: Override SASS variable: $toolbar-background

Posts: 1

Participants: 1

Read full topic

Ionic rockstar developers in Sydney

$
0
0

@Channas wrote:

I am looking for Ionic developer based in Sydney for a long term healthy food delivery app development. Anyone local interested in working on something revolutionary?

Posts: 1

Participants: 1

Read full topic

How can I concatenate two variables in HTML?

$
0
0

@khalilben wrote:

Hi,

Any idea how to concatenate two variable into one value ?

<ion-input formControlName="iNom" type="text" value="{{userDetails.first_name}}{{userDetails.last_name}}" [(ngModel)]="userData.NomConducteur"></ion-input>

Posts: 1

Participants: 1

Read full topic

Show error if empty

$
0
0

@khalilben wrote:

Hi,

Hi to show an error and don’t POST if there is no data ??

  declarerSinistre(){
    //http://michael.laffargue.fr/blog/2016/04/17/angularjs2-send-http-post-request-with-parameters-to-php/
    var headers = new Headers();
    headers.append('Content-Type', 'application/x-www-form-urlencoded');
    this.getData();

    var params = 'ClientId='+this.data.id+'&NomConducteur='+this.userData.NomConducteur+'&TelConducteur='+this.userData.TelConducteur+'&CinConducteur='+this.userData.CinConducteur+'&latitude='+this.la+'&longitude='+this.lo;
    this.http.post(this.apiSinistre, params , {headers: headers})
      .subscribe(
        data => this.afficherAlert('Réussite','Sinistre Déclaré'),
        err => this.afficherAlert('Erreur','Sinistre Non Déclaré')
      );
  }

Because it doesn’t work with this code, it send an undefined value

Posts: 1

Participants: 1

Read full topic

Upload pictures via api

$
0
0

@khalilben wrote:

Hi,

What is the best way to upload multi picture through an api ?
The form contain both text input and picture

Posts: 1

Participants: 1

Read full topic

How to add script in ionic 3 index.html (Tawk chat)

$
0
0

@puujee wrote:

index.html

<bod>
...............
.
............
..............
<!--Start of Tawk.to Script-->
 <script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
 var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/5968515a6edc1c10b0345ef8/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
 s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>

ionic cordova emulate android --livereload work

ionic cordova emulate android not working

what to do

Posts: 1

Participants: 1

Read full topic

Ionic submitting multiple forms mysql rest API

$
0
0

@rootthenile wrote:

Hello folks, I am new here on Ionic framework

i’m trying to find the best ways and what I tools/codes I needs to build an Ionic Application with multiple form inputs and this forms inputs I need to handle it in a dashboard (PHP Fronted).

I want the form inputs go to a Fronted Dashboard (CURD) and in fronted I see all data waiting for approve to send it to the application after I approved it.

this forms will contains image/personal details

woocommerce will be common in this process the apps will show products and I need user to send some of this products to view it in the app this products already in a wordpress

my question is how and what the best ways or toold can I use to help me build this application with this kind of functions in this moments.

I would like to know if I can send this forms inputs to mysql database with a curd dashboard in php to manage the data.

then send this data to wordpress and the api of woocomrrce will show the products in ionic after i approved it from dashboard to send it to ionic application ?

How to send a form input a location/personal to my email?

How to create, read, update and delete operation ?

Posts: 1

Participants: 1

Read full topic


How to Reduce the tab Width

$
0
0

@SaeedAnsari wrote:

Hello

i am trying to see if i can add shape to the tabs, instead of them taking the full bottom real estate, say, is there a way to make the tabs size only 50% width, leaving the other 50%

Posts: 1

Participants: 1

Read full topic

Windows build fails on Ionic 3

$
0
0

@akr_rajkumar wrote:

Hi, I’m working on an Ionic 3 project. When I try to take windows Build, I’m getting the following error message

D:\Project_Sample\platforms\windows\CordovaApp.Windows10.jsproj(61,5): error MSB4019: The imported project “C:\Program Files (x86)\MSBuild\Microsoft\V
isualStudio\v14.0\Microsoft.VisualStudio…Default.props” was not found. Confirm that the path in the declaration is correct, and that the
file exists on disk.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

I’ve already installed Visual Studio 2017, Build tools and Windows SDK.

In the error it is showing the MSBuild version as v14.0, but in my system I can able to find only version 15.0. Is there any possibilities to change the version in my project?

cli packages: (C:\Users\akrra\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.18.0
ionic (Ionic CLI) : 3.18.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.2
Cordova Platforms  : android 6.3.0 windows 5.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v9.2.0
npm  : 5.5.1
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

Posts: 1

Participants: 1

Read full topic

Popover to show 3 div using ngIf

$
0
0

@akr_rajkumar wrote:

Hi,

I want to have a Popover button with 3 options, when I click any of the 3, it should show me particular Div element.
My assumption is, when I click a button in the popover, I can generate a key value, using that I can show the div with ngIF but I can’t get it.

Please advice a proper way to do Popover in Ionic 3

Posts: 1

Participants: 1

Read full topic

Upgrade to NODE 8.9.1 failed npm install - requires a peer of @ionic-native/core but none is installed

$
0
0

@codiqa10004205 wrote:

PS C:\Users\2bher\WebstormProjects\ionic3-angular4_2> npm install @ionic-native/core --save
npm WARN @ionic-native/google-maps@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none is installed. You must install peer dependencies yourself.

npm ERR! Cannot read property '0' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\2bher\AppData\Roaming\npm-cache\_logs\2017-11-19T10_08_51_834Z-debug.log
 verbose unlock done using C:\Users\2bher\AppData\Roaming\npm-cache\_locks\staging-31c922f28ba7a733.lock for C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules\.staging
965 warn @ionic-native/google-maps@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none is installed. You must install peer dependencies yourself.
966 verbose stack TypeError: Cannot read property '0' of undefined
966 verbose stack     at rmStuff (C:\Program Files\nodejs\node_modules\npm\lib\unbuild.js:61:24)
966 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
966 verbose stack     at ret (eval at makeNodePromisifiedEval (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)
966 verbose stack     at lifecycle.then.then (C:\Program Files\nodejs\node_modules\npm\lib\install\action\unbuild.js:12:12)
966 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
966 verbose stack     at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
966 verbose stack     at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
966 verbose stack     at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
966 verbose stack     at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
966 verbose stack     at Promise._fulfill (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:638:18)
966 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\nodeback.js:42:21
966 verbose stack     at <anonymous>
967 verbose cwd C:\Users\2bher\WebstormProjects\ionic3-angular4_2
968 verbose Windows_NT 10.0.15063
969 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@ionic-native/core" "--save"
970 verbose node v8.9.1
971 verbose npm  v5.5.1
972 error Cannot read property '0' of undefined
973 verbose exit [ 1, true ]

How can I solve it quickly ?

Posts: 1

Participants: 1

Read full topic

Ngx translate is broken when used with ionic 3 layzy loading

$
0
0

@lolaswift1 wrote:

ngx translate is broken when used with ionic 3 layzy loading and is not being fixed at all.
What next??

Posts: 1

Participants: 1

Read full topic

Build APK Problem

[ts] Property 'subscribe' does not exist on type '(res: any) => any'

$
0
0

@newtonmunene wrote:

Hi guys,

I’m working on a http provider. The issue is with the subscribe module after mapping the json response.
Here is the code for the provider and a screenshot:

import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';


/*
  Generated class for the PostsProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class PostsProvider {
  data: any = null;

  constructor(public http: HttpClient) {
    console.log('Hello PostsProvider Provider');
    // this.load();
  }

  load() {
    if (this.data) {
      // already loaded data
      return Promise.resolve(this.data);
    }

    // don't have the data yet
    return new Promise(resolve => {
      // We're using Angular HTTP provider to request the data,
      // then on the response, it'll map the JSON data to a parsed JS object.
      // Next, we process the data and resolve the promise with the new data.
      this.http.get('https://randomuser.me/api/?results=10')
        .map((res => res.json())
        .subscribe(data => {
          // we've got back the raw data, now generate the core schedule data
          // and save the data for later reference
          this.data = data.results;
          resolve(this.data);
        }));
    });
  }

}

I’m new to ionic and still learning. I’ve been following tutorials but now i seem to be stuck. Ive tried looking at posts from this and other forums but none have worked for me. Anyone please help. I’m sure its just a small error but it’s huge when you’re learning.

Posts: 1

Participants: 1

Read full topic


Using Provider as Singleton

Ionic 3 - Dynamically change page theme using Json data

$
0
0

@Murlidhar wrote:

I have a page for which I would like to change the color depending on the data passed. In Json file I have mentioned the color which needs to be applied.

for Example list Item 1 data consist of color : red, list Item 2 - Blue,…

when I select one of the list item, I push a new page to the stack and so I pass the data using navParams. Now, all my css is in .scss file and I need some way to pass the color from .ts to .scss file. I have a scss variable to which I would like to override the data.

I tried to do this :

$theme = this.data.theme;
I have defined $theme : #00ff00 in my .scss file.

Uncaught (in promise): ReferenceError: $theme is not defined
ReferenceError: $theme is not defined

I cannot create all the themes beforehand because there could be 1000s of varying colors and so having all the themes defined is not possible. I prefer passing color to the scss file and overriding all the colors present in the page but scss files are already compiled during build.

How can I get the apply color coming from JSON data to few css properties in a given page. I have like blue color for example in a page in several places and I want to change all of which by this new color.

Posts: 2

Participants: 2

Read full topic

Login with Instagram

$
0
0

@hoangphan92 wrote:

Hello everybody, I’m trying create login Instagram with auth0 and it not work . Please suggest me sample ! Thank

Posts: 1

Participants: 1

Read full topic

Get an avatar and subscription details to post to server

$
0
0

@serkanhamarat wrote:

Hi all,
We’re expert in PHP/Javascript but novice in “Ionic” and “Angular.js”,
wanna make a new sign-up page and start to create ios and android apps.
We couldn’t find a documentation, tutorial or an example.
Page will be a simple form and supposed to do:
1- pick an avatar photo from gallery or instant from camera.
2- get user details with a simple form.
3- post all to the apache server.

But we could not write necessary codes in ionic.
Someone can show me a guide, tutorial or an example?

version: ionic 3
target: android/ios

NOTE: Web service is ready to get $_POST and $_FILES arrays in PHP.
We just lack of experience in Ionic.

Posts: 1

Participants: 1

Read full topic

Question about JSON

$
0
0

@thamdee102 wrote:

I have my JSON file like this

{
results: [
{
gender: "female",
name: {
title: "mrs",
first: "یاسمن",
last: "صدر"
},
location: {
street: "7210 جمهوری اسلامی",
city: "سنندج",
state: "آذربایجان شرقی",
postcode: 17775
},
email: "یاسمن.صدر@example.com",
login: {
username: "smallswan925",
password: "deputy",
salt: "1a7qeHhw",
md5: "cc5c7636837e3c30d9eff75d87c4a2c3",
sha1: "db4c4adffa45ae6d8458291117dcbf1c4194e65f",
sha256: "77897c1af06ce545f531c11257613d797870645c6ef97ff4daea5f5acdea8c16"
},
dob: "1973-05-23 08:39:47",
registered: "2009-12-06 14:26:39",
phone: "074-81773603",
cell: "0955-795-7819",
id: {
name: "",
value: null
},
picture: {
large: "https://randomuser.me/api/portraits/women/34.jpg",
medium: "https://randomuser.me/api/portraits/med/women/34.jpg",
thumbnail: "https://randomuser.me/api/portraits/thumb/women/34.jpg"
},
nat: "IR"
},
{
gender: "male",
name: {
title: "mr",
first: "jonas",
last: "roger"
},
location: {
street: "6602 place de l'église",
city: "poitiers",
state: "puy-de-dôme",
postcode: 41062
},
email: "jonas.roger@example.com",
login: {
username: "purplefrog355",
password: "tree",
salt: "3XkLGhNI",
md5: "ad9c73642a4928b25235ef19d30f1aa6",
sha1: "4f7972aa8edcb671efdf3acfc6a9c4df0e389c89",
sha256: "2f20a739cee149bc32bd7a353bb450d2d3945955353e231e4d363974d6ebc50d"
},
dob: "1960-01-29 06:18:49",
registered: "2005-09-04 04:00:58",
phone: "05-30-49-75-95",
cell: "06-67-53-81-66",
id: {
name: "INSEE",
value: "160078570904 70"
},
picture: {
large: "https://randomuser.me/api/portraits/men/55.jpg",
medium: "https://randomuser.me/api/portraits/med/men/55.jpg",
thumbnail: "https://randomuser.me/api/portraits/thumb/men/55.jpg"
},
nat: "FR"
},
{
gender: "female",
name: {
title: "ms",
first: "özsu",
last: "öztürk"
},
location: {
street: "5649 bağdat cd",
city: "yalova",
state: "gaziantep",
postcode: 50527
},
email: "özsu.öztürk@example.com",
login: {
username: "blackfrog644",
password: "enjoy",
salt: "TVeev2ro",
md5: "a1ba8138881554a8b4942aaa21d0b749",
sha1: "92d9b1382824e12549163878a56dad06583a424f",
sha256: "c2cdf22bb28d970cd53ca01f84d98b058542469a495f02ea31bc828ba860107f"
},
dob: "1956-04-27 17:40:53",
registered: "2011-05-26 07:52:07",
phone: "(543)-496-5784",
cell: "(134)-919-2018",
id: {
name: "",
value: null
},
picture: {
large: "https://randomuser.me/api/portraits/women/11.jpg",
medium: "https://randomuser.me/api/portraits/med/women/11.jpg",
thumbnail: "https://randomuser.me/api/portraits/thumb/women/11.jpg"
},
nat: "TR"
}
],
info: {
seed: "dfb6ec4988dbe5c3",
results: 3,
page: 1,
version: "1.1"
}
}

my home.ts like this:roll_eyes:

import { Component } from '@angular/core';

import { NavController } from 'ionic-angular';
import { Http } from '@angular/http';
import 'rxjs/Rx';
import 'rxjs/add/operator/map';
@Component({
	selector: 'page-home',
	templateUrl: 'home.html'
})
export class HomePage {
	public people: any = [];

	constructor(public navCtrl: NavController, public http: Http) {
		this.getItem();
	}

	getItem() {
		this.http.get('https://randomuser.me/api/?results=3')
			.map(res => res.json())
			.subscribe(
				data => {
					this.people = data.results;

				},
				err => {
					alert(err);
				}
			)
	}

}



How can i get only specified person of this JSON (like name, gender, email of only the first person)

i tried like this in my home. html

<ion-header>
	<ion-navbar>
		<ion-title>
			Ionic Blank
		</ion-title>
	</ion-navbar>
</ion-header>

<ion-content>
	<ion-list>


			<h2 >{{people[0].gender}}</h2>

	</ion-list>
</ion-content>

it turned out error "Cannot read property ‘0’ of defined "

Posts: 1

Participants: 1

Read full topic

Viewing all 49088 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>