Skip to content

Appsflyer plugin - JSON Parse error: Unexpected identifier "undefined" #577

@wmacall

Description

@wmacall
  • analytics-react-native version: 2.2.1
  • Integrations versions (if used): @segment/analytics-react-native-plugin-appsflyer version: 0.3.2
  • React Native version: 0.63.4
  • iOS or Android or both? Just Android

Steps to reproduce
Sometimes the value from onInstallConversionData its undefined and the @segment/analytics-react-native-plugin-appsflyer library crash

Expected behavior
The plugin works normally

Actual behavior
The app crash on Android, because the value from onInstallConversionData probably is undefined

SyntaxError - JSON Parse error: Unexpected identifier "undefined"{
[native code]parse                 
node_modules/@segment/analytics-react-native-plugin-appsflyer/src/AppsflyerPlugin.tsxappsFlyer.onInstallConversionData

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions