Giter Club home page Giter Club logo

capacitor-game-services's People

Contributors

fdom92 avatar hscheuerle avatar jedihacks avatar paulpauldevelops avatar ricardo385 avatar wholloran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

capacitor-game-services's Issues

err: Fatal Exception: java.lang.RuntimeException

I haven't reproduced this myself but google is reporting it in their automated tests. I've also seen it on crashlytics, occurs in Android 8.1.

Line:

https://github.com/openforge/capacitor-game-services/blob/development/android/src/main/java/io/openforge/gameservices/GameServices.java#L57

Error:

Fatal Exception: java.lang.RuntimeException
Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {com.overworld.app/com.overworld.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.auth.api.signin.GoogleSignInResult.isSuccess()' on a null object reference

io.openforge.gameservices.GameServices.handleOnActivityResult (GameServices.java:57)
com.getcapacitor.Bridge.onActivityResult (Bridge.java:1000)
com.getcapacitor.BridgeActivity.onActivityResult (BridgeActivity.java:216)
android.app.Activity.dispatchActivityResult (Activity.java:8300)

Arguments don't get passed to GameServices java

Title is descriptive.

I call GameServices.showLeaderboard("CgkIqpWnm6UbEAIQAQ") and get (from logcat):

05-09 07:44:51.544 15437 15524 V Capacitor/Plugin: To native (Capacitor plugin): callbackId: 129018517, pluginId: GameServices, methodName: showLeaderboard

05-09 07:44:51.544 15437 15524 V Capacitor: callback: 129018517, pluginId: GameServices, methodName: showLeaderboard, methodData: {}

05-09 07:44:51.545 15437 15502 W GameServices: showLeaderboard called without providing leaderboardId

Edit:
Trying to call GameServices.unlockAchievement("abcdef"); didn't work either, logging Achievement ID must not be null or empty. Apparently no method, that needs an argument, works.

error: cannot find symbol add(GameServices.class);

How is my MainActivity supposed to look?
I get this error: cannot find symbol add(GameServices.class);
My code looks like this

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        add(GameServices.class);
}

What's wrong?

Pass Achievements to WebView

Add an option that turns off native dialogs, captures achievement unlock data, and pass the event data to the WebView

err: GameServices does not have web implementation.

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();

No GameServices in iOS app

There is no GameServices plugin when trying to use it in iOS. What is minimum version of capacitor (i use 2.4.7). Maybe i need to add something extra to ios code?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.