Did you end up finding a fix for this?
Updating ionic v1 app with latest cli
Help Setting up Environment for Old Project (2.0.0-beta.11)
Thanks Anna, but problem is the Ionic CLI is typically installed globally and does not appear in package.json. I ended up googling Ionic 2.0.0-beta.11 and came across a post that listed the development environment and was able to find the appropriate CLI version to install. "ionic": "^2.1.0-beta.3"
worked for me (installed locally.)
And then to serve:
./node_modules/ionic/bin/ionic serve
Hope this helps someone
OneSignal Plugin Error
No, i haven’t found a solution to this problem yet.
I guess i will post this problem on Stackoverflow
[Ionic 4] Remove page from navigation (Router / NavController)
I’m facing similar problem and can’t seem to find a way to go around this.
When the user opens the app first time, go to login, after login navigate to dashboard, but when the back button is pressed it show login again. Can’t find a way to remove this page after login.
Another thing is that placing an if condition on app.component.ts to show login if not logged in, shows the dashboard for a second and then the login page. If I make the login page the default page, when the user is in dashboard and hits back button it show login again.
This is a freaking nightmare
Ionic 4 navCtrl problem
When the user opens the app first time, go to login, after login navigate to dashboard, but when the back button is pressed it show login again. Can’t find a way to remove this page after login.
Another thing is that placing an if condition on app.component.ts to show login if not logged in, shows the dashboard for a second and then the login page. If I make the login page the default page, when the user is in dashboard and hits back button it show login again.
Problem with infinite-scroll
Here is the code inside of my ion-grid
element :
<ion-row>
<ion-card *ngFor="let user of users">
<ion-item>
<ion-avatar item-start>
</ion-avatar>
<h2 text-capitalize>{{ users.firstName }} {{ users.lastName }}</h2>
</ion-item>
<ion-card-content>
{{ users.mail }}
</ion-card-content>
</ion-card>
<ion-infinite-scroll (ionInfinite)="loadMore($event)">
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading Users..."></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-row>
Ionic 4 not asking for Version Prompt
Thanks it works for me.
how to use primeNG with ionic 3?
how to use primeNG with ionic 3?
I followed in the footsteps of the primeNG documentation, but it did not work.
Npm error when start ionic v4 template
Close and reopen the console window, logout and login your user, restart your computer.
If this still doesn’t work, reinstall Node and make sure it is properly installed.
Help Setting up Environment for Old Project (2.0.0-beta.11)
Have you actually tried using the normal, recent Ionic CLI? It is usually compatible with all Ionic versions, back to Ionic v1.
Problem with infinite-scroll
Okay, I’ve changed a little bit my code in administrateur.html
Just to be sure that I could read my datas, I changed “{{ users.firstName }}” into "{{ users[0].firstName }} in order to access to the first data in my database. It’s working and it shows perfectly what I was expecting, but the card is generated as many times as I have datas registered (8 for now)
So it seems that it’s not about a problem with an actual element I would use, but about the way I’m accessing to my datas. How can I transform my syntax “users[0].firstName” into something that call each datas 1 by 1?
Error building on --prod android
Did you do what the error message tells you to do?
Ionic cordova run with –prod stuck at splash for iOS and Android
it is working with new project in both ios and android build with --prod.
this is the console log in xcode
2019-01-30 23:35:22.079443+0300 MyApp2[1436:29205] Apache Cordova native platform version 4.5.5 is starting.
2019-01-30 23:35:22.080408+0300 MyApp2[1436:29205] Multi-tasking -> Device: YES, App: YES
2019-01-30 23:35:22.135485+0300 MyApp2[1436:29205] CDVWKWebViewEngine: trying to inject XHR polyfill
2019-01-30 23:35:22.328397+0300 MyApp2[1436:29205] CDVWKWebViewEngine will reload WKWebView if required on resume
2019-01-30 23:35:22.328714+0300 MyApp2[1436:29205] Using Ionic WKWebView
2019-01-30 23:35:22.329932+0300 MyApp2[1436:29205] [CDVTimer][console] 0.240088ms
2019-01-30 23:35:22.330305+0300 MyApp2[1436:29205] [CDVTimer][handleopenurl] 0.147939ms
2019-01-30 23:35:22.334327+0300 MyApp2[1436:29205] [CDVTimer][intentandnavigationfilter] 3.875017ms
2019-01-30 23:35:22.334665+0300 MyApp2[1436:29205] [CDVTimer][gesturehandler] 0.116944ms
2019-01-30 23:35:22.334877+0300 MyApp2[1436:29205] CDVIonicKeyboard: resize mode 1
2019-01-30 23:35:22.336725+0300 MyApp2[1436:29205] [CDVTimer][keyboard] 1.728058ms
2019-01-30 23:35:22.370187+0300 MyApp2[1436:29205] [CDVTimer][splashscreen] 33.256054ms
2019-01-30 23:35:22.375913+0300 MyApp2[1436:29205] [CDVTimer][statusbar] 5.491972ms
2019-01-30 23:35:22.376109+0300 MyApp2[1436:29205] [CDVTimer][TotalPluginStartup] 46.502948ms
2019-01-30 23:35:24.499992+0300 MyApp2[1436:29205] Ionic Native: deviceready event fired after 331 ms
Ionic 3 Keyboard type and buttons
Hi,
I need to use different keyboard types on different inputs and also back, forward and OK button. This is exactly what i want;
I searched for topics but couldnt find any related. Thanks for your support…
Black background while taking screenshot
Hello, I’m using the plugin screenshot of the cordova but when trying to take a print along with the plugin camera preview where the image of the camera appears completely black. I already tried the orientation that has in the github page of the plugin but it did not solve. Does anyone know what I can do to solve this?
Tnks
Ion Button custom colors
I’m trying to set dynamic colors for the background-color
and color
of an ion-button
.
What I’ve achieved so far:
My problem: The button color overlays the button outline.
Is this an Ionic issue, how can I get around this?
My code:
Template:
<ion-button *ngFor="let d of districts" shape="round"
(click)="districtClicked(d)"
[ngStyle]="getDistrictStyle(d)"
color="{{getDistrictColors(d)[0]}}">
{{getDistrictName(d)}}
</ion-button>
Method in my Component:
getDistrictStyle(district: District) {
if (district) {
const colors = this.colorGenerator.getDistrictColors(district);
return {
'background-color': colors[0],
'color': colors[1]
};
}
}
getDistrictColors(district: District)
simply returns an array with two colors in hex (red and white in this case).
how to use primeNG with ionic 3?
Hello,
install it as described on primeng. It works really nicely.
So people need more iinformation, what you have done step by step and what does not work as expected. As said, it works really nicely.
Best regards, anna-liebt
Tab to return to root of page
Hello, my app has 4 tabs. Tab1 has a list, and tapping any item in the list will go to a detail page within the tab. If I press tab2, then press tab1 again, tab1 still shows the details page instead of the list page. If I press tab1 again, it then shows the list.
How can I set the tabs to always return to their original content (tab1 to return to list)?
Thanks.
Ionic cordova run with –prod stuck at splash for iOS and Android
Then best copy over your app piece by piece and see when it starts breaking.
Ionic 4.0.0 can't change the DIR dynamically as before with platfrom.sitDir('rtl') in ionic 3
With Ionic v4.0.0 I can’t change the direction from LTR to RTL by using platform.sitDir('rtl')
as before in ionic 3!!
I have searched a lot and didn’t find a replacement for platform.sitDir('rtl')
from ionic 4 docs!! or even instructions for RTL support!
I actually have done something with the following code document.documentElement.setAttribute('dir', 'rtl')
as an experiment it works but with a lot of issues too like the sidemenu position still on the left side not on the right! as it should.
I’m building a multi-language app ( English, Arabic ) so this a real pain for me!