Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: CallbackObject is not a function #237

Open
tomgiessel opened this issue Jul 4, 2018 · 0 comments
Open

iOS: CallbackObject is not a function #237

tomgiessel opened this issue Jul 4, 2018 · 0 comments

Comments

@tomgiessel
Copy link

Hi there,

I've recently noticed some crashes using the TiMap module, that I can't explain and I am also unable to reproduce on any of my devices or simulators.
The JavaScript exception is CallbackObject is not a function (near '...Map.createAnnotation...') and here is the code that causes it:

try {

    // create map annotation
    var mapAnnotation = Map.createAnnotation({
        latitude  : 52.51496980,
        longitude : 13.39258080,
        title     : "my title",
        subtitle  : "my subtitle",
        pincolor  : Map.ANNOTATION_RED,
        draggable : false,
    });

    // create the map view
    // and add the annotation
    var mapView = Map.createView({
        mapType : Map.NORMAL_TYPE,
        region  : {
            latitude       : 52.51496980,
            longitude      : 13.39258080,
            latitudeDelta  : 0.1,
            longitudeDelta : 0.1,
        },
        annotations : [mapAnnotation],
    });

    // add the map view to the google maps wrapper view
    $.vGoogleMaps.add(mapView);

} catch(ex) {
    console.error(ex);
}

As you can see, the code is not very complex and very similar to the one defined in the documentation. However, I didn't touch this code ever and the only thing I did, was updating my dependencies (updated the TiMap plugin from v3.0.1 to v3.1.0). Since then, for some of our users the app crashes sometimes with the error message mentioned above. Again, I am unable to reproduce it and the error message doesn't make much sense to me.

Best,
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant