Code Monkey home page Code Monkey logo

analytics-ios-integration-localytics's Introduction

Analytics

CircleCI Version License

Localytics integration for analytics-ios.

Installation

To install the Segment-Localytics integration, simply add this line to your CocoaPods Podfile:

pod "Segment-Localytics"

Usage

After adding the dependency, you must register the integration with our SDK. To do this, import the Localytics integration in your AppDelegate:

#import <Segment-Localytics/SEGLocalyticsIntegrationFactory.h>

And add the following lines:

NSString *const SEGMENT_WRITE_KEY = @" ... ";
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];

[config use:[SEGLocalyticsIntegrationFactory instance]];

[SEGAnalytics setupWithConfiguration:config];

License

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

The MIT License (MIT)

Copyright (c) 2014 Segment, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

analytics-ios-integration-localytics's People

Contributors

brennan avatar bsneed avatar f2prateek avatar kdaswani avatar ladanazita avatar mrchristopher124 avatar samshiffman321 avatar teresanesteby avatar wcjohnson11 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

analytics-ios-integration-localytics's Issues

Incompatible with use_frameworks!

If your Podfile has use_frameworks! enabled, when you include this pod and run 'pod install' you get the following error: "[!] The 'Pods' target has transitive dependencies that include static binaries: (...)"

Legacy tags creating confusion for CocoaPods

Some older releases have version number higher than newer releases, creating confusion for CocoaPods, who thinks there is an update to the pod. It would be cool if those could be cleaned up.
screen shot 2017-06-23 at 11 25 10 am

import to swift project

Pls tell how to import
#import <Segment-Localytics/SEGLocalyticsIntegrationFactory.h>
to swift project

Pod still points to 3.5.1?

Your current podspec uses 3.6.1(latest) but seems like is not yet working at cocoapods?
When I pod install it I get:

  • Localytics (~> 3.5.1) required by Segment-Localytics (1.0.0)

Still 3.5.1?
Am I missing something?
Thanks!

[Cocoapods] [1.5] Static libs

Hello !

I try to put all my cocoapods dependencies as Static Libraries using Cocoapods 1.5 (http://blog.cocoapods.org/CocoaPods-1.5.0/) removing use_frameworks! and adding use_modular_headers! in my podfile.

All my pods compile except 2 Segment integrations. Segment-Localytics is one of them. When I try to build my project after a pod install, I have an error on Segment-Localytics :

In SEGLocalyticsIntegration.m -> <Localytics/Localytics.h> file not found

Any clue on this ?

For the record : Segment-GoogleAnalytics, Segment-Facebook-App-Events, Segment-Appboy are working fine.

Thanks a lot

Main Thread Checker Issue in XCode 9

The Xcode 9 main thread checker shows that Segment-Localytics is making a call to [UIApplication applicationState] on a background thread, which is not correct:

=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 385, TID: 23764, Thread name: (none), Queue name: io.segment.analytics, QoS: 0
Backtrace:
4 Localytics 0x0000000102ff52c8 -[LLBaseLocalyticsManager integrate:] + 88
5 Localytics 0x0000000103052c5c -[LLLocalyticsManager integrate:] + 56
6 Segment_Localytics 0x0000000105231084 -[SEGLocalyticsIntegration initWithSettings:] + 316
7 Segment_Localytics 0x0000000105232d00 -[SEGLocalyticsIntegrationFactory createWithSettings:forAnalytics:] + 140
8 Analytics 0x0000000102b09dec __57-[SEGIntegrationsManager updateIntegrationsWithSettings:]_block_invoke + 584
9 Analytics 0x0000000102b00cec __seg_dispatch_specific_block_invoke + 80
10 Analytics 0x0000000102b00c00 seg_dispatch_specific + 256
11 Analytics 0x0000000102b00e90 seg_dispatch_specific_sync + 116
12 Analytics 0x0000000102b09b5c -[SEGIntegrationsManager updateIntegrationsWithSettings:] + 208
13 Analytics 0x0000000102b09a54 -[SEGIntegrationsManager setCachedSettings:] + 380
14 Analytics 0x0000000102b0a5c8 __41-[SEGIntegrationsManager refreshSettings]_block_invoke_3 + 140
15 Analytics 0x0000000102b00cec __seg_dispatch_specific_block_invoke + 80
16 libdispatch.dylib 0x0000000105e0d69c _dispatch_call_block_and_release + 24
17 libdispatch.dylib 0x0000000105e0d65c _dispatch_client_callout + 16
18 libdispatch.dylib 0x0000000105e1c2dc _dispatch_queue_serial_drain + 692
19 libdispatch.dylib 0x0000000105e10bf0 _dispatch_queue_invoke + 332
20 libdispatch.dylib 0x0000000105e1d2b8 _dispatch_root_queue_drain_deferred_wlh + 424
21 libdispatch.dylib 0x0000000105e24268 _dispatch_workloop_worker_thread + 652
22 libsystem_pthread.dylib 0x0000000186993fcc _pthread_wqthread + 932
23 libsystem_pthread.dylib 0x0000000186993c1c start_wqthread + 4
2017-08-11 09:24:38.986358-0400 SPApp_IOS[385:23764] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 385, TID: 23764, Thread name: (none), Queue name: io.segment.analytics, QoS: 0
Backtrace:
4 Localytics 0x0000000102ff52c8 -[LLBaseLocalyticsManager integrate:] + 88
5 Localytics 0x0000000103052c5c -[LLLocalyticsManager integrate:] + 56
6 Segment_Localytics 0x0000000105231084 -[SEGLocalyticsIntegration initWithSettings:] + 316
7 Segment_Localytics 0x0000000105232d00 -[SEGLocalyticsIntegrationFactory createWithSettings:forAnalytics:] + 140
8 Analytics 0x0000000102b09dec __57-[SEGIntegrationsManager updateIntegrationsWithSettings:]_block_invoke + 584
9 Analytics 0x0000000102b00cec __seg_dispatch_specific_block_invoke + 80
10 Analytics 0x0000000102b00c00 seg_dispatch_specific + 256
11 Analytics 0x0000000102b00e90 seg_dispatch_specific_sync + 116
12 Analytics 0x0000000102b09b5c -[SEGIntegrationsManager updateIntegrationsWithSettings:] + 208
13 Analytics 0x0000000102b09a54 -[SEGIntegrationsManager setCachedSettings:] + 380
14 Analytics 0x0000000102b0a5c8 __41-[SEGIntegrationsManager refreshSettings]_block_invoke_3 + 140
15 Analytics 0x0000000102b00cec __seg_dispatch_specific_block_invoke + 80
16 libdispatch.dylib 0x0000000105e0d69c _dispatch_call_block_and_release + 24
17 libdispatch.dylib 0x0000000105e0d65c _dispatch_client_callout + 16
18 libdispatch.dylib 0x0000000105e1c2dc _dispatch_queue_serial_drain + 692
19 libdispatch.dylib 0x0000000105e10bf0 _dispatch_queue_invoke + 332
20 libdispatch.dylib 0x0000000105e1d2b8 _dispatch_root_queue_drain_deferred_wlh + 424
21 libdispatch.dylib 0x0000000105e24268 _dispatch_workloop_worker_thread + 652
22 libsystem_pthread.dylib 0x0000000186993fcc _pthread_wqthread + 932
23 libsystem_pthread.dylib 0x0000000186993c1c start_wqthread + 4

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.