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

Time spent per user metric decrease after V4->V5 update. #308

Open
kekchpek opened this issue Sep 2, 2024 · 13 comments
Open

Time spent per user metric decrease after V4->V5 update. #308

kekchpek opened this issue Sep 2, 2024 · 13 comments

Comments

@kekchpek
Copy link

kekchpek commented Sep 2, 2024

After we had updated Adjust Unity SDK in our project, we noticed significant decrease of Time spent per user in cohort analytics dashboard. We use other analytics services like Firebase and this behaviour isn't reproduced there. Are there any changes in time tracking or something in V5 SDK, that could affect this?
image

@uerceg
Copy link
Contributor

uerceg commented Sep 2, 2024

Hi @kekchpek,

Thanks for the report. In theory, SDK v5 hasn't been touching any logic when it comes to way how SDK is counting time users are spending in foreground / background.

Is this something which you're observing in iOS and Android version of your app or is this specific to one of those platforms?

@kekchpek
Copy link
Author

kekchpek commented Sep 2, 2024

I can observe it only in iOS

@uerceg
Copy link
Contributor

uerceg commented Sep 2, 2024

And do you see any change in number of daily active users (and similar) metric for that app?

@kekchpek
Copy link
Author

kekchpek commented Sep 2, 2024

No, I can't see any anomalies in daily users, revenue, retention or any other.

I noticed, that there are some things in my project, that differ from Install Guide. In the project I have not disabled Link Frameworks Statically and added addToAllTargets="true" to the Dependencies.xml pod dependency. I made it, because I had problems with unchecking Link Frameworks Statically. When I do this, I receive a build error in my xCode project. There is a bunch of errors:

Undefined symbol: _GADAdLoaderAdTypeNative
Undefined symbol: _GADAdSizeBanner
Undefined symbol: _GADAdSizeLeaderboard
Undefined symbol: _GADAdSizeMediumRectangle
Undefined symbol: _GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth
Undefined symbol: _GADGetStringFromVersionNumber
Undefined symbol: _OBJC_CLASS_$_GADAdLoader
Undefined symbol: _OBJC_CLASS_$_GADAppOpenAd
Undefined symbol: _OBJC_CLASS_$_GADBannerView
Undefined symbol: _OBJC_CLASS_$_GADExtras
Undefined symbol: _OBJC_CLASS_$_GADInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GADMediaView
Undefined symbol: _OBJC_CLASS_$_GADMobileAds
Undefined symbol: _OBJC_CLASS_$_GADNativeAdImageAdLoaderOptions
Undefined symbol: _OBJC_CLASS_$_GADNativeAdView
Undefined symbol: _OBJC_CLASS_$_GADNativeAdViewAdOptions
Undefined symbol: _OBJC_CLASS_$_GADQueryInfo
Undefined symbol: _OBJC_CLASS_$_GADRequest
Undefined symbol: _OBJC_CLASS_$_GADRewardedAd
Undefined symbol: _OBJC_CLASS_$_GADRewardedInterstitialAd
Linker command failed with exit code 1 (use -v to see invocation)

It doesn't seem to be related to Adjust, but it makes me not able to disable Link Frameworks Statically because it affects other SDK's I use.

Maybe this could be connected to my issue?

@alkanyunus
Copy link

No, I can't see any anomalies in daily users, revenue, retention or any other.

I noticed, that there are some things in my project, that differ from Install Guide. In the project I have not disabled Link Frameworks Statically and added addToAllTargets="true" to the Dependencies.xml pod dependency. I made it, because I had problems with unchecking Link Frameworks Statically. When I do this, I receive a build error in my xCode project. There is a bunch of errors:

