`Time spent per user` metric decrease after V4->V5 update.
Closed this issue · 14 comments
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?
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?
I can observe it only in iOS
And do you see any change in number of daily active users (and similar) metric for that app?
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?
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 addedaddToAllTargets="true"
to theDependencies.xml
pod dependency. I made it, because I had problems with uncheckingLink 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
@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.
@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)
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.
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
@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)
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?
@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.
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?
Hey guys,
This ticket ended up having a few topics being discussed. I'll close it for the time being since there hasn't been any activity on it, but please, in case you're experiencing any of the issues you reported even with the latest Unity SDK version, feel free to comment / reopen.