Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Hyperloop
    • Labels:
      None

      Description

      I'm launching Google Fit permissions window but once the user has accepted there's no way know the result, onActivityResult is never called.

      Here is my code

         var windowActivity = new Activity(activity);
       
          windowActivity.onActivityResult = function(requestCode, resultCode, intent) {
              console.log("result: " + requestCode);
          };
       
          if (!GoogleSignIn.hasPermissions(GoogleSignIn.getLastSignedInAccount(windowActivity), fitnessOptions)) {
              GoogleSignIn.requestPermissions(
                  windowActivity,
                  REQUEST_OAUTH_REQUEST_CODE,
                  GoogleSignIn.getLastSignedInAccount(windowActivity),
                  fitnessOptions
              );
          } else {
              //google fit ready to access
          }
      

      No error happens, it's just being ignored

      Environment: SDK7.0.1, Hyperloop 3.0.1/3.0.2. Google Play Fitness API 11.8.0. Testing in Google Nexus 5X running Android 8.1.0 let me know if you need more details

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              yankovalera@gmail.com Yanko Valera
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6343
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code