Giter VIP home page Giter VIP logo

shakecrash-ios's Introduction

ShakeCrash

ShakeCrash is great way to involve you testers in deep in-app reporting. It's idea was taken from Google Maps, just shake your iPhone to submit screenshot with description via e-mail or Redmine!

Version License Platform

Usage

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

Installation

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

pod "ShakeCrash"

Configure ShakeCrash

You have two possibilities - you can send report directly to your Redmine project issues or send it to desired e-mail address. There is no way to use both at once. I would recommend to configure it in your AppDelegate. First, import ShakeCrash:

import ShakeCrash

Configure Redmine

You need to enable REST API in you Redmine and obtain your API key. Also you will need project id. You should be able to find all of them in your Redmine, in case of trouble I send you to Google.

let shakeReporterSettings = ShakeCrash.sharedInstance

let redmineReporter = RedmineFeedbackReporter(
redmineAddress: "<REDMINE_URL>",
apiToken: "<API_KEY>",
projectId: "<PROJECT_ID>")

shakeReporterSettings.delegate = redmineReporter

Correct URL has format http(s)://www.yourredmine.com. It is very important, that your Redmine version is >1.4.

Configure e-mail

There are no special requirments in order to send e-mail, just configure it.

let shakeReporterSettings = ShakeCrash.sharedInstance

let mailReporter = MailFeedbackReporter(reportEmail: "[email protected]")

shakeReporterSettings.delegate = mailReporter

Configure user name

It would be very useful if you could know your tester's name. There is the way you can ask your user to enter his name and it will only trigger once. Just paste line below in your viewDidLoad in UIViewController you want your user to enter his name.

self.presentConfigShakeCrashView()

If you don't do it, the first time user will make shake gesture ShakeCrash will ask for name. But it is up to you to inform user that there is shake gesture in app.

I highly recommend to use it in first view controller in your app. If you encountered some issues while calling this method make sure there are no problems with view controller's stack, because all views in ShakeCrash are called to present modally.

Author

Dominik Majda, [email protected]

License

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

shakecrash-ios's People

Contributors

rovalx avatar

Stargazers

Marek Skrzelowski avatar

Watchers

 avatar

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.