Giter VIP home page Giter VIP logo

launchkit-ios's Introduction

LaunchKit Logo

LaunchKit iOS SDK

The LaunchKit iOS SDK supports some of the app-level products in LaunchKit, like Super Users.

Install and Configure LaunchKit iOS SDK

Step 1

Option 1: CocoaPods

LaunchKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LaunchKit'

Option 2: Carthage

LaunchKit is also available through Carthage. Add the following line to your Cartfile:

github "LaunchKit/launchkit-ios"

Option 3: Manual Installation

You can install the LaunchKit SDK manually by cloning the repo or downloading the latest release, and copy the files in:

LaunchKit/Classes

...to your project. Additionally, you will also have to:

  1. Add zlib as a dependency on your app target.
  2. Set LAUNCHKIT_MANUAL_IMPORT=1 in your target's Build Settings, for all configurations (Debug and Release, by default). See Screenshot

Step 2

Add to your App Delegate

Objective C

Somewhere near the top of your -applicationDidFinishLaunching:withOptions:, add [LaunchKit launchWithToken:@"YOUR_API_TOKEN"], where YOUR_API_TOKEN is a special token you can get here.

#import <LaunchKit/LaunchKit.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Add this line
    [LaunchKit launchWithToken:@"YOUR_API_TOKEN"]

    ...
}
Swift
import LaunchKit

...
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    // Add this line
    LaunchKit.launchWithToken("YOUR_API_TOKEN")

    ...
}

Author

Cluster Labs, Inc., [email protected]

License

LaunchKit is available under the Apache 2.0 license. See the LICENSE file for more info.

launchkit-ios's People

Contributors

readmecritic avatar rsattar avatar

Stargazers

 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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

launchkit-ios's Issues

"Library not loaded" error when using Carthage

dyld: Library not loaded: @rpath/LaunchKit.framework/LaunchKit
Referenced from: /var/containers/Bundle/Application/2AC691FB-4205-4D59-B7C3-9ECD733C40BF/XXX-XXX.app/XXX-XXX
Reason: image not found

I get this error when embedding the library generated with Carthage and running my app on a test device. Not sure which step I did wrong...

Carlos.

V1.1.3 Carthage build broken

The BuildForCarthage workspace has not been updated with the latest changes causing the build to fail.

  1. SSZipArchive file names were changed in bc8cf8c
  2. LKTrackOperation is new and has not been added to the workspace.

Multiple "Anonymous Users" from single usage

Hello,
I've just installed this great library! I don't understand why, but when I have opened the application, I logged-in and out a couple of times and at the end I had three different users: two are Anonymous and one is my customized user (the logged-in user). Shouldn't the Anonymous profile "convert" to a customized user, when logged in?

Thanks!

Multiple users from single session and device

Add tvOS support

Hello,

Library uses some APIs that are not available on tvOS.

Could you please improve the library by supporting tvOS as well?

Regards,
Oleg

screenshot 2015-11-03 12 57 35

Can't force presentation of release notes

Although it was working in a previous release, I just tried calling the forcePresentationOfAppReleaseNotesFromViewController method and it had no effect. Not sure if this is a Swift 2.2 and/or Xcode 7.3 bug.

Occasional warnings for LaunchKit under Carthage

I'm getting multiple umbrella header for module LaunchKit does not include header warnings when building my project. I've had these warnings disappear and then reappear occasionally. I'm on Carthage 0.11 and Xcode 7.2. I build my Carthage dependencies using carthage update --platform iOS --no-use-binaries.

Screenshot:
screen shot 2016-01-19 at 14 37 01

Anyone seen this? I haven't seen a similar problem in other Carthage-installed dependencies.

Storyboard files

Hey,

I mentioned this in an email but it would be great if we have access to LaunchKits storyboard files. The UI is ideal for a lot of use cases including in-app purchases. This would avoid users duplicating.

With xcode 11 and iOS 13 it gives warnign to call some method's on main thread.

Following is the method from LKAPIlient.m class which the body needs to call on the main thread.

**- (void) trackProperties:(NSDictionary *)properties
withSuccessBlock:(void (^)(NSDictionary responseDict))successBlock
errorBlock:(void(^)(NSError error))errorBlock

call the content of this block on the main thread.

Release Notes On First launch After Install

I'm noticing that the release notes card doesn't show up after first launch after a fresh install. It does present when I force close the app and relaunch it.

Is that the expected behaviour?

setQualityOfService: unrecognized selector

Just pushed a new version of one of my apps using LaunchKit, but instantly started seeing crashes on Fabric/Crashlytics.

It's pointing at [LKAPIClient init] and crashing with:

Fatal Exception: NSInvalidArgumentException
-[NSOperationQueue setQualityOfService:]: unrecognized selector sent to instance 0x178232ba0

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.