Most voted "ionic2" questions
Ionic 2 is the second version of the Ionic framework that aims to create hybrid applications for mobile devices. Use this tag for questions about features specific to version 2, for general questions use the tag [Ionic].
Learn more…217 questions
Sort by count of
-
1
votes1
answer298
viewsError while trying generates Ionic apk v2
Commando: ionic build android --prod Environment variables: ANDROID_HOME C:\Android\sdk CLASSPATH .;%JAVA_HOME% JAVA_HOME C:\Program Files (x86)\Java\jdk1.8.0_121 Path ;%JAVA_HOME%\bin Error: Error:…
-
1
votes1
answer74
viewsEquivalent to setOnItemLongClickListener in Ionic 2
I created a function in which when the user gives a click simple in item, shows a Toast, an alert, on the screen with the name of this item: Function in my file .ts: itemSelected(item: string) {…
-
1
votes1
answer352
viewsHow do I increment days to a date in Ionic 2
I don’t have much experience with Javascript dates, nor with the frameworks mentioned: For now what I managed was to display the current date on the front end using the following syntax: this.myDate…
-
1
votes0
answers483
viewsSave value to a variable
How can I save the value of a calculation done in front-end by passing to a variable in typescript, example: Typescript: valor:number=0; html: <ion-input type="number"…
-
1
votes0
answers144
viewsIonic 2 + One Signal for Notifications
My Ionic plugin is already integrated with Firebase and One Signal, I can already work with login and password and send notifications. My problem is customizing notifications. In the sound field, I…
-
1
votes2
answers475
viewsCreate menu of options
I need to make a menu of options in my application developed in Ionic 2. I already checked the documentation and found nothing to help me. Does anyone know how to do ? Do you have a tutorial or a…
-
1
votes0
answers22
viewsionic2 Access to camera on a Page
Good night of so much breaking my head, I decided to post here my doubt. I have a Page that accesses the camera device, but the camera uses the screen in full screen. I wonder if anyone has ever…
ionic2asked 7 years, 6 months ago Marcio Krul 36 -
1
votes1
answer123
viewsHow to popular an Sqlite database through a . sql file?
I have a file .sql and need to run all rows, insert all records that are in it, into a table within the Sqlite. Contents of the archive mydb.sql: CREATE TABLE tblVeiculo (VeiculoId INT, Codigo…
-
1
votes0
answers96
viewsI wanted to call this function within my anonymous function, how can I do that?
retonaEndereco(myLatlng,adress => { let getDistance = function (origin,destination) { let distance = geolib.getDistance(origin,destination); return…
-
1
votes1
answer261
viewsHow to view SCROLL Permanent Ionic2
Good afternoon, I have a problem, and I’d like your help. I want to display the SCROLL whenever I am on this screen, I tried in many ways to use the ion-scroll component and still, nothing. I tried…
-
1
votes1
answer241
viewsFIREBASE WARNING: Using an unspecified index
I’m getting following error: FIREBASE WARNING: Using an unspecified index. Consider Adding ". indexOn": "rota" at /motoristas to your security Rules for Better performance Firebase rules: { "rules":…
-
1
votes1
answer25
viewsApp does not go through login
I’m trying to validate the login, but is passing straight through and entering the home, I don’t know what could be going on: import { Component } from '@angular/core'; import {LoginPage} from…
-
1
votes0
answers72
viewsHow to leave one or more options preselected (ion-option)
I have an array that I fill with service data from the database. And I also have a relationship table in the database between user and service. I would like to mark as selected the options that the…
-
1
votes1
answer238
viewsIonic 3 Prevent app Exit
I made an application using Ionic 3. When this on the main screen and in case the user clicks the back button the application is terminated. I wanted to put a "Prevent appexit" that checks that the…
-
1
votes0
answers253
viewsHow to install and use Cordova-plugin-term-Printer in IONIC 2
I’m having difficulty installing this plugin Cordova in IONIC 2 "Cordova-plugin-term-Printer" for this not being a native plugin got limited. Believe me I’ve been searching for over 7 days and…
-
1
votes1
answer152
views -
1
votes1
answer50
viewsProjects created with Ionic 2 do not execute
I create my projects without problems, but at the command: ionic serve, I have the following result: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1…
-
1
votes1
answer435
viewsI am trying to install Ionic 2 but it is giving error in the time to run npm install -g Ionic codova
Gustavo@Gustavo-PC MINGW64 ~ $ npm install -g cordova ionic npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or…
-
1
votes0
answers109
viewsIonic 2 Error when generating build for android in windows 10
$ ionic build android > ionic-hello-world@ ionic:build C:\Users\Gustavo\Documents\Ionic2\like_you > ionic-app-scripts build [20:16:23] ionic-app-scripts 1.3.0 [20:16:23] build dev started ...…
-
1
votes1
answer583
viewsProperty forChild does not exist on type typeof Ionicmodule Ionic 2
I created a new Ionic project 2: ionic start myApp blank --V2 Until then, only when I create a new page: ionic g page login He’s making the following mistake below: Typescript Error Property…
-
1
votes1
answer2423
viewsDifficulty with text alignment on Ionic 2 button
I started my studies with Ionic 2 these days and I’m not able to align the text of the Ionic buttons to right or left, it is only in the center. 1 - I tried to use the markup informed in the Ionic…
-
1
votes0
answers375
viewsCordova-plugin-file --- Download file outside the APP folder - Ionic 2/3
People would like a help, I need to save files that the user downloads from the app on the device, put out of the app folder. All file plugin paths. Example: Cordova.file.dataDirectory Do not answer…
-
1
votes1
answer1488
viewsImage cannot be loaded in the application
The image appears normal when running on "Ionic serves" but when I run on a device ionic run android --device it cannot be loaded, strange that I put an alt in the img tag and can only be displayed…
-
1
votes0
answers769
viewsJson object in Ionic 2
I’m starting with Ionic 2 and Node.js and I’m trying to consume the API I created, but I’m having trouble locating the problem when I try to generate a ngFor listing from a JSON, so I’ve read ngFor…
-
1
votes2
answers979
viewsHow to add object property in Array to *ngFor
I have an array passed to a *ngFor, how do I sum the values of a property, vlr, for example. order=[ {"qtd": Number(1),"vlr":Number(3.50)}, {"qtd": Number(6),"vlr":Number(4.00)}, {"qtd":…
-
1
votes0
answers423
viewsIonic 3 app with white screen
I generated an Ionic tabs app did not change anything, I left as it was, then created an apk, when I run the app on android it gets a white screen after splash screen.
-
1
votes1
answer448
viewsIonic 2, Http request only works after second call
I created an application sidemenu and a provider (conexao-home.ts). On a test page I created the function buscarUsuarios (associated with a button), calling the function getRemoteUsers in the…
-
1
votes1
answer111
viewsIonic Shopping List
Good night, you guys. I’m making an application for Ionic that consists of a cash register. The customer selects the item that will buy and at the end appears the total amount of the purchase,…
-
1
votes1
answer254
viewsSum of <select> values inserted in <input>
I am giving a practiced in Ionic 2, I am building a basic app for this, with some interesting functions to study. I want when the user selects two "ion-option" from two different "ion-select", these…
-
1
votes0
answers1005
viewsHow to optimize the loading time of an Ionic2 project?
I made an application with Ionic2 from scratch, using by default the project "Blank" following the documentation. The project itself is running smoothly. But one thing that intrigues me a little is…
-
1
votes0
answers78
viewsListen/Record speechRecognition audio
I built a simple application using speechRecognition startListening() { let options = { language: 'en-US' } this.speechRecognition.startListening().subscribe(matches => { this.matches = matches;…
-
1
votes0
answers389
viewsManipulating data in Ionic 2
I am using Ionic 2 for the development of an application, I would like to know how I can use the values sent from a form within a method. I have the following form: <form [formGroup]="updateUser"…
-
1
votes1
answer148
viewsChanges in Apple’s business rules
Good morning. This week I’ve been reading about some changes to Apple’s business rules for 2018, where applications working with the white label model will no longer be supported. I’ve been reading…
-
1
votes0
answers136
viewsGeolocation and HTTP requests in the background with Ionic 2
I’m creating an app with Ionic 2 in this application I need to take the geolocation of the device and make HTTP requests to a web service that I have published. I used Sqlite to store the…
-
1
votes0
answers57
viewsSequential execution
I am new to the world of angular and Ionic. I have a main function that executes a command in the bank if this command gives error it calls another function . So far so good, only that this function…
-
1
votes2
answers499
viewsHow to make a Mask input by simulating money with Ionic 2?
I believe the question is already well explained, but I would like to know how I can create a mask using decimal numbers to simulate the actual mints ( 1.000,00).
-
1
votes1
answer1896
viewsParameters and variables between components [Ionic + Firebase]
I’m with a seemingly simple doubt. I have a project connected to firebase. In this specific case, I have a *ngFor list of breweries on the "breweries.html" page where I pull all the main JSON nodes…
-
1
votes1
answer159
viewsIonic 2 and One Signal how to use the handleNotificationOpened() function
I have an app that is 90% ready, notifications are already set up with One Signal, but I want to send the user to a specific page when they click the notification, and this page may differ depending…
-
1
votes0
answers47
viewsWhat is the difference between page and Component?
There is a difference between the generate page and the generate component? when should I use one and not the other? This changes something regarding Lazyload?
-
1
votes0
answers127
viewsAuthentication with Ioni2, Angular 2
I have the class ts Authprovider import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; @Injectable() export class…
-
1
votes0
answers249
viewsApp update in Play Store
I have the following problem, I have an application made in Ordova that I published it in the Play Store, this application got some users... Before the demand refits the application from scratch,…
-
1
votes1
answer117
viewsProblem with angular Expression Angular2 Ionic2
I work with both angular2/4 and Angularjs 1.5. In both I had no problems running *ngFor (for angular2/4) as ng-for (for Angularjs 1.5). However, working now with Ionic 2, when creating a list, with…
-
1
votes1
answer331
viewsHow to view multi-request loading with Ionic 3 and Angular 4
How can I display a loading on the screen during the request time of 2 or more required with Ionic 3 and/or Angular 4? I tried to call the loading in the two requests, but whenever the request…
-
1
votes1
answer129
viewsLocation Accuracy Ionic Plugin 2
I’m using an API Location Accurancy Ionic v2 follows the code: cordova.plugins.locationAccuracy.canRequest(function(canRequest){ if(canRequest){ cordova.plugins.locationAccuracy.request(function…
-
1
votes1
answer415
viewsHow to download PDF file from server in Ionic 2?
I’m using the MPDF_6_0 library to generate Pdfs files, testing unitarily works, but I can’t trigger it through the Ionic project. How to do this? Thanks to all of the community. import { Injectable…
-
1
votes1
answer167
views`Uncaught Referenceerror: floor is not defined` when trying to use floor and Random to choose an item from an array randomly
I have the following array: var cartasViradas=[ 'assets/img/1.png', 'assets/img/2.png', 'assets/img/3.png', 'assets/img/4.png', 'assets/img/5.png', 'assets/img/6.png', 'assets/img/7.png',…
-
1
votes1
answer48
viewsProblem when trying to publish multiple Apks in Google Play Store
Good morning, everyone. I developed an application with Ionic using the crosswalk plugin. When compiling, two . apk files are generated, one for Arm7 architecture and one for x86 architecture. So…
-
1
votes0
answers218
viewshttp.post is not working
I am trying to submit a form to an API with the http post. Angular, but I’m not getting it: Code: save(auditoria):Observable <{}>{ let headers = new Headers(); headers.append('Content-Type',…
-
1
votes1
answer459
viewsCentralize div content in Alertcontroller
I have the following code below let alert = this.alertCtrl.create({ message: '<div><img height="50" src="assets/imgs/success.png"></div><div>' + '<p>Cadastrado com…
-
1
votes0
answers71
viewsChat Notification Firebase Onesignal
I developed a chat with Ionic+firebase, and at this time I’m trying to develop the notification system if a new msg will be received I’m using Onesignal, but I don’t have much idea how I could…
firebase ionic2 onesignal firebase-cloud-messagingasked 6 years, 11 months ago Maicon Luiz Anschau 11