[ionic 4 ] Not found : cordova-plugin-play-games-service

#1

I use the latest ionic 4 and when I try to install the Google Play Games Services, I get the following error:

npm ERR! 404 ‘cordova-plugin-play-games-service’ is not in the npm registry.

Is this something missing from ionic 4?

Thanks,

Doug

#2

The docs have a typo, the following command missed the “s” in the end for the name of the plugin:

ionic cordova plugin add cordova-plugin-play-games-service

it should have been

ionic cordova plugin add cordova-plugin-play-games-services

There is a typo in the code sample, as well. Apologies for the question as I am rather new but how can notify the ionic team? What is the proper way to inform about doc typos (github page is rather about code related bugs)?

Thanks,

Doug

#3

What page are you talking about? https://ionicframework.com/docs/v3/native/google-play-games-services/ seems to have the correct command, doesn’t it?

The docs pages should all have an “Improve this doc” link that sends you to the correct Github repository. You can either submit a PR fixing the problem yourself, or navigate to the “Issues” tab to create an issue that describes the problem you encountered.

#4

Ah, found it: https://ionicframework.com/docs/native/google-play-games-services
The Improve link is also missing for Ioniv v4 documentation :frowning:

The wrong plugin name is probably coming from here: https://github.com/ionic-team/ionic-native/blob/v5/src/@ionic-native/plugins/google-play-games-services/index.ts#L157

1 Like
#5

Many thanks for the clarification Sujan, appreciate your time and help

1 Like