Giter Site home page Giter Site logo

Comments (7)

Sublustris avatar Sublustris commented on July 20, 2024 2

Can't provide an error log or strackTrace, my emulator just crash without giving me nothing, even on terminal. Same as @Sublustris said, without setUserProperties(params) works just fine on both platforms

Same thing. It crashes suddenly and debugger instantly loses connection with the application.

from amplitude-flutter.

fmmalta avatar fmmalta commented on July 20, 2024 1

I've also tried to change to Map<dynamic, dynamic> it didn't work also.

from amplitude-flutter.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

Hello, could you provide crash report? stracktraces?

from amplitude-flutter.

Sublustris avatar Sublustris commented on July 20, 2024

it crashing only on iOS. The only error message is:
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>'

code is the same:

var amp = Amplitude.getInstance(instanceName: ampapikey);
amp.init(ampapikey);
amp.setUserId("usr-q5rag46jkfnbey78mjjh1gfd");
amp.trackingSessionEvents(true);

Map<String, dynamic> userParams = {
      "date": "01.06.2020",
      "name": "Andrew",
      "buildNumber": "0.2.0.70",
    }; 
amp.setUserProperties(userParams);

without "amp.setUserProperties(userParams);" it works fine on both platforms.

from amplitude-flutter.

fmmalta avatar fmmalta commented on July 20, 2024

Can't provide an error log or strackTrace, my emulator just crash without giving me nothing, even on terminal. Same as @Sublustris said, without setUserProperties(params) works just fine on both platforms

from amplitude-flutter.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

Thank you! We will look into it.

from amplitude-flutter.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

Pls try v2.1.0. Should have this fixed.
https://pub.dev/packages/amplitude_flutter

from amplitude-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.