Skip to content
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

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

thesunita
Copy link
Contributor

Fix for - Advertising Id not being sent for Android Application Installed events using analytics-react-native-plugin-advertising-id #995

@seg-atlantis-prod
Copy link

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

@seg-atlantis-prod
Copy link

Error parsing command: EOF found when expecting closing quote

@alanjcharles alanjcharles merged commit e57dea5 into segmentio:master Oct 23, 2024
7 checks passed
@alanjcharles
Copy link
Contributor

🎉 This PR is included in version 2.20.2 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@alanjcharles
Copy link
Contributor

🎉 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;
Copy link

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?

Comment on lines +57 to +62
if (this.advertisingId === undefined) {
this.queuedEvents.push(event);
}else{
return event;
}
return;
Copy link

@cgadam cgadam Oct 23, 2024

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants