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
16
votes
10 answers

ionic build android's Error : copyFileSync: could not write to dest file

When I use the command : ionic cordova build android here is what I get : cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml Parsing …
mehdigriche
  • 444
  • 1
  • 4
  • 14
16
votes
1 answer

Testing async (Promise) methods in Angular 2 Services

This is an interesting problem: I'm trying to test a Service, that uses the Ionic BarcodeScanner. I have a repo based on the ionic unit-testing repository in order to try testing. I'm mocking the BarcodeScanner.scan method via…
Sentenza
  • 1,269
  • 11
  • 24
16
votes
6 answers

Cannot determine the module for class X in X.ts! Add X to the NgModule to fix it error in ionic2

I am facing an issue when I try to build my app using the following command : ionic cordova run android --prod --release Everything runs fine if I run the command as below: ionic cordova run android The error Iam getting is : Error: Cannot…
user1188867
  • 3,726
  • 5
  • 43
  • 69
16
votes
4 answers

Ionic Pull to Refresh (Refresher) Inside an Element

Is it possible to implement Ionic's pull to refresh (aka "Refresher") inside of an element instead of on an entire page? This would be useful when designing an app that has a smaller scrollable section within a page. With the current behavior, the…
Tyler
  • 3,616
  • 3
  • 22
  • 34
16
votes
3 answers

Ionic 3 : How to use cordova plugins

I'm trying to use this cordova plugin https://github.com/litehelpers/Cordova-sqlcipher-adapter. Here my code : ... import { Platform } from 'ionic-angular'; declare var cordova; @Component({ selector: 'page-home', templateUrl:…
Whyzx
  • 696
  • 1
  • 6
  • 14
16
votes
5 answers

How can I use content.scrollTo() for ion-scroll in ionic2?

I try to scroll to a fixed position, for example scrollTo(500, 20). Let's say that you are on a device, which has got a width of 300 pixel. The scroll target is now out of the screen scope, you have to scroll to the right. I solved this by doing the…
Tobias Bambullis
  • 736
  • 5
  • 17
  • 45
16
votes
5 answers

Ionic2 ion-toggle get value on ionChange

I have this toggle here: When I click this I want to call the method notify passing the toggle value by parameter. How I can get the toggle value? Thank you!
bbcbreno
  • 378
  • 1
  • 2
  • 14
16
votes
8 answers

How to scroll element into view when it's clicked

Am looking for something similar to scrollIntoView() within Ionic2 to use when I click on a button, for example. None of the methods detailed in ion-content help.
user1275105
  • 2,643
  • 5
  • 31
  • 45
16
votes
3 answers

Get data async before a `Page` gets rendered

What is the correct way to get data async before a Page gets rendered? Angular2 suggests the @CanActivate decorator as far as I understand it. Sadly this is not working with Ionic2, at least not for me and for others Apparently Ionic2 does…
atx
  • 266
  • 3
  • 15
15
votes
11 answers

How to remove small caret from ion-select in ionic4

I want to remove the inbuilt grey small caret from ion-select, and use my custom caret(arrow) instead. Code: ion-select { color: grey; background:url("/assets/resources/img/ArrowDownConfig.svg"); } But my css code is unable to precedence over…
Kunal Ranjan
  • 192
  • 1
  • 2
  • 13
15
votes
6 answers

Why am I getting the error plugin_not_installed with the Ionic Framework plugin healthkit?

I have been using Ionic Framework for a while but I have recently come across this error plugin_not_installed for the Health Kit plugin which I know I have based on my ionic cordova plugin list output. $ ionic cordova plugin list > cordova plugin…
arodebaugh
  • 538
  • 1
  • 8
  • 26
15
votes
7 answers

IONIC 3 CORS ISSUE

I am having a CORS issue with Ionic 3 when attempting to make GET calls to an API. I am using Ionic local server, running ionic serve in the command line for live server. Error No 'Access-Control-Allow-Origin' header is present on the requested…
Chris Simmons
  • 249
  • 2
  • 7
  • 19
15
votes
6 answers

To disable bouncing effect in ios scroll ionic 3

I tried some methods to disable bounce effect set no-bounce attribute to ion-content And added styles to ion-content to disable bounce. Still no fix to my problem.
Abinesh Joyel
  • 2,043
  • 2
  • 13
  • 18
15
votes
3 answers

Property 'subscribe' does not exist on type 'Promise'

I'm still confused about how rxjs works. I am building an Ionic app that makes a request to my server and expects json. I have successfully been able to subscribe to an http.post and get the data I need. However now my problem is that I need to…
dr_ermio
  • 811
  • 1
  • 10
  • 21
15
votes
2 answers

Use a filter or pipe to load product categories into pages in Ionic 2?

I wish to create a Ionic 2 app with 6 pages, I am unsure whether to use a Pipe or a Filter for the individual category pages and the code I need to do that. Each category page can load the relevant products defined by the "applecat" category. Below…
me9867
  • 1,519
  • 4
  • 25
  • 53