Undefined symbol: _GADAdLoaderAdTypeNative
Undefined symbol: _GADAdSizeBanner
Undefined symbol: _GADAdSizeLeaderboard
Undefined symbol: _GADAdSizeMediumRectangle
Undefined symbol: _GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth
Undefined symbol: _GADGetStringFromVersionNumber
Undefined symbol: _OBJC_CLASS_$_GADAdLoader
Undefined symbol: _OBJC_CLASS_$_GADAppOpenAd
Undefined symbol: _OBJC_CLASS_$_GADBannerView
Undefined symbol: _OBJC_CLASS_$_GADExtras
Undefined symbol: _OBJC_CLASS_$_GADInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GADMediaView
Undefined symbol: _OBJC_CLASS_$_GADMobileAds
Undefined symbol: _OBJC_CLASS_$_GADNativeAdImageAdLoaderOptions
Undefined symbol: _OBJC_CLASS_$_GADNativeAdView
Undefined symbol: _OBJC_CLASS_$_GADNativeAdViewAdOptions
Undefined symbol: _OBJC_CLASS_$_GADQueryInfo
Undefined symbol: _OBJC_CLASS_$_GADRequest
Undefined symbol: _OBJC_CLASS_$_GADRewardedAd
Undefined symbol: _OBJC_CLASS_$_GADRewardedInterstitialAd
Linker command failed with exit code 1 (use -v to see invocation)

It doesn't seem to be related to Adjust, but it makes me not able to disable Link Frameworks Statically because it affects other SDK's I use.

Maybe this could be connected to my issue?

Exactly the same here

@alkanyunus
Copy link

alkanyunus commented Sep 4, 2024

@kekchpek
When we have to uncheck "Link Frameworks Statically" in order to work with adjust v5, we came up with the Other Linker Flags with a post process script to add "-ObjC" for only ios builds.

Adjust v5
Applovin MAX

  • Google admob networks
var projPath = PBXProject.GetPBXProjectPath(path);
var proj = new PBXProject();
proj.ReadFromFile(projPath);

var targetGuid = proj.GetUnityMainTargetGuid();
var frameworkGuid = proj.GetUnityFrameworkTargetGuid();

// build settings
// when static library disabled, Google Admob network throws compile error
// So adding objc flag only to solve the issue
proj.SetBuildProperty(targetGuid, "OTHER_LDFLAGS", "-ObjC");

Let me know if it's worked for you too.

@kekchpek
Copy link
Author

@alkanyunus unfortunately your advice doesn't help.

@uerceg is there any updates about how can I use adjust SDK without unchecking Link Frameworks Statically? If I keep it checked, my app crashes on startup with next error:

