{ "id": "169785", "key": "TIMOB-25288", "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": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-19T08:14:56.000+0000", "created": "2017-09-14T21:08:22.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "addAnnotations", "android", "annotations", "maps", "module", "ti.map" ], "versions": [], "issuelinks": [ { "id": "55965", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "169780", "key": "TIMOB-25289", "fields": { "summary": "Android: [ti.map] No static method getAppCurrentActivity()", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2017-09-26T17:37:16.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": "When trying to use the 'addAnnotations' function to add map annotations it causes the android application to fail. iOS seems to work fine. Below I have made an extremely simple project using the addAnnotation(s) functions to demonstrate. The only time I have had an annotation successfully added to a view on android is if the annotation is set when the map view is created. This is happening with version 3.3.0 of ti.map and appcelerator versions 6.2.0 and 6.1.2. The android phone is running marshmallow.", "attachment": [ { "id": "63265", "filename": "alloy.js", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T20:58:50.000+0000", "size": 1696, "mimeType": "text/javascript" }, { "id": "63264", "filename": "index.js", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T20:58:56.000+0000", "size": 1488, "mimeType": "text/javascript" }, { "id": "63263", "filename": "index.xml", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T20:59:01.000+0000", "size": 86, "mimeType": "text/xml" }, { "id": "63266", "filename": "modules.zip", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T20:58:41.000+0000", "size": 3025624, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: addAnnotations in Ti.Map crashes app", "creator": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "This is using appcelerator 6.2.0.GA and ti.map 3.3.0 for android.", "comment": { "comments": [ { "id": "427928", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "Here same problem! App crash! ", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-09-15T10:16:00.000+0000", "updated": "2017-09-15T10:16:00.000+0000" }, { "id": "427934", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We are working on a fix for Ti.Map 3.3.1, please use the pre 3.3.0 version until then, thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T11:51:15.000+0000", "updated": "2017-09-15T11:51:15.000+0000" }, { "id": "427946", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~josh.mocek], [~Pietro] Could you, please, attach the sources from which you have built Ti.Map module?", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2017-09-15T16:06:30.000+0000", "updated": "2017-09-15T16:06:30.000+0000" }, { "id": "427947", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem here, we didn't build from source we used the packaged module from Axway", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-15T17:02:29.000+0000", "updated": "2017-09-15T17:02:29.000+0000" }, { "id": "427954", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Yordan Banev https://github.com/benbahrenburg/Ti.GA.", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-15T19:55:48.000+0000", "updated": "2017-09-15T19:58:29.000+0000" }, { "id": "428012", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "I also didn't use source but the package module", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-09-18T12:53:37.000+0000", "updated": "2017-09-18T12:53:37.000+0000" }, { "id": "428044", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/9442", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2017-09-18T21:13:35.000+0000", "updated": "2017-09-18T21:13:35.000+0000" }, { "id": "428066", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ti.map: https://github.com/appcelerator-modules/ti.map/pull/214\r\n3.3.1: https://github.com/appcelerator-modules/ti.map/releases/tag/android-3.3.1\r\n\r\n*TEST CASE*\r\n{code}\r\nalert(require('ti.map').isGooglePlayServicesAvailable());\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-18T23:22:56.000+0000", "updated": "2017-09-18T23:22:56.000+0000" }, { "id": "428081", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "For everyone having this issue: You can use the new module version 3.3.1 today already, no need to wait for the 6.2.1 release, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-19T08:15:31.000+0000", "updated": "2017-09-19T08:15:31.000+0000" }, { "id": "428176", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as version 3.3.1 has the fix.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-20T17:54:09.000+0000", "updated": "2017-09-20T17:54:09.000+0000" }, { "id": "428404", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Hi Lokesh, the app doesn't crash anymore but when I add the annotation the map just goes blank.\r\n\r\nCould you kindly check if if this is the case on your side as well??\r\n\r\nI am using ti.map version 3.3.1.", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2017-09-25T10:13:52.000+0000", "updated": "2017-09-25T10:13:52.000+0000" }, { "id": "428485", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fahad86], I checked it again but, for me the map does not go blank with 3.3.1 & SDK 6.2.2.GA.\r\nCan you provide some details about SDK, android version etc.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-26T17:37:16.000+0000", "updated": "2017-09-26T17:37:16.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }