Google Play Services

Hello,

i want to use Google Play Services in my Ionic Project. I want to show a highscore leaderboard.
I found this plugin: https://ionicframework.com/docs/native/google-play-games-services

I installed it like this:
cordova plugin add cordova-plugin-play-games-services --variable APP_ID="XXXX"
npm install @ionic-native/google-play-games-services

Then i removed the platform android:
ionic cordova platform rm android

After that i tried to build the debug apk:
ionic cordova build android

Then i get following error:

error: package com.google.android.gms.games.request
does not exist
import com.google.android.gms.games.request.GameRequest;

Maybe someone can help me?

Best regards,
Lukas :blush:

Hi,

can nobody help me with that issue?
Maybe someone has integrated Google Play Service also and can help me :slight_smile:

Lukas

For all people facing the same problem.
I fixed it by adding the following plugin.