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

Static Framework Missing IDFA Fix #1399

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

NidhiDixit09
Copy link
Collaborator

@NidhiDixit09 NidhiDixit09 commented May 30, 2024

Reference

SDK-2408 -- Investigate loss of AdSupport for Spotify
https://branch.atlassian.net/browse/SDK-2408

Summary

Fixed script names in "Run Script" phase of targets static-xcframework and static-xcframework-noidfa.

Type Of Change

  • Bug fix (non-breaking change which fixes an issue)

Testing Instructions

IDFA Support

Generate a static framework by running script. -
/scripts/prep_static_xcframework.sh
This will generate a static framework with IDFA support.

Link this framework to a test app with ATTrackingmanager support ( https://help.branch.io/developers-hub/docs/ios-advanced-features#include-apples-attrackingmanager).

Build and Run App. Check logs if idfa is present in requests -

  "hardware_id" : "XXXXXXXXXXXX",
  "hardware_id_type" : "idfa",

IDFA Excluded

Generate a static framework by running script. -
./scripts/prep_static_xcframework_noidfa.sh

This will generate a static framework without IDFA support (Macro BRANCH_EXCLUDE_IDFA_CODE is enabled )

Link this framework to a test app with ATTrackingmanager support ( https://help.branch.io/developers-hub/docs/ios-advanced-features#include-apples-attrackingmanager).

Build and Run App. Check logs if idfa is NOT present in requests -

  "hardware_id" : "XXXXXXXXXXXX",
  "hardware_id_type" : "vendor_id",

Also, logs print following message
[BranchSDK][Debug][BNCDeviceInfo checkAdvertisingIdentifier] BRANCH_EXCLUDE_IDFA_CODE flag enabled. IDFA is not available

I am also attaching here static framework (with IDFA enabled) for testing.
Branch_static.zip

cc @BranchMetrics/saas-sdk-devs for visibility.

Copy link
Contributor

@gdeluna-branch gdeluna-branch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good write up 👍🏼

@gdeluna-branch gdeluna-branch changed the title Spotify Missing IDFA Fix Static Framework Missing IDFA Fix Jun 7, 2024
@gdeluna-branch gdeluna-branch merged commit 82a5546 into master Jun 7, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants