Code Monkey home page Code Monkey logo

appmetrica-unity-plugin's Issues

ExternalDependencyManager от сторонних SDK

Сторонние SDK (Firebase, GPGS, Рекламные SDK) используют ExternalDependencyManager в корневой папке Assets и меняют ее по необходимости на более новую версию. Сейчас AppMetrica требует добавления ExternalDependencyManager в Packages, что вызовет конфликт с сторонними SDK. Стоит переработать этот момент.

IOS Crash 6.0.2

Unity 2022.3.38f
App crashes after sending event
Crashed: Thread

Failed parse json Error Domain=NSCocoaErrorDomain Code=3840 "No value for key in object around line 1, column 4." UserInfo={NSDebugDescription=No value for key in object around line 1, column 4., NSJSONSerializationErrorIndex=4} for json {"4"}
0  CoreFoundation    __exceptionPreprocess + 164
1  libobjc.A.dylib   objc_exception_throw + 60
2  CoreFoundation    -[NSException initWithCoder:] + 0
3  UnityFramework    amau_dictionaryFromJSONString + 436
4  UnityFramework    amau_dictionaryFromCString + 40
5  UnityFramework    amau_reportEvent + 60
6  UnityFramework    AppMetricaProxy_amau_reportEvent_m1CFB798EAEAFEE8059E2133BC5CFCD54CB42D147 + 68
7  UnityFramework    AppMetricaIos_ReportEvent_mDA78478D63B089B8CAFA0C12BBEF606065E1E46E + 60
8  UnityFramework    InterfaceActionInvoker2<String_t*, String_t*>::Invoke(unsigned short, Il2CppClass*, Il2CppObject*, String_t*, String_t*) + 84
9  UnityFramework    AppMetrica_ReportEvent_mD7339FE64A632331C5AD17B09E5B5C4D07A3B3BC + 176
10 UnityFramework    AppMetricaProvider_GTA_Features_Analytics_Scripts_IAnalyticsProvider_Report_mFF47175E1040EDAEE2CD7311DC0296991934F6B9 + 248
11 UnityFramework    InterfaceActionInvoker2<String_t*, String_t*>::Invoke(unsigned short, Il2CppClass*, Il2CppObject*, String_t*, String_t*) + 84
12 UnityFramework    AnalyticsModule_Run_m01D43047F97D34FF5B07821FBD72B5F3FBED7F85 + 268
13 UnityFramework    InterfaceActionInvoker2<AnalyticsCommand_t43C89E8248D68807BE479D4F05D203CF67345EBF, GameContext_t6EB5BAD30EFC326A88635C74E0D3EEEF4D876A4E*>::Invoke(unsigned short, Il2CppClass*, Il2CppObject*, AnalyticsCommand_t43C89E8248D68807BE479D4F05D203CF67345EBF, GameContext_t6EB5BAD30EFC326A88635C74E0D3EEEF4D876A4E*) + 100
14 UnityFramework    GameContext_ExecuteImmediate_TisAnalyticsCommand_t43C89E8248D68807BE479D4F05D203CF67345EBF_m284C45CE02887ADE8C8731D1F8D9BA8FC01BD8B8_gshared + 244
15 UnityFramework    GameContext_ExecuteImmediate_TisAnalyticsCommand_t43C89E8248D68807BE479D4F05D203CF67345EBF_m284C45CE02887ADE8C8731D1F8D9BA8FC01BD8B8(GameContext_t6EB5BAD30EFC326A88635C74E0D3EEEF4D876A4E*, AnalyticsCommand_t43C89E8248D68807BE479D4F05D203CF67345EBF, MethodInfo const*) + 56
16 UnityFramework    U3CRunU3Ed__0_MoveNext_m8C596574E5F7C43698A627684C5D6EE4396F881E + 1396
17 UnityFramework    AsyncUniTask_1_Run_m4D17B7FE5A6A4C43608566743E3787D3892183AA_gshared + 72
18 UnityFramework    Action_Invoke_m7126A54DACA72B845424072887B5F3A51FC3808E_inline(Action_tD00B0A84D7945E50C2DFFC28EFEE6ED44ED2AD07*, MethodInfo const*) + 48
19 UnityFramework    ContinuationQueue_RunCore_m3CF0C93FCEC17B9E879B2A31FE46A9846C77EFEC + 628
20 UnityFramework    ContinuationQueue_Run_mAF0D9BE1DE591406CF6E9E7AE723BFF6FB248027 + 32
21 UnityFramework    UpdateFunction_Invoke_m9BCEE4E5BEE924EB804DA64314B78D0E831C179B + 48
22 UnityFramework    RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void (*)(), MethodInfo const*, void*, void**, void*) + 48
23 UnityFramework    il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) + 100
24 UnityFramework    il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 84
25 UnityFramework    scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 124
26 UnityFramework    ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 120
27 UnityFramework    ExecutePlayerLoop(NativePlayerLoopSystem*) + 276
28 UnityFramework    ExecutePlayerLoop(NativePlayerLoopSystem*) + 204
29 UnityFramework    PlayerLoop() + 280
30 UnityFramework    UnityPlayerLoopImpl(bool) + 112
31 UnityFramework    UnityRepaint + 56
32 UnityFramework    -[UnityAppController(Rendering) repaint] + 152
33 UnityFramework    -[UnityAppController(Rendering) repaintDisplayLink] + 84
34 QuartzCore        CA::Display::DisplayLinkItem::dispatch_(CA::SignPost::Interval<(CA::SignPost::CAEventCode)835322056>&) + 48
35 QuartzCore        CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 876
36 QuartzCore        CA::Display::DisplayLink::dispatch_deferred_display_links(unsigned int) + 352
37 UIKitCore         _UIUpdateSequenceRun + 84
38 UIKitCore         schedulerStepScheduledMainSection + 172
39 UIKitCore         runloopSourceCallback + 92
40 CoreFoundation    __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
41 CoreFoundation    __CFRunLoopDoSource0 + 176
42 CoreFoundation    __CFRunLoopDoSources0 + 340
43 CoreFoundation    __CFRunLoopRun + 828
44 CoreFoundation    CFRunLoopRunSpecific + 608
45 GraphicsServices  GSEventRunModal + 164
46 UIKitCore         -[UIApplication _run] + 888
47 UIKitCore         UIApplicationMain + 340
48 UnityFramework    -[UnityFramework runUIApplicationMainWithArgc:argv:] + 136
49 CrimeSyndicate    main + 68
50 (Missing)         (Missing)

