Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228510 articles
Browse latest View live

Dynamic components and Ionic grid system

$
0
0

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.


Prevent app to be killed from background

$
0
0

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

$
0
0

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?

$
0
0

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

$
0
0

Please tell me, how can i do this, thanks

[SOLVED] Viewing html content in

$
0
0

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?

$
0
0

I converted to mp4 h264 codec and I get the exact same result.

Ionic 4 Storage Token Access for HTTP Interceptor


Dual screen to show data differently - IONIC v4

$
0
0

What about a design that involves two apps - one for each screen?

How to render routes conditionally?

$
0
0

React IonTabs as nested route

$
0
0

How to render routes conditionally?

$
0
0

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

$
0
0

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

$
0
0

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

$
0
0

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!

$
0
0

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. :slightly_smiling_face:

Ionic 4: Customizing ion-card background

Updating Ionic/Angular breaks and header on PWA

BackgroundGeolocation Resource not found

How to conditionally set root page in Ionic 5

$
0
0

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

Viewing all 228510 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>