Latest 0.2.2
Homepage https://github.com/siddharthchopra/KahunaControlAppBootup
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

LogCamp

KahunaControlAppBootup is written in Swift

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

In order to access this feature of app boot up, you need to have Kahuna Logcamp Id

Installation

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

pod 'KahunaControlAppBootup', '~> 0.2.2'

New development will happen exclusively on the master/Swift 3 branch.

Set Server URL

let shared = AppBootupHandler.sharedInstance
shared.initServerBaseURL(serverBaseURL: kServerBaseURL)

Note:
Add import KahunaControlAppBootup into respected file

Set for Production app type

shared.isAppTypeProduction(flag: true)

Note: Default value for production = false

Set all App Boot Up key and default bool value of checkFreeSpace = false

shared.initAllAppBootupKeys(appId: logCampId)

OR

shared.initAllAppBootupKeys(appId: logCampId, checkFreeSpace: true)

Note: Default value for checkFreeSpace = false

Detect an app to boot or not in a device based on that apply app version, os version and free space.

  • Default View managed in a alert by library based on action.

    shared.checkForRemoteUpdate()
  • Custom View managed based on action managed by an app.
    shared.checkForRemoteUpdateByCustomView { (success, jsonObject) in
    if success && jsonObject is KahunaAppBootup {
    let kahunaAppBooup = jsonObject as! KahunaAppBootup
        print(kahunaAppBooup.action)
        print(kahunaAppBooup.message)
        print(kahunaAppBooup.title)
        print(kahunaAppBooup.url)
    }
    }

    Note:
    When success == true and jsonObject is KahunaAppBootup
    then we need to perform check actions and show message with title

  • Action BLOCK -> Restrict User to use an app by showing title and message in a alert.
  • Action WARNING -> Prompt message in an alert to User with title.
  • Action REDIRECT_TO_APPSTORE -> Prompt message in an alert to User with title and click ok then redirect to app store to update an app version.
  • Action REDIRECT_TO_SETTINGS -> Prompt message in an alert to User with title and click ok then redirect to device settings to update an os version.
  • Action REDIRECT_TO_URL -> Prompt message in an alert to User with title and click install then redirect to respective url to update an app version.

Author

siddharthchopra, [email protected]

License

KahunaControlAppBootup is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "KahunaControlAppBootup",
    "version": "0.2.2",
    "summary": "KahunaControlAppBootup library to detect an app to boot or not",
    "description": "KahunaControlAppBootup library to detect an app to boot or not based on that apply app version, os version and  free space in a device.",
    "homepage": "https://github.com/siddharthchopra/KahunaControlAppBootup",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "siddharthchopra": "[email protected]"
    },
    "source": {
        "git": "https://github.com/siddharthchopra/KahunaControlAppBootup.git",
        "tag": "0.2.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KahunaControlAppBootup/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This