Open hohoaisan opened 5 days ago
After polyfilling btoa, following error log:
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
at apply (native)
at apply (native)
at App
at doResolve (/Users/distiller/react-native/packages/react-native/sdks/hermes/build_iphoneos/lib/InternalBytecode/InternalBytecode.js:216:25)
at apply (native)
at ErrorOverlay
at RCTView
at apply (native)
at RCTView
at apply (native)
at Promise (/Users/distiller/react-native/packages/react-native/sdks/hermes/build_iphoneos/lib/InternalBytecode/InternalBytecode.js:82:14)
at apply (native)
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined
Expected Behavior
No error was shown when initialize amplitude with
@amplitude/analytics-react-native
module in React NativeCurrent Behavior
The following error log was pushed into console, there is no documentation about polyfilling or disable cookies?
Steps to Reproduce
@amplitude/analytics-react-native
by usingyarn expo install @amplitude/analytics-react-native
import * as amplitude from '@amplitude/analytics-react-native'
in App.tsxEnvironment