If (this.platform.is('ios')) not returning true on iOS


#1

Anyone seeing:

    if (this.platform.is('ios')) {
      this.logger.info('The Platform is iOS');
    }

Not returning true when running in Safari:

10

21

Works in Chrome DevTools:

11


Platform.is("cordova") return false on some iOS 11 devices
#2

I have to set it via Safari -> Develop -> User Agent:

13


#3

Hmmmm:

    ...

    if (this.platform.is('android')) {

      this.logger.info('The Platform is Android');
      this.config.set('mode', 'md');
      this.config.set('backButtonIcon', 'fa-fal-arrow-left');

    } else {

      this.logger.info('The Platform is iOS');
      this.config.set('mode', 'ios');
      this.config.set('backButtonIcon', 'fa-fal-angle-left');
    }

    ...