-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: advertising id being sent for Android application installed events using analytics-react-native-plugin-advertsing-id #1015
Conversation
Atlantis commands can't be run on fork pull requests. To enable, set --allow-fork-prs or, to disable this message, set --silence-fork-pr-errors |
|
🎉 This PR is included in version 2.20.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.3.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
}else{ | ||
return event; | ||
} | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it means in this context to return undefined
? What if there's other plugin that is meant to be executed after this plugin? Does this means that the other plugin won't get anything to process? Will the other plugin indeed eventually get something once we execute process
for this event?
if (this.advertisingId === undefined) { | ||
this.queuedEvents.push(event); | ||
}else{ | ||
return event; | ||
} | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: a more clear way for this if
could also be:
if (this.advertisingId === undefined) {
this.queuedEvents.push(event);
return;
}
return event;
Fix for - Advertising Id not being sent for Android Application Installed events using analytics-react-native-plugin-advertising-id #995