Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Detect if the mobile device has GMS ( Google Mobile Services ) or not from the browser

I need to create a web application which will redirect the user to the app store if the mobile device is iOS and it will redirect the user to google play store if the device is android and has google play services like Google Search, google Maps, youtube etc. But if the device is android and do not have google services then it will install an apk.

I was able to detect if the mobile device is iOS from the below code

var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
    trackViewEvent("iOS");
    return "https://apps.apple.com";
}

But now i need to detect if the android application has Google Mobile Services activated. Is this even possible to detect from the browser? Please help

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!