Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25288] Android: addAnnotations in Ti.Map crashes app

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-09-19T08:14:56.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.2
ComponentsAndroid
LabelsaddAnnotations, android, annotations, maps, module, ti.map
Reporterjosh.mocek
AssigneeYordan Banev
Created2017-09-14T21:08:22.000+0000
Updated2017-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

FileDateSize
alloy.js2017-09-14T20:58:50.000+00001696
index.js2017-09-14T20:58:56.000+00001488
index.xml2017-09-14T20:59:01.000+000086
modules.zip2017-09-14T20:58:41.000+00003025624

Comments

  1. Pietro Granati 2017-09-15

    Here same problem! App crash!
  2. Hans Knöchel 2017-09-15

    We are working on a fix for Ti.Map 3.3.1, please use the pre 3.3.0 version until then, thank you!
  3. Yordan Banev 2017-09-15

    [~josh.mocek], [~Pietro] Could you, please, attach the sources from which you have built Ti.Map module?
  4. Mike Stancliffe 2017-09-15

    Same problem here, we didn't build from source we used the packaged module from Axway
  5. josh.mocek 2017-09-15

    @Yordan Banev https://github.com/benbahrenburg/Ti.GA.
  6. Pietro Granati 2017-09-18

    I also didn't use source but the package module
  7. Yordan Banev 2017-09-18

    PR: https://github.com/appcelerator/titanium_mobile/pull/9442
  8. Gary Mathews 2017-09-18

    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*
       alert(require('ti.map').isGooglePlayServicesAvailable());
       
  9. Hans Knöchel 2017-09-19

    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!
  10. Lokesh Choudhary 2017-09-20

    Closing ticket as version 3.3.1 has the fix.
  11. Muhammad Ahmed Fahad 2017-09-25

    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.
  12. Lokesh Choudhary 2017-09-26

    [~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.

JSON Source