79427768

Date: 2025-02-10 16:57:20
Score: 1.5
Natty:
Report link

I ended up using this package : react-native-device-info

With the function

import DeviceInfo from 'react-native-device-info';

async function checkGooglePlayServices() {
  const isPlayServicesAvailable = await DeviceInfo.hasGms(); // Returns true if Google Play Services are available
  return isPlayServicesAvailable;
}

It does detect correctly with emulated non google android phone.

https://github.com/react-native-device-info/react-native-device-info?tab=readme-ov-file#hasGms

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Baart