segment-integrations / analytics-ios-integration-localytics Goto Github PK
View Code? Open in Web Editor NEWThe Localytics analytics-ios integration.
Home Page: https://segment.com/docs/integrations/localytics
License: MIT License
The Localytics analytics-ios integration.
Home Page: https://segment.com/docs/integrations/localytics
License: MIT License
Pls tell how to import
#import <Segment-Localytics/SEGLocalyticsIntegrationFactory.h>
to swift project
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
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: (...)"
Localytics iOS SDK v5.0.0 includes several nice-to-have changes: https://docs.localytics.com/dev/sdk-changelog.html#developers-sdk-changelog-ios
Can you please update this integration to provide support for that version of the SDK?
A couple of Localytics APIs have changed with their 4.0.0 Library:
https://docs.localytics.com/dev/ios.html#migrating-v3-to-v4-ios
Most notably around push notification handling and setting a custom session timeout.
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!
It would be great if support for integrating this into a project via Carthage were added.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.