hakemhakemy / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
https://hakemhakemy-action.wix.com/action
1 stars 0 forks source link

This class is not key value coding-compliant for the key #619

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Name of affected component: Campaign Measurement iOS tutorial

Objective-C

Issue summary:
There is a critical bug in Campaign Measurement iOS tutorial causing an app to 
crash 
(https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns#g
eneral-campaigns).

There is this line of code in the method 
application:openURL:sourceApplication:annotation

    if(![hitParams valueForKey:kGAICampaignSource] && [url host].length !=0) {

Calling *valueForKey* on GAIDictionaryBuilder causes an app to crash with "This 
class is not key value coding-compliant for the key". It should be replaced 
with *get* method of GAIDictionaryBuilder.

Original issue reported on code.google.com by skor...@gmail.com on 22 Apr 2015 at 6:32

GoogleCodeExporter commented 9 years ago
I have same issue and solve with above comment which is valueForKey should be 
replaced with "get" method of GAIDictionaryBuilder. 

Note: get method created in GAIDictionaryBuilder class.

Original comment by oa.akt...@gmail.com on 24 Jun 2015 at 7:50

GoogleCodeExporter commented 9 years ago
The documentation for campaigns needs to be changed to the fix mentioned above.

Original comment by cub...@gmail.com on 3 Jul 2015 at 6:03