{ "id": "171043", "key": "TIMOB-26040", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-02-06T17:30:58.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-05-15T09:13:25.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "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.\r\n\r\nHere is my code\r\n\r\n{code:java}\r\n var windowActivity = new Activity(activity);\r\n\r\n windowActivity.onActivityResult = function(requestCode, resultCode, intent) {\r\n console.log(\"result: \" + requestCode);\r\n };\r\n\r\n if (!GoogleSignIn.hasPermissions(GoogleSignIn.getLastSignedInAccount(windowActivity), fitnessOptions)) {\r\n GoogleSignIn.requestPermissions(\r\n windowActivity,\r\n REQUEST_OAUTH_REQUEST_CODE,\r\n GoogleSignIn.getLastSignedInAccount(windowActivity),\r\n fitnessOptions\r\n );\r\n } else {\r\n //google fit ready to access\r\n }\r\n{code}\r\n\r\nNo error happens, it's just being ignored\r\n\r\nEnvironment: 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\r\n", "attachment": [ { "id": "64822", "filename": "googlefittest.zip", "author": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-07T21:34:22.000+0000", "size": 5183082, "mimeType": "application/zip" } ], "flagged": false, "summary": "onActivityResult dont called", "creator": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "434129", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide a full reproducible code/sample project that we can use to reproduce the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-06T21:13:26.000+0000", "updated": "2018-02-06T21:13:26.000+0000" }, { "id": "434155", "author": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-07T09:00:14.000+0000", "updated": "2018-02-07T09:00:52.000+0000" }, { "id": "434194", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please attach the sample code here and details steps to follow for successful reproduction. Also, your environment details are missing. Please provide. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-07T20:44:37.000+0000", "updated": "2018-02-07T20:44:37.000+0000" }, { "id": "434198", "author": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment details are in description: 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\r\n\r\nCode attached, to reproduce just run the app, it'll show the google auth window, and returning should trigger the onActivityResult for the Activity but it's not working.", "updateAuthor": { "name": "yankovalera@gmail.com", "key": "yankovalera@gmail.com", "displayName": "Yanko Valera", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-07T21:33:36.000+0000", "updated": "2018-02-07T21:35:21.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }