NullReferenceException trying to clear tracker parameter (iOS)
nicolasjinchereau opened this issue · comments
nicolasjinchereau commented
To clear a parameter, you should pass nil to value:
But first, this call is made, which calls +(NSString)stringWithUTF8String on value, which will throw when null is passed.
google-analytics-plugin-for-unity/source/Plugins/iOS-bitcode/GAIHandler.m
Lines 108 to 113 in 49a1ddf
But before calling those two, you must call this in C#, which calls ToString() on the value without checking if it's null.
Finally, SetTrackerVal, which should be able to accept null to clear parameters, but crashes due to aforementioned problems.