Can not see the full debug log on iOS?

I have implemented your SDK for my iOS app and used the function ReportEvent with jsonValue to track my events.
However, when I tested our game with Xcode or Console on macOS, I just only saw the eventName, and didn't see the jsonValue that following

How can I fix this?

Yandex Ads error with Android SDK 7.0.0

I'm using Yandex Ads ver 7.4.0 and AppMetrica SDK version 7.0.0 and I found this error:

08-09 15:52:59.068	com.indiez.nonogram	16067	-	W	YandexAds	 [Integration] Incorrect AppMetrica Version. The minimum supported version of AppMetrica SDK is 6.0.0 (inclusive) and the maximum supported version is 7.0.0 (exclusive). And the current version of AppMetrica SDK is 7.0.0	
08-09 15:53:03.984	com.indiez.nonogram	16067	-	E	YandexAds	 [Integration] Found following errors for banner ad type: 	
08-09 15:53:03.984	com.indiez.nonogram	16067	-	E	YandexAds	  - Incorrect AppMetrica Version. The minimum supported version of AppMetrica SDK is 6.0.0 (inclusive) and the maximum supported version is 7.0.0 (exclusive). And the current version of AppMetrica SDK is 7.0.0

How can I fix this?

How to turn off Auto Collected Ad Revenue event from ironSource?

