diff --git a/composables/useCapacitor.js b/composables/useCapacitor.js index 26e7288..64ec2be 100644 --- a/composables/useCapacitor.js +++ b/composables/useCapacitor.js @@ -17,10 +17,14 @@ export const useCapacitor = () => { return deviceInfo.model.toLowerCase().includes('iphone') } + const getIsNative = () => { + return Capacitor.isNativePlatform() + } + const getNetworkStatus = async () => { return await Network.getStatus() } - return {getPlatform, getDeviceInfo, getNetworkStatus, getIsPhone} + return {getPlatform, getDeviceInfo, getNetworkStatus, getIsPhone, getIsNative} } \ No newline at end of file