You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No error was shown when initialize amplitude with @amplitude/analytics-react-native module in React Native
Current Behavior
The following error log was pushed into console, there is no documentation about polyfilling or disable cookies?
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
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: Property 'btoa' doesn't exist
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
ERROR Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Property 'btoa' doesn't exist
Steps to Reproduce
Install @amplitude/analytics-react-native by using yarn expo install @amplitude/analytics-react-native
Import import * as amplitude from '@amplitude/analytics-react-native' in App.tsx
Observe the Metro console
Environment
@amplitude/analytics-react-native version: ^1.4.9
Installation Method: yarn
"react-native": "0.72.6
"expo": "^49.0.0",
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: