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

AttributionPoster passes (null) to the backend, consider updates. #770

Closed
taquitos opened this issue Aug 24, 2021 · 6 comments
Closed

AttributionPoster passes (null) to the backend, consider updates. #770

taquitos opened this issue Aug 24, 2021 · 6 comments

Comments

@taquitos
Copy link
Contributor

(null) is true to the ObjC code here, maybe we should reject this and not post?
Also, maybe early return too.

https://github.com/RevenueCat/purchases-ios/blob/swift_migration/PurchasesCoreSwift/Attribution/AttributionPoster.swift#L61

It seems like we might be pass (null) to the backend here. Is that a problem?

@taquitos
Copy link
Contributor Author

taquitos commented Nov 4, 2021

Sync with backend folks to see what values they are getting and what they do with them.

@taquitos
Copy link
Contributor Author

taquitos commented Nov 4, 2021

@vegaro just tracked it down, this string can be removed

@NachoSoto
Copy link
Contributor

@taquitos @vegaro can you provide some more context here? I went through the code, and "\(maybeIdentifierForAdvertisers ?? "(null)")_\(networkUserId ?? "(null)")" isn't being sent to the server, only used as a "cache key".

I wonder if this was already solved?

@NachoSoto NachoSoto added the status: needs-additional-info Issues that are missing steps from bug template label Jan 6, 2022
@taquitos
Copy link
Contributor Author

I think you're right. It looks like this is just used for cache management. It is included in the calls to postSubscriberAttributes and postSearchAds but only as a passthrough to setting the cache. When it is pulled from the cache, the value is only compared to a newly generated value which includes (null) but not directly sent anywhere.

@NachoSoto
Copy link
Contributor

Should we close this then?

@taquitos
Copy link
Contributor Author

💯

@NachoSoto NachoSoto removed the status: needs-additional-info Issues that are missing steps from bug template label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants