[TIMOB-25288] Android: addAnnotations in Ti.Map crashes app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-09-19T08:14:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.2.2 |
Components | Android |
Labels | addAnnotations, android, annotations, maps, module, ti.map |
Reporter | josh.mocek |
Assignee | Yordan Banev |
Created | 2017-09-14T21:08:22.000+0000 |
Updated | 2017-09-26T17:37:16.000+0000 |
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.
Attachments
File | Date | Size |
---|---|---|
alloy.js | 2017-09-14T20:58:50.000+0000 | 1696 |
index.js | 2017-09-14T20:58:56.000+0000 | 1488 |
index.xml | 2017-09-14T20:59:01.000+0000 | 86 |
modules.zip | 2017-09-14T20:58:41.000+0000 | 3025624 |
Here same problem! App crash!
We are working on a fix for Ti.Map 3.3.1, please use the pre 3.3.0 version until then, thank you!
[~josh.mocek], [~Pietro] Could you, please, attach the sources from which you have built Ti.Map module?
Same problem here, we didn't build from source we used the packaged module from Axway
@Yordan Banev https://github.com/benbahrenburg/Ti.GA.
I also didn't use source but the package module
PR: https://github.com/appcelerator/titanium_mobile/pull/9442
ti.map: https://github.com/appcelerator-modules/ti.map/pull/214 3.3.1: https://github.com/appcelerator-modules/ti.map/releases/tag/android-3.3.1 *TEST CASE*
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!
Closing ticket as version 3.3.1 has the fix.
Hi Lokesh, the app doesn't crash anymore but when I add the annotation the map just goes blank. Could you kindly check if if this is the case on your side as well?? I am using ti.map version 3.3.1.
[~fahad86], I checked it again but, for me the map does not go blank with 3.3.1 & SDK 6.2.2.GA. Can you provide some details about SDK, android version etc.