Questions tagged [ionic3]

Ionic 3 was the newer version of Ionic, an open source SDK that enabled developers to build mobile apps using standard web technologies (HTML, CSS, and JavaScript). Ionic 3 finally took a back-seat to Ionic 4 in 2019 after 2 years. Ionic 3 was paired with Angular 4 and above.

GitHub Repository: https://github.com/ionic-team/ionic

Documentation: https://ionicframework.com/docs/v3/

10389 questions
20
votes
5 answers

Running Ionic 3 app on iPhone throws error: 2 duplicate symbols for architecture arm64

I am opening .xcworkspace of my Ionic 3 project and trying to run it on my device but I suddenly get the following error in Xcode: Ld…
Manuel RODRIGUEZ
  • 2,131
  • 3
  • 25
  • 53
20
votes
4 answers

How to loop through the data I receive from snapshot.val() and push it to an array based on keys

I want to loop through the data I receive from snapshot.val() based on user keys and push them into an array. I tried doing it with the help of for..in loop like this, firebase.database().ref('\interests').child("I would like to dine…
Gowtham
  • 3,198
  • 2
  • 19
  • 30
20
votes
12 answers

Lazy load pages random error:ERROR Error: Uncaught (in promise): invalid link:

I run into the following error every now and then. ERROR Error: Uncaught (in promise): invalid link:MenuPage at d (polyfills.js:3) at l (polyfills.js:3) at Object.reject (polyfills.js:3) at NavControllerBase._fireError…
Amr Eladawy
  • 4,193
  • 7
  • 34
  • 52
20
votes
2 answers

What is the purpose of the ionViewDidLoad() function?

On running ionic g page pageName I get generated .ts,.css and .html files. Inside the .ts file I have a function called ionViewDidLoad(){} and this is getting printed before my view appears. This can be done in constructor itself I believe? Can…
Mohan Gopi
  • 7,606
  • 17
  • 66
  • 117
20
votes
6 answers

ionic 2 page change event

I want to execute some code every time the page changes. I could add add an ngOnDestroy method to every page. It appears that I could use Ionic 2 page lifecycle hooks (e.g. ionViewDidUnload) for the exact same effect, but I haven't bothered to test…
jmilloy
  • 7,875
  • 11
  • 53
  • 86
20
votes
6 answers

ionic2 tap vs click

I am starting with angular2 and ionic2; In ionic2, I have a button that will call a method of my component. Like this: Should I use (click) - angular2 OR (tap) - ionic2? Like this: (click)
19
votes
2 answers

Ionic build: difference between --prod and --release flags?

When running an ionic build I'm curious as to the difference between the --prod and --release flags? The Ionic build docs state: --prod Build the application for production --release Create a Cordova release build and while the Cordova CLI ref…
Sensei James
  • 2,617
  • 30
  • 36
19
votes
1 answer

Firestore: Joins vs Firestore pricing

How do you perform cheap joins with Firestore? In Firebase, I would .map() the response and get the additional data based on a foreign key stored on each item. However, considering the pricing model of Firestore where you pay per reads, this…
Jakub
  • 479
  • 5
  • 17
19
votes
9 answers

How can Ionic be setup to render in the iOS style by default?

Right now the ionic app renders with android styling by default. Instead of using the ?ionicplatform=ios param every single time I'd like that to be the default option. I looked for hints in the config.xml as well as the config settings in…
David Haddad
  • 3,796
  • 8
  • 32
  • 40
19
votes
2 answers

Ionic3 : the best way to import css from node_modules

I am trying to import the .css from full-calendar package. First, I created a new component my-calendar (html, scss, ts). Then, I tried 3 different ways but only the last one worked for me: Reference the file directly, as the documentation…
Mario Padilla
  • 521
  • 5
  • 19
19
votes
5 answers

Ionic 2 Form goes up when keyboard shows

I am using latest version of ionic 2. My code has a
with a text input inside of it. When I try to type something in there on Android the whole page gets pushed upwards by the keyboard. html…
tushar balar
  • 736
  • 3
  • 8
  • 24
19
votes
7 answers

How to get the value from ion-select option

I have an array of object called options. this is my html code place
Mohan Gopi
  • 7,606
  • 17
  • 66
  • 117
18
votes
4 answers

Ionic-3 ion-input maxlength attribute not working

I have tried to add ion-input for maxlength , max attribute but it's not working as per expectation. Anyone knows…
core114
  • 5,155
  • 16
  • 92
  • 189
18
votes
1 answer

Error run on IOS emulator after update to IOS 11 - Ionic 3

After update to IOS 11, command ionic cordova run ios -lc --target="iPhone-6" I have error ** BUILD SUCCEEDED ** No available runtimes could be found for "iPhone 6". [ERROR] An error occurred while running cordova run ios --target iPhone-6…
wstudiokiwi
  • 880
  • 1
  • 15
  • 33
18
votes
2 answers

ionic 3 passing data to popover

I am unable to make it work. The popup calling code is presentPopover(myEvent){ //alert('invoke popup') let popover = this.popoverCtrl.create(PopoverPage, this.data); popover.present( { ev: myEvent …
Vik
  • 8,721
  • 27
  • 83
  • 168