Skip to content

[Bug]: Capacitor 7: Platform.is('capacitor') returns false on device #7884

@zarko-tg

Description

@zarko-tg

Capacitor Version

Installed Dependencies:

@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1

Other API Details

NPM 10.9.2
Node.js 22.13.1

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Our code does a number of checks such as:
Platform.is('capacitor')
but when running Capacitor 7 this returns false for an app running on both iOS and Android.

We're on @ionic/angular 6.7.1.

Expected Behavior

It should return true, just as when running on Capacitor 6.

Project Reproduction

https://github.com/zarko-tg/platform-test
See README.md.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions