{ "id": "115302", "key": "TIMOB-14075", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-11T20:38:52.000+0000", "created": "2013-05-31T21:03:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_map", "qe-testadded", "supportTeam" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Feature request\r\nExpose The client library provides a deep link into the Google Play Store when it detects that the device has a missing or incompatible Google Play services APK.\r\n\r\nGoogle Play services is an optional part of your app, you can do these checks if the user navigates to that portion of your app:\r\n\r\nh6.Google Play set up\r\n1. Query for the status of Google Play services on the device with the isGooglePlayServicesAvailable() method, which returns a result code.\r\n2. If the result code is SUCCESS, then the Google Play services APK is up-to-date, and you can proceed as normal.\r\n3. If the result code is SERVICE_MISSING, SERVICE_VERSION_UPDATE_REQUIRED, or SERVICE_DISABLED, then call getErrorDialog() to display an error message to the user, which allows the user to download the APK from the Google Play Store or enable it in the device's system settings.\r\nRef: http://developer.android.com/google/play-services/setup.html\r\n\r\nh6.Use case\r\nCurrently Android Maps Module 2.1.0 Crashes due to Play Store and Native Maps Application is not updating. \r\n\r\nUsing the Latest 2.1.0 Maps module and the 3.1.0.GA Ti SDK on a Galaxy Nexus running 4.1.1 the application crashes. Most likely due to the Native Maps and Google Play store being out of date.\r\n\r\nThey have the following versions:\r\n{code}\r\nGoogle Maps - 6.9.0\r\nGoogle Play - 3.7.13\r\n{code}\r\n\r\nThese are old versions and for some reason the Google Play store will not update on this device. \r\n\r\nIt might be related to this google issue. \r\n- https://code.google.com/p/android/issues/detail?id=35615&q=3.7.13&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars\r\n\r\nThe problem is that the app crashes if the Google Play store has not been updated because then the Maps have also not been updated. On another device running Maps 6.14.4 and Play 4.1.6 the app works fine and the map loads and works without any issues.\r\n\r\nh6.DDMS log\r\nPlease see SGNLogMaps. It looks like it needs the updated maps in order to work with the newest maps module.", "attachment": [ { "id": "39317", "filename": "SGNLogMaps.txt", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-31T21:03:40.000+0000", "size": 409081, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Feature Request to expose isGooglePlayServicesAvailable()", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Android 4.1.2\r\nMap Module 2.1.0\r\nTiSDK 3.1.0.GA", "comment": { "comments": [ { "id": "257093", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_modules/pull/120\n\nTesting steps: \n1. Run map/mobile/android/example/app.js on a device without Google Play services. Make sure the alert is shown and app doesn't crash\n2. Run the same test on a device with Google Play services. It should work as expected.\n\n ", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T01:04:34.000+0000", "updated": "2013-06-11T01:04:34.000+0000" }, { "id": "257258", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/4379\r\n3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4378", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T22:03:41.000+0000", "updated": "2013-06-11T22:59:18.000+0000" }, { "id": "257364", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified this issue using the below environment - \r\nDevice : Google Nexus 7 (v4.1), Nexus 4 (v4.0.4), Galaxy Note (v2.3.6)\r\nSDK: 3.1.1.v20130611153550\r\nCLI version : 3.1.1-cr\r\nOS : MAC OSX 10.8.4\r\nAppcelerator Studio: 3.1.1.201306071750\r\nXCode : 4.5.1\r\n\r\nResults -\r\n1) Alert (Google Play Services is not installed/updates/available) is shown when Google Play Services are not present on device and app does not crash.\r\n2) App works fine when Google Play Services are available on device.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-12T12:41:13.000+0000", "updated": "2013-06-12T12:45:36.000+0000" }, { "id": "257508", "author": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "body": "how to call : isGooglePlayServicesAvailable in titanium ? and for reponses ?\r\n\r\ncan you give a small documentation here.\r\n\r\ni will use the last build in my app.\r\n\r\nthanks", "updateAuthor": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "created": "2013-06-12T22:55:16.000+0000", "updated": "2013-06-12T22:55:16.000+0000" }, { "id": "257509", "author": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "body": "how to call : isGooglePlayServicesAvailable in titanium ? and for reponses ?\r\n\r\ncan you give a small documentation here.\r\n\r\ni will use the last build in my app.\r\n\r\nthanks", "updateAuthor": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "created": "2013-06-12T22:55:36.000+0000", "updated": "2013-06-12T22:55:36.000+0000" }, { "id": "257510", "author": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "body": "how to call : isGooglePlayServicesAvailable in titanium ? and for reponses ?\r\n\r\ncan you give a small documentation here.\r\n\r\ni will use the last build in my app.\r\n\r\nthanks", "updateAuthor": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "created": "2013-06-12T22:55:50.000+0000", "updated": "2013-06-12T22:55:50.000+0000" }, { "id": "257511", "author": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "body": "how to call : isGooglePlayServicesAvailable in titanium ? and for reponses ?\r\n\r\ncan you give a small documentation here.\r\n\r\ni will use the last build in my app.\r\n\r\nthanks", "updateAuthor": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "created": "2013-06-12T22:56:16.000+0000", "updated": "2013-06-12T22:56:16.000+0000" }, { "id": "257515", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi zahal, here is an [example app|https://github.com/appcelerator/titanium_modules/blob/master/map/mobile/android/example/app.js].", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-12T23:01:09.000+0000", "updated": "2013-06-12T23:01:09.000+0000" }, { "id": "257532", "author": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "body": "i used sdk : 3.1.1.v20130612114553 the last one.\r\n\r\nand i have this message : Map has nos method 'isGooglePlayServicesAvailable'\r\n\r\nany suggestion ? should i update ti.map module ?\r\n\r\nthanks", "updateAuthor": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "created": "2013-06-13T00:05:10.000+0000", "updated": "2013-06-13T00:05:10.000+0000" }, { "id": "257952", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Djamel, currently the map module version 2.1.1 (with this feature) is available in build 3.1.1.v20130613185544. You can also get the module from the module marketplace.\n ", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-14T20:05:02.000+0000", "updated": "2013-06-14T20:05:02.000+0000" }, { "id": "257953", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified this feature is available and functioning in version 2.1.1 of the module. Closing.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-14T20:05:42.000+0000", "updated": "2013-06-14T20:05:42.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }