Giter Site home page Giter Site logo

App force update about hms-unity-plugin HOT 13 OPEN

atheer10 avatar atheer10 commented on June 22, 2024
App force update

from hms-unity-plugin.

Comments (13)

Andronovo-bit avatar Andronovo-bit commented on June 22, 2024 1

Hi @atheer10 . We are under review. If you want, you can try the suggestions below until this process is complete.

  • Can you try to make it "true" this line? (HMSGameManagerService.cs) (After this update, you may need to do an update to try this code.)

K2xjw8o87t

  • Did you release a new version directly or did you try it using a closed test?

from hms-unity-plugin.

atheer10 avatar atheer10 commented on June 22, 2024 1

@Andronovo-bit

  • Have created a build with that fix, will keep you updated on the results once it is approved from the store.

  • No, we have always created a new release version, as the option for force update is not available on closed testing.

from hms-unity-plugin.

atheer10 avatar atheer10 commented on June 22, 2024 1

@Andronovo-bit
Looks like those settings were off ! I will make a new build and share it
This is the URL of the game : https://appgallery.huawei.com/app/C105911883

from hms-unity-plugin.

Andronovo-bit avatar Andronovo-bit commented on June 22, 2024 1

@atheer10

Hi, thank you for opening your game in Turkey. We checked the game with logs, but we didn't see any "game service and update function triggered" logs. You should enable game service and use HMSGameServiceManager for force updating.

For instance;

If you want to use it in a starting scene, you can add the below code.

HMSGameServiceManager.Instance.InitGameManagers()
HMSGameServiceManager.Instance.CheckAppUpdate(true,true)

OR

If you already use HMSGameServiceManager in your scene, you can change the InitGameManager's function's body like below.


 public void InitGameManagers()
     {
             ...
             ...
            CheckAppUpdate(true, true);
      }

After calling this function, you will be automatically callback to the 'OnUpdateInfo' methods in HMSGameService and the Update Dialogue will be opened in your game.

from hms-unity-plugin.

github-actions avatar github-actions commented on June 22, 2024

Thank you for reporting this issue/advice.

We will get back to you as soon as possible.
Would you like to star our plugin to support us? ✨

from hms-unity-plugin.

atheer10 avatar atheer10 commented on June 22, 2024

@Andronovo-bit
We have created a new build with the fix above of changing the CheckAppUpdate values to true and installed it on the device, then uploaded another newer version to the store, we can see from the store/notification that there's an update available, however nothing shows up within the app to prompt an update.

from hms-unity-plugin.

Andronovo-bit avatar Andronovo-bit commented on June 22, 2024

@atheer10
Ok I understood. I should have asked before. Did you activate the game service on AppGallery panel ? And also, did you enable gamekit in unity-plugin? Like the below images.

image

image

image

Do you mind if can you send a game url or apk for review?

from hms-unity-plugin.

Andronovo-bit avatar Andronovo-bit commented on June 22, 2024

I tried to download this app, but I couldn't see it in the gallery. Is released this app or can we accessable in Turkey ? I guess this game don't available in my region.

from hms-unity-plugin.

atheer10 avatar atheer10 commented on June 22, 2024

@Andronovo-bit

  • We a made two new releases with the game services enabled both in Unity project and in app gallery, but the pop-up doesn't show up. We get a notification that there's a new update as shared above, but no in-game pop-up.

  • Yes, the game is not available there, I will update the release to include it.

from hms-unity-plugin.

Andronovo-bit avatar Andronovo-bit commented on June 22, 2024

@atheer10

  • Okay, we wait for release in our region to test your application.

  • Can you share the log records of the scenario where the update popup should appear in our application?

from hms-unity-plugin.

atheer10 avatar atheer10 commented on June 22, 2024

@Andronovo-bit

  • We've updated the app and added Turkey, you should be able to find it in the App Gallery store. We will release a newer update so we can test the force update function .
  • In terms of where it should appear, since the logic is mostly in the awake, and init methods, it should appear at the loading screen of the game.

from hms-unity-plugin.

atheer10 avatar atheer10 commented on June 22, 2024

@Andronovo-bit

  • Correct , there was a setting that was turning off the game service, we enabled that again and just released a new version 4494, but perhaps it's not going to show as there's no newer version yet.
  • We are using the second method to call the update

image
image

from hms-unity-plugin.

Andronovo-bit avatar Andronovo-bit commented on June 22, 2024
  • It looks everthing is OK @atheer10, on code side. If you enabled the Game service and used it at startup, everything is OK.
  • After this code releasing, if you do new update we can see what's going on background in log records.

from hms-unity-plugin.

Related Issues (20)

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.