Closed
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
JavaScript Framework
React Native
Amplify APIs
Analytics
Amplify Categories
analytics, notifications
Environment information
System:
OS: macOS 13.4
CPU: (10) arm64 Apple M1 Pro
npmPackages:
@aws-amplify/analytics: ^6.0.16 => 6.3.2
@aws-amplify/rtn-push-notification: ^1.1.1 => 1.1.1
@babel/core: ^7.12.9 => 7.22.8
@babel/runtime: ^7.12.5 => 7.22.6
@react-native-async-storage/async-storage: ^1.19.0 => 1.19.0
@react-native-community/eslint-config: ^2.0.0 => 2.0.0
@react-native-community/netinfo: ^8.3.1 => 8.3.1
@react-native-community/push-notification-ios: ^1.10.1 => 1.11.0
amazon-cognito-identity-js: ^5.2.14 => 5.2.14 (6.3.1)
amazon-cognito-identity-js/internals: undefined ()
aws-amplify: ^5.3.3 => 5.3.3
aws-amplify-react-native: ^7.0.2 => 7.0.2
aws-sdk: ^2.1220.0 => 2.1413.0
axios: ^1.3.1 => 1.4.0 (0.26.0)
babel-jest: ^26.6.3 => 26.6.3
card-validator: ^8.1.1 => 8.1.1
geolib: ^3.3.3 => 3.3.4
i: ^0.3.7 => 0.3.7
i18next: ^21.8.14 => 21.10.0
jest: ^26.6.3 => 26.6.3
metro-react-native-babel-preset: ^0.70.3 => 0.70.4 (0.76.7, 0.76.5)
moment: ^2.29.4 => 2.29.4
npm: ^9.2.0 => 9.8.0
react: 18.2.0 => 18.2.0
react-devtools: 4.28.0 => 4.28.0
react-devtools-core: 4.28.0 => 4.28.0
react-native: ^0.72.4 => 0.72.4
Describe the bug
I have a react native app using amplify analytics/notifications to push notifications to users. But there seems to be a bug where pinpoint delete constantly user endpoints without any specific logic when I open the app and kill it instantly.
This is impacting our user experience since we cannot be consistent with our logic regarding push notifications.
I reproduced this bug and everytime I kill the app, reopen it, the user endpoints are deleted for further new notifications.
Expected behavior
Pinpoint shouldn't be deleting user endpoints when the user close the react-native app.
Reproduction steps
- Create a react native app.
- Install amplify analytics, notifications and cognito auth.
- Setup to push notification to the specific authenticated user.
- Kill the react native app.
- Open the react native app.
- Kill it again.
- Observe the deleted user endpoints.
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
iPhone 8, iPhone XR, iPhone 14 pro
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response