{ "id": "173880", "key": "TIMOB-27245", "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": "2019-07-15T19:40:02.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-07-17T01:53:01.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "We are currently noticing some crashes on Huawei devices (see device logs) related to play-services.\r\n\r\nWe are using a fork of [Ti.GoogleSignIn|https://github.com/hansemannn/Ti.GoogleSignIn-Android/tree/parity] that seems to trigger the crash, but I think the root issue is the activity handling of Titanium. A rough confirmation would be great!\r\n\r\n*EDIT*: We might just need to add some config from [here|https://stackoverflow.com/a/34007675/5537752] to make it work. Sorry for being a bit fast on this one, it can probably be closed.", "attachment": [ { "id": "66770", "filename": "Bildschirmfoto 2019-07-15 um 21.36.35.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-07-15T19:38:55.000+0000", "size": 277885, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: App crashes on Huawei devices", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "449855", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You're getting an {{IllegalStateException}} from Google's {{android.google.android.gms.auth.api.signin.internal.SignInHubActivity.onCreate}} activity method. The issue is on Google's end.\r\n\r\nI can see similar stack traces on stackoverflow here...\r\nhttps://stackoverflow.com/questions/41671068/google-sign-in-is-failing-only-on-some-xiaomi-devices\r\nhttps://stackoverflow.com/questions/41034764/googlesign-in-error-only-on-xiomi-devices\r\n\r\nIt's hard to say what the problem is since it's happening on Google's end. Possible issue is that the installed Google Play Service on the device is older than the one you are using. That can cause no-ops or exception in the Google Play Services APIs.\r\n\r\nOur \"ti.playservices\" module has a {{makeGooglePlayServicesAvailable()}} function that you can use which will check if the installed Google Play Services is up-to-date and enabled. If it's not, then it'll display a dialog (made by Google) asking the end-user to do an update. You'll want to do this on app startup and do not proceed to your app's main window until Google Play Services has been updated if your app requires this feature.\r\nhttps://github.com/appcelerator-modules/ti.playservices\r\n\r\nI noticed that your app is using our \"x.bootstrap.js\" feature, which was designed to do exactly this. You'll want to export an {{execute(finish)}} function like you see in our test code below. Titanium's bootstrap feature won't load your app.js until the bootstrap invokes the given {{finish}} callback. (I actually designed our bootstrap feature for this exact scenario.)\r\nhttps://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/Resources/bootstraps/ui.bootstrap.js\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-17T01:53:01.000+0000", "updated": "2019-07-17T01:53:01.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }