ios integration issues

207 views
Skip to first unread message

papantonio...@gmail.com

unread,
May 12, 2016, 6:08:59 PM5/12/16
to CleverTap Support
Hello, I have been trying to integrate CleverTap with my existing iOS project and I have been having some issues.  Firstly I added autoIntegrate in my didFinishLaunchingWithOptions. 
 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {


    [CleverTap autoIntegrate];




Then, I added my test account id and token to the plist as such: 

        <key>CleverTapAccountID</key>


        <string>TEST-XXX-XXX-XXXX


TEST-XXX-XXX-XXXX


</string>


        <key>CleverTapToken</key>


        <string>TEST-04b-b33


</string>


</dict>


</plist>


I tested push notifications through the integration guide and after some failures (I think due to the update of .p12 update file) i got the iOS success and actually got the push notification on my testing device. 

Finally I added Location tracking on my LocationManager class: 

-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{


   


    self.userLocation = [locations lastObject];




    if ([self.delegate respondsToSelector:@selector(locationUpdate:)]) {


        [self.delegate locationUpdate:self.userLocation];


        NSLog(@"CleverTap Location Update:");


        [CleverTap setLocation:self.userLocation.coordinate];




    }



In my Dashboard however on CleverTap I still get: Your CleverTap integration is Pending. So I am guessing no data are transmitted.

Any chance you could point me to the right direction of how I should set it up properly?

Thanks,

Antonis

papantonio...@gmail.com

unread,
May 12, 2016, 6:27:01 PM5/12/16
to CleverTap Support
Just a quick addition. On debug mode I get the following message from CleverTap: 
[CleverTap]: Using endpoint https://wzrkt.com/a1?os=iOS&t=14475&z=TEST-KK8-84W-K64Z&ts=1463091774

[CleverTap]: Response: (null)

[CleverTap]: This is strange - either the JSON response was nil or it wasn't of type NSDictionary

Support

unread,
May 12, 2016, 6:52:56 PM5/12/16
to CleverTap Support
Hi Antonis,

The CleverTap dashboard is extremely event-driven. So, it is displaying "Your CleverTap integration is pending" because you aren't sending us any events yet. Once you start sending us events (i.e., do some activity on your iOS app), you should start to see activity in your dashboard. 

Hope this helps.

Thanks,
Support.

papantonio...@gmail.com

unread,
May 12, 2016, 6:58:42 PM5/12/16
to CleverTap Support
Hello,

Thanks for your reply. I am aware of the fact that I need to upload events but through the debug log it seems that the connection with the Clevertap endpoint seems to fail thus the events are not synced. Is there some kind of issue with my setup to cause this? 

Antonis

Jude Pereira

unread,
May 13, 2016, 2:43:25 AM5/13/16
to CleverTap Support, Sumitra Narayanan
Hey Antonis,
Since you've mentioned that you did receive a push notification from CleverTap, your integration looks good :)
However, since you see "Your CleverTap integration is Pending", are you certain that you're looking at your test account (an orange bar at the top of your browser will indicate that it's the test account)?

Since you've integrated using the test account credentials, the data you send us will be visible only in your test account.

Regarding the log messages posted, the iOS SDK will automatically retry sending the data after a few seconds, so there's no need to worry about it.
Reply all
Reply to author
Forward
0 new messages