Device info on Android shows platform as 'web'

Using capacitor 3.4.1, @capacitor/device 1.1.2

I use this code:

import { Device } from '@capacitor/device';

const info = await Device.getInfo();
console.log(`Device platform is '${info.platform}'`);

This is a new Capacitor project, not anything migrated from an earlier version or from Cordova.

The annoying thing is that other (Cordova) plugins depend on the reported platform and won’t work properly.

Try Capacitor.getPlatform(); instead.

Capacitor - Cross-platform Native Runtime for Web Apps - Capacitor (