Override Core Mode

Hey,
I’m planning on using Ionic to build a hybrid Cordova app, and also hosting a PWA

Hybrid app uses iOS/Android/WP8 styles, that’s great
Web uses Core, core = MD

However i’ve got the requirement that desktop users, using the PWA, get an iOS interface as it closer matches our brand.

Does anyone know how to change core default to be iOS IF it’s not an iOS / Android / WP

You can use the config API for this.

  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
      platforms: {
        core: {
          mode: 'ios'
        }
      }
    }),
1 Like

thanks, that’s great
i did try it before and it didnt work, it does now.
maybe a typo on my part :smiley: