Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

err: GameServices does not have web implementation. #19

Open
SimpleDm opened this issue Oct 27, 2020 · 5 comments
Open

err: GameServices does not have web implementation. #19

SimpleDm opened this issue Oct 27, 2020 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on

Comments

@SimpleDm
Copy link

Whatever I do, I meet "GameServices does not have web implementation.", Can you tell me what it might be?

(I don't use ionic if that's important.)

import { Plugins } from '@capacitor/core';
import '@openforge/capacitor-game-services';
import { GameServicesPlugin } from '@openforge/capacitor-game-services';

const GameServices = Plugins.GameServices as GameServicesPlugin;
GameServices.signIn();
@hscheuerle
Copy link
Contributor

Capacitor is a bridge for native android and ios apis. You can use Capacitor without ionic, but Apple game center and Google play services are not available for web, so this only works in one of those two environments.

@hscheuerle hscheuerle added documentation Improvements or additions to documentation wontfix This will not be worked on labels Oct 27, 2020
@maximnara
Copy link

maximnara commented Mar 17, 2021

I have same issue when trying use GameServicesPlugin without @capacitor/core Plugin.

On android import { Plugins } from '@capacitor/core'; const { GameServices } = Plugins; works fine, but on ios it seems not working. There is error 'a.singIn' is not function of non object.

It seems i misconfig in apple connect. Any idea how to fix it? My game table has bot published status, everything else seems to be fine.

@SimpleDm
Copy link
Author

For Android i fix "GameServices does not have web implementation." when add right connect "GameServices" in Initializes the Bridge (MainActivity.java)

import io.openforge.gameservices.GameServices;

public void onCreate(Bundle savedInstanceState) { ... this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{ add(GameServices.class); ... }} }

Perhaps someone will help. (ionic was not required)

@maximnara
Copy link

@SimpleDm for android there is full instruction, the main problem for me was to do the actions in goole play console to register an app.

iOS have no such instruction. Where i need to put score table id for iOS?

@jedihacks
Copy link
Member

@Ricardo385 can you comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants