
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
capacitor-play-games-services
Advanced tools
Capacitor Play Games Services is a native Google Play Games Services implementation for Android.
Capacitor Play Games Services is a native Google Play Games Services implementation for Android.
> npm i capacitor-play-games-services
> npx cap update && npx cap sync
package com.xx.xx;
...
import gammafp.playgames.PlayGamesPlugin;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
registerPlugin(PlayGamesPlugin.class);
// Important, super.onCreate(...) should go down
super.onCreate(savedInstanceState);
}
}
Add games id to your project:



To integrate it into your javascript project, you must import the capacitor module and then get the plugin.
import { PlayGames } from 'capacitor-play-games-services';
Listen for a change event: (this is interesting to listen the first login event)
PlayGames.addListener("onSignInStatus", (res) => {
setLoginData(JSON.stringify(res, null, 4));
})
playGames.login().then((response) => {
/* response return:
id: string;
display_name: string;
icon: string; // URI Does not work yet.
title: string;
message: string; // A messate that say what happen with the plugin correct / error (usded for tests)
isLogin: boolean; TRUE if is online FALSE if is offline
*/
});
PlayGames.status().then((response) => {
/* response return:
message: string; // A messate that say what happen with the plugin correct / error (usded for tests)
isLogin: boolean; TRUE if is online FALSE if is offline
*/
});
this method has been removed by google.
PlayGames.showAllLeaderboard();
PlayGames.showLeaderboard({
id: 'XXXXXXXX-XXXXXXXX' // id of your leaderboard
});
PlayGames.submitScore({
id: 'XXXXXXXX-XXXXXXXX' // id of your leaderboard,
score: 10 // int value only
});
Show all medals
PlayGames.showAchievements();
PlayGames.unlockAchievement({
id: 'XXXXXXXX-XXXXXXXX' // id of your achievement
});
FAQs
Capacitor Play Games Services is a native Google Play Games Services implementation for Android.
We found that capacitor-play-games-services demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.