Error loading /var/containers/Bundle/Application/48FF46D3-F843-4877-9CE4-9C34F3F08223/a.app/Frameworks/UnityFramework.framework/UnityFramework (152):  dlopen(/var/containers/Bundle/Application/48FF46D3-F843-4877-9CE4-9C34F3F08223/a.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/AdjustSigSdk.framework/AdjustSigSdk
  Referenced from: <2B6607CA-1DC0-346B-9E95-A3D08A9D6BE9> /private/var/containers/Bundle/Application/48FF46D3-F843-4877-9CE4-9C34F3F08223/a.app/Frameworks/UnityFramework.framework/UnityFramework
  Reason: tried: '/usr/lib/swift/AdjustSigSdk.framework/AdjustSigSdk' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AdjustSigSdk.framework/AdjustSigSdk' (no such file), '/private/var/containers/Bundle/Application/48FF46D3-F843-4877-9CE4-9C34F3F08223/a.app/Frameworks/AdjustSigSdk.framework/AdjustSigSdk' (no such file), '/usr/lib/swift/AdjustSigSdk.framework/AdjustSigSdk' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AdjustSigSdk.framework/AdjustSigSdk' (no such file), '/private/var/containers/Bundle/Application/48FF46D3-F843-4877-9CE4-9C34F3F08223/a.app/Frameworks/AdjustSigSdk.framework/AdjustSigSdk' (no such file), '/private/var/containers/Bundle/Application/48FF46D3-F843-4877-9CE4-9C34F3F08223/a.app/Frameworks/AdjustSigSdk.framework/AdjustSigSdk' (no such file)

@uerceg
Copy link
Contributor

uerceg commented Oct 16, 2024

Hey @kekchpek,

Actually, yes, there are updates on this topic. In next couple of days we are planning to release 5.0.4 update which should eliminate the need for that step to be performed (uncheck static linking on EDM4U) and hopefully make SDK to handle any kind of setup you might have set for EDM4U iOS resolver.

I'll keep the ticket posted.

@uerceg uerceg mentioned this issue Oct 18, 2024
@uerceg
Copy link
Contributor

uerceg commented Oct 18, 2024

We have just shipped v5.0.4 which should hopefully address these issues.

Looking forward to hearing back from you if it fixed the issues on your end or not.

Cheers

@BogdanBobkov
Copy link

@uerceg Hi! I keep getting these errors on version 5.0.4 without the proj.SetBuildProperty(targetGuid, "OTHER_LDFLAGS", "-ObjC"); flag added.

Undefined symbol: _GADAdLoaderAdTypeNative
Undefined symbol: _GADAdSizeBanner
Undefined symbol: _GADAdSizeLeaderboard
Undefined symbol: _GADAdSizeMediumRectangle
Undefined symbol: _GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth
Undefined symbol: _GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth
Undefined symbol: _GADGetStringFromVersionNumber
Undefined symbol: _GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight
Undefined symbol: _OBJC_CLASS_$_GADAdLoader
Undefined symbol: _OBJC_CLASS_$_GADAppOpenAd
Undefined symbol: _OBJC_CLASS_$_GADBannerView
Undefined symbol: _OBJC_CLASS_$_GADExtras
Undefined symbol: _OBJC_CLASS_$_GADInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GADMediaView
Undefined symbol: _OBJC_CLASS_$_GADMobileAds
Undefined symbol: _OBJC_CLASS_$_GADNativeAdImageAdLoaderOptions
Undefined symbol: _OBJC_CLASS_$_GADNativeAdView
Undefined symbol: _OBJC_CLASS_$_GADNativeAdViewAdOptions
Undefined symbol: _OBJC_CLASS_$_GADQueryInfo
Undefined symbol: _OBJC_CLASS_$_GADRequest
Undefined symbol: _OBJC_CLASS_$_GADRewardedAd
Undefined symbol: _OBJC_CLASS_$_GADRewardedInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GAMBannerView
Undefined symbol: _OBJC_CLASS_$_GAMInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GAMRequest
Undefined symbol: _OBJC_CLASS_$_YMAAdView
Undefined symbol: _OBJC_CLASS_$_YMABannerAdSize
Undefined symbol: _OBJC_CLASS_$_YMABidderTokenLoader
Undefined symbol: _OBJC_CLASS_$_YMABidderTokenRequestConfiguration
Undefined symbol: _OBJC_CLASS_$_YMAInterstitialAdLoader
Undefined symbol: _OBJC_CLASS_$_YMAMobileAds
Undefined symbol: _OBJC_CLASS_$_YMAMutableAdRequest
Undefined symbol: _OBJC_CLASS_$_YMAMutableAdRequestConfiguration
Undefined symbol: _OBJC_CLASS_$_YMARewardedAdLoader
Linker command failed with exit code 1 (use -v to see invocation)

@uerceg
Copy link
Contributor

uerceg commented Oct 23, 2024

Hi @BogdanBobkov,

Let me double-check if I understood you well. Is the absence of the -ObjC flag a thing that's causing the issues for you and if you add the flag back, everything works fine?

@BogdanBobkov
Copy link

@uerceg You are right. With the -ObjC flag added, everything works correctly. I can see new 'register for remote notifications iOS' errors from Firebase after launching the application with that flag, but I assume this is an internal issue on our side.

@uerceg
Copy link
Contributor

uerceg commented Oct 23, 2024

I see. I mean, is there something preventing you from adding it back? Presence of that flat should not do any harm to our SDK integration. Do you see Adjust SDK not working if you add the flag?

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

No branches or pull requests

4 participants