title: Cordova add google play services
body: <p>I just added OneSignal to my Cordova project. This appears to use Google Play services i.e. (I get a message "No valid Google Play services APK found"). I was wondering the best approach for adding it.</p>
  
  <ul>
  <li>I have Google Play services v8.4.89 installed on my phone.</li>
  <li>I have Google Play services installed via the SDK manager:</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/5Oeif.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Oeif.png" alt="enter image description here"></a></p>
  
  <p><s>This creates a google_play_services folder (without a lot in it):</p>
  
  <p><a href="https://i.stack.imgur.com/xN1qv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xN1qv.png" alt="enter image description here"></a></s></p>
  
  <p><strong>UPDATE</strong>
  As per <a href="https://stackoverflow.com/questions/37310684/missing-sdk-extras-google-google-play-services-libproject-folder-after-updat">this</a> Google has broken down Google Play Services into multiple libraries (.aar) located at: </p>
  
  <pre><code>android-sdk\extras\google\m2repository\com\google\android\gms
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Jw6zW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jw6zW.png" alt="enter image description here"></a></p>
  
  <ul>
  <li>build.gradle dependencies:</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/Tymom.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tymom.png" alt="enter image description here"></a></p>
  
  <p>I'm a little unsure of what to do next. I thought I could have potentially used <a href="https://www.npmjs.com/package/cordova-plugin-googleplayservices" rel="nofollow noreferrer">this</a>.</p>
  
  <p>I might add I am using IntelliJ and have tried to import the JAR manually as per <a href="https://stackoverflow.com/questions/17960315/importing-google-play-services-lib-into-intellij-idea-12-and-13?rq=1">this</a>.</p>
  
  <p>Thanks,</p>