Announcement

Collapse
No announcement yet.

Google achievements not being cached.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Google achievements not being cached.

    I am trying to test an achievement on my phone.
    I have googled but not found a solution or way to solve it.
    Since i spend a day on it already i think its time to ask for help.

    What i did is:
    - upload apk to google play.
    - enable play services and link it to google play and set all achievements and the same achievements i put in UE4.
    - I created a keystore with the command:
    keytool -genkey -v -keystore my.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias mykeystore
    in the <app>/Build/Android dir and i put the password in the EU4 distibution signing config

    I can play my game on my device
    when i trigger the achievement i see on my screen that it failed to cache.
    The Show External Login UI does show some activity on my device (rotating circle) but fails.
    When i open my device to see the logs i can not find any because i don't know how.

    My settings:


    This is my test setup.


    I hope someone can help me because it needs to be finished.

    #2
    Update:
    I figured out how to see the log, with the command: adb logcat -d > logcat.txt

    This chunk seems relevant to me.

    05-03 12:08:38.463 4893 4906 W Auth : [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE
    05-03 12:08:38.464 5179 20372 E TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE
    05-03 12:08:38.474 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:38.488 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:38.488 14852 14852 V GamesNativeSDK: Play Games callback indicates connection failure.
    05-03 12:08:38.488 14852 15408 I GamesNativeSDK: UI interaction required to connect to Google Play.
    05-03 12:08:38.642 1546 4083 E MotoSensors: Proximity covered 1
    05-03 12:08:38.643 609 4109 V MotSpeakerHelperProximity: updated mCurProximityState: NEAR (3.000000)
    05-03 12:08:39.279 683 4401 D SensorListener: int android::sensor_events_listener(int, int, void *): SensorEventQueue SENSOR_TYPE_DEVICE_ORIENTATION read(vector.x=-1), orient=0
    05-03 12:08:39.501 5179 6427 W GamesServiceBroker: Client connected with SDK 11020000, Services 12529020, and Games 57060038
    05-03 12:08:39.531 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:39.554 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:39.573 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:39.600 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:39.605 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:39.760 4893 5289 W Auth : [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE
    05-03 12:08:39.765 5179 20372 E TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE
    05-03 12:08:39.777 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:39.785 876 876 I MSM-irqbalance: Decided to move IRQ166 from CPU6 to CPU5
    05-03 12:08:39.788 14852 14852 V GamesNativeSDK: Play Games callback indicates connection failure.
    05-03 12:08:39.788 14852 15408 I GamesNativeSDK: UI interaction required to connect to Google Play.
    05-03 12:08:39.793 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:40.056 1546 4083 E MotoSensors: Proximity uncovered
    05-03 12:08:40.057 609 4109 V MotSpeakerHelperProximity: updated mCurProximityState: FAR (100.000000)
    05-03 12:08:40.800 5179 5203 W GamesServiceBroker: Client connected with SDK 11020000, Services 12529020, and Games 57060038
    05-03 12:08:40.825 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:40.848 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:40.863 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:40.891 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:40.909 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:41.053 4893 7272 W Auth : [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE
    05-03 12:08:41.054 5179 20372 E TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE
    05-03 12:08:41.066 552 725 I SFPerfTracer: triggers: (rate: 0:2) (0 sw vsyncs) (0 skipped) (0:33517 vsyncs) (2:79468)
    05-03 12:08:41.068 5179 32749 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:41.069 14852 14852 V GamesNativeSDK: Play Games callback indicates connection failure.
    05-03 12:08:41.070 14852 15408 I GamesNativeSDK: UI interaction required to connect to Google Play.
    05-03 12:08:41.070 14852 15409 D UE4 : LogOnline: Warning: FOnlineAsyncTaskGooglePlayShowLoginUI::Authorized 0
    05-03 12:08:41.070 14852 15409 D UE4 :
    05-03 12:08:41.071 14852 14869 D UE4 : [2018.05.03-10.08.41:071][684]LogOnline: Warning: FOnlineAsyncTaskGooglePlayShowLoginUI::Authorized 0
    05-03 12:08:41.074 5179 32748 W GamesServiceBroker: Client connected with SDK 12651000, Services 12529020, and Games 57060038
    05-03 12:08:41.081 14852 14904 D UE4 : LogOnline: Warning: Async task 'ShowLoginUI' failed in 9.038392 seconds
    05-03 12:08:41.081 14852 14904 D UE4 :
    05-03 12:08:41.083 14852 14869 D UE4 : [2018.05.03-10.08.41:083][685]LogOnline: Warning: Async task 'ShowLoginUI' failed in 9.038392 seconds
    05-03 12:08:41.099 14852 14869 D UE4 : LogScriptCore: Warning: Script Msg: CacheAchievements or CacheAchievementDescriptions - Cannot map local player to unique net ID
    05-03 12:08:41.099 14852 14869 D UE4 :
    05-03 12:08:41.099 14852 14869 D UE4 : [2018.05.03-10.08.41:099][685]LogScriptCore: Warning: Script Msg: CacheAchievements or CacheAchievementDescriptions - Cannot map local player to unique net ID
    05-03 12:08:41.099 14852 14869 D UE4 : [2018.05.03-10.08.41:099][685]LogBlueprintUserMessages: [PuzzleMap_C_191] cache achievements failed
    05-03 12:08:42.740 4938 5042 I QCNEJ : |CORE| CNE received action RSSI/Link Changed events: android.net.wifi.RSSI_CHANGED
    05-03 12:08:42.740 4938 5042 D QCNEJ : |CORE| Updating RSSI: -69

    Comment


      #3
      I think it has something to do with the signing.
      In google play console under app signature i have google play app signing enabled.
      once enabled it can not be disabled i read somewhere.
      There i can download 2 certificates. one for signature and one for upload.
      For both the sha1, md5 and sha256 fingerprints are shown.
      I don't know what to do with those certificates though.

      Comment


        #4
        It probably is not the signing because i can upload the apk.
        It has probably something to do with this error: Cannot map local player to unique net ID
        The achievements on my phone work, just not the ones of my own. in my games overview in google play my game is not visible.
        Last edited by longshotnl; 05-04-2018, 10:53 AM.

        Comment


          #5
          I uploaded my apk and my obb to google play and i enabled beta test for it.
          I added myself as a tester.
          Then i downloaded the apk and installed it on my phone with:

          adb install 2-1.apk

          Then on my phone i run it and i get the message on the image. It says: Download failed because the resource could not be found.



          I the google play console i did add myself as a tester.

          To test if something else does work i enabled the in game purchase, i run the app on my phone with ue4.
          When i trigger the purchase i get this error. In english: Error with retreiving information from the server [DF-AA-20]
          I am sure i used the correct id for the purchase.



          Right now i am completely confused.
          My phone is connected to my google account, my email is added as a tester. Internet on my phone works. What am i doing wrong.?
          Last edited by longshotnl; 05-04-2018, 02:05 PM.

          Comment


            #6
            I read the app needs to be published in alpha so i did publish it in alpha.
            Same errors....
            When i click on the apha test page it can not find it.
            https://play.google.com/store/apps/details?id=<app id>
            But i read it may take 24 hours.. so now i wait.

            Comment


              #7
              I've ran into the same issues, all stemming from the game not able to login to Google play services. I've had issues with my oauth 2 certificate according to my own logs but I can't find a solution myself.. Everything is setup but maybe it's my debug key.
              ​​​​​​
              Anyways one thing I found was that you need to follow unreal match 3s c++ functions "get online id" and "register online account" (something like that). There's an answer hub question out there that says it fixed the issue. I haven't had such luck.

              Try to add that to your project.

              Comment


                #8
                I contacted google support.
                they gave me a link where testers have to request testing privileges.
                I did not know about this link.
                After i made myself tester via this link i could run my game.

                The link looks like this

                https://play.google.com/apps/testing/<appname.in.this.format>

                Comment


                  #9
                  The cache achievements still does not work though.
                  I will be trying to get more info about this issue today.

                  Comment

                  Working...
                  X