Yes, you can use Platform
Api to Detect platform and write your platform specific code.
in your .ts file:
import { Platform } from '@ionic/angular';
export class YourPage implements OnInit {
constructor(private platform: Platform){
}
if (this.platform.is('android')) {
// Write your Android Specific code
} else {
console.log('Other Platform')
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…