Open ethanj20 opened 1 year ago
Hello @ethanj20, and thank you for opening this issue. While the CloudWatch logger exists in the JS repo, it's use case is not included in our documentation due to the feature itself needing some improvements/bugs worked out still.
Considering you were trying to use the push notification API, this might be associated with a missing polyfill on React Native. Marking this and the related issue #9575 as bugs to increase the priority on them.
Hello, This temporary fix seems to solve the problem: https://github.com/facebook/hermes/issues/948#issuecomment-1484240071
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
REST API, Push Notifications
Amplify Categories
No response
Environment information
Describe the bug
I am unable to send Amplify logs to CloudWatch due to a missing variable reference (
TextEncoder
).Expected behavior
I would expect this variable to be defined in the package, and I would expect the logs to show up in CloudWatch in the pre-configured log streams/groups.
Reproduction steps
Run application in simulator using the code below:
Code Snippet
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response