We're receiving 2 duplicate Ad Revenue event because of Auto Collected option is enabled, how can I turn it off?
2024/05/22 18:10:53.570 18427 18671 Info AppMetrica [com.***] : [131e8ebd-xxxx-xxxx-xxxx-xxxxxxxx93b6] AdRevenue Received: AdRevenue{adRevenue=0.0000429999, currency='USD', adType=OTHER, adNetwork='facebook', adUnitId='<null>', adUnitName='<null>', adPlacementId='<null>', adPlacementName='DefaultBanner', precision='CPM', payload=null, autoCollected=true} 2024/05/22 18:10:53.607 18427 18671 Info AppMetrica [com.***] : [131e8ebd-xxxx-xxxx-xxxx-xxxxxxxx93b6] AdRevenue Received: AdRevenue{adRevenue=0.000042999900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, currency='USD', adType=BANNER, adNetwork='facebook', adUnitId='<null>', adUnitName='Bidding', adPlacementId='<null>', adPlacementName='banner', precision='<null>', payload={"ad_format":"banner","session_id":"1716376240381"}, autoCollected=false}

Errors on iOS after updating AppMetrica to v6.0.1

Hi guys!
We can see errors when we try report a user profile. We have never seen such exceptions before in the SDK version 5.2.0.
What could be the problem?

error	23:34:53.035041+0400	CoreSample	-[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
error	23:34:53.035346+0400	CoreSample	-[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
error	23:52:54.347321+0400	CoreSample	+[AMAFileUtility rawContentAtFilePath:error:]:87 Failed to read file /var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin with error: Error Domain=NSCocoaErrorDomain Code=260 "Не удалось открыть файл «event_hashes.bin», так как такого файла не существует." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSUnderlyingError=0x283776a30 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error	23:52:54.347347+0400	CoreSample	+[AMAFileUtility rawContentAtFilePath:error:]:87 Failed to read file /var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin with error: Error Domain=NSCocoaErrorDomain Code=260 "Не удалось открыть файл «event_hashes.bin», так как такого файла не существует." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin, NSUnderlyingError=0x28371eee0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error	23:52:54.348516+0400	CoreSample	+[AMAFileUtility setSkipBackupAttributesOnPath:]:131 Error excluding '/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin' from backup: Error Domain=NSCocoaErrorDomain Code=4 "Файл «event_hashes.bin» не существует." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application%20Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin, NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin, NSUnderlyingError=0x28371fae0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error	23:52:54.348644+0400	CoreSample	+[AMAFileUtility setSkipBackupAttributesOnPath:]:131 Error excluding '/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin' from backup: Error Domain=NSCocoaErrorDomain Code=4 "Файл «event_hashes.bin» не существует." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application%20Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSUnderlyingError=0x283720150 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

error	23:36:23.766732+0400	CoreSample	-[AMATimeoutRequestsController reportOfFailure]:74 Report failed for `report.hosts`. Backoff interval: 1.000000, count: 1

Errors in editor on IOS

After integration new appmetrica plugin, it's not work in editor when build target ios. There is error log:

EntryPointNotFoundException: amau_isActivated assembly:<unknown assembly> type:<unknown type> member:(null)
Io.AppMetrica.Native.Ios.AppMetricaIos.IsActivated () (at Library/PackageCache/io.appmetrica.analytics@bedfefbedf/Runtime/Native/Ios/AppMetricaIos.cs:47)
Io.AppMetrica.AppMetrica.IsActivated () (at Library/PackageCache/io.appmetrica.analytics@bedfefbedf/Runtime/AppMetrica.cs:128)
Io.AppMetrica.Internal.CrashHandler.HandleLog (System.String condition, System.String stackTrace, UnityEngine.LogType type) (at Library/PackageCache/io.appmetrica.analytics@bedfefbedf/Runtime/Internal/CrashHandler.cs:19)
UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Application/Application.cs:121)

Ios build looks successful. How to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.