If you don’t get any better answers, I would suggest ditching Ionic’s grid. I find ordinary CSS grid layout to be easier to work with, anyway, and will not suffer from this limitation.
Dynamic components and Ionic grid system
Prevent app to be killed from background
As a user, it would annoy me to no end if an app was able to override my choices about how I want to allocate scarce power resources.
Creating a popup form that appears only once
If you’re using this word the way that it’s typically used in RFCs and protocol or language specifications, what you ask for is categorically impossible in an Ionic app. A sufficiently motivated user with a copy of your app binary can use any feature of the app; access any page.
The only way you can enforce a restriction like this would be to require authentication with a server under your control, but if you’re saying:
…then there’s no way you can enforce MUST. As @maid says here (or I did in your other thread about this exact same topic), you can use Ionic Storage to do “would like to”, but not MUST.
How to play a .mov file in Ionic 4 Capacitor?
In your source tag type your specifying video/mp4, and your assets the file is mov. mov files are not supported with html5 video playback. You have to convert the video to a different format.
[SOLVED] Viewing html content in
Please tell me, how can i do this, thanks
[SOLVED] Viewing html content in
I would suggest doing absolutely everything possible under the sun to avoid it. It is deliberately made difficult for security reasons, and it also makes the framework’s life a lot harder. Life goes so much more smoothly if HTML stays in templates.
If you can back up and describe your requirements in a non-technical way, perhaps people can suggest alternative implementation strategies that avoid all the drawbacks of manual sanitization.
How to play a .mov file in Ionic 4 Capacitor?
I converted to mp4 h264 codec and I get the exact same result.
Ionic 4 Storage Token Access for HTTP Interceptor
Thanks, you saved me!!
Dual screen to show data differently - IONIC v4
What about a design that involves two apps - one for each screen?
How to render routes conditionally?
React IonTabs as nested route
How to render routes conditionally?
Thank you for that Aaron.
Is this a standard approach or just a work around that you have found? It feels like a lot of work around Ionic rather than using it. Not a criticism at all, I am just trying to understand.
It is not immediately obvious to me how 404 would be handled in this case?
Prior to your reply I had gone down the following route on every route:
<Route
path="/RegulatorDashboard/:id"
exact={true}
render={props => {
return user !== null ? (
<RegulatorDashboard {…props} />
) : (
);
}}
/>
This again cannot cover 404 and it really feels unsecure in case a future dev forgot to add the ternary on each route.
Feels like surely there is a more simple and standard route?
Thanks again, I really appreciate the help.
Ionic 4: Customizing ion-card background
FWIW, your rule takes effect without !important
if you put in the SCSS file for a specific page, as opposed to globally.
Additionally, it also works as expected for me even in global.scss
when using v5rc1.
Ionic 4: Customizing ion-card background
thanks for your reply…
If I put the rule in the scss for the specific page I have to do it for every page where
I wanna use this ion-card with that specific style right?
This is duplicated code at the end? Which is not so pretty :-/
With v5rc1 you mean a new Ionic version?
Ionic 4: Customizing ion-card background
Right, the one being discussed in this thread. I think this is the relevant commit that changed things.
Help us test the Ionic 5 Release Candidate!
We’ll have an upgraded migration guide here once it’s live: https://ionicframework.com/docs/building/migration
It will be fairly simple though. We recommend being on the latest version of Ionic 4 so you can see deprecation warnings specific to your app, which shouldn’t exist if you just created it.
Then, you’ll be running the following commands:
# For Angular
npm install @ionic/angular@latest
# For React
npm install @ionic/react@latest
npm install @ionic/react-router@latest
npm install ionicons@latest
If you’d like to update now, the currently available next
version (instructions in original post) is very close to what we will be releasing.
Ionic 4: Customizing ion-card background
Yes, as @rapropos said, this is an issue in Ionic 4 due to Card being a scoped
component, this is the relevant issue: https://github.com/ionic-team/ionic/issues/17425
It will be fixed in Ionic 5 by being converted to a shadow
component.
Updating Ionic/Angular breaks and header on PWA
Hi,
I’ve tried updating Angular from 7.x to 8.x, Ionic 4.5 to 4.11. Full diff: https://imgur.com/k4sKIT9
Noticed that it breaks layout in a header but more crucially breaks burger button completelly () – it doesn’t work:
Is the best course of action right now is to forgo updating these packages?
Thanks!
BackgroundGeolocation Resource not found
How to conditionally set root page in Ionic 5
Hello,
Using Ionic 5.4, I want to set root page based on some condition while first app initialization.
I’m using Firebase to autenticate users, so I want to redirect to TabsPage when user is already logged, and to StartPage when is not logged.
I’m trying to set the rootPage on the app.component.ts as follow:
rootPage:any = ‘StartPage’;
and in initializeApp():
this.authSvc.Session.subscribe(session=>{
if(session){
this.rootPage = 'TabsPage';
}
else{
this.rootPage = 'StartPage';
}
});
I took this example for a forum of ionic V4
Thanks