Latest 0.2.3
Homepage https://github.com/WeLoopTeam/WeLoop-iOS
License MIT
Platforms ios 9.0
Authors

Version
Platform

Example

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

Inside the AppDelegate.swift, update the dummy projectGUID with your own.

Requirements

Since WeLoop builds in swift 5.0, Xcode 10.2 is required to build the project.

The dependency requires iOS 9.0 or above to be built.

Installation

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

pod 'WeLoop'

Usage

Invocation

In order to invoke WeLoop you have two options.

  1. You provide the user identity. This is the default option. Simply provide your project key, and identity the current user by calling identifyUser.
WeLoop.initialize(apiKey: "YOUR_PROJECT_GUID");
WeLoop.identifyUser(firstName: "John", lastName: "Doe", email: "[email protected]")
  1. You let the user provide its login infos. Pass autoAuthentication to false when calling the initialize function.
WeLoop.initialize(apiKey: "YOUR_PROJECT_GUID", autoAuthentication: false);

Finally, if you have a weloop url with a customized subdomain, like "https://myCompany.getweloop.io/", you’ll need to specify a subdomain when initializing WeLoop:

WeLoop.initialize(apiKey: "YOUR_PROJECT_GUID", autoAuthentication: true, subdomain: "myCompany");

Invocation method

You can choose between different methods to invoke the WeLoop widget inside your application:

  1. Floating Action Button
// Set the invocation preferences. You can always change them after invoking the SDK
WeLoop.set(preferredButtonPosition: .bottomRight)
WeLoop.set(invocationMethod: .fab)
  1. Shake Gesture
WeLoop.set(invocationMethod: .shakeGesture)
  1. Manual
WeLoop.set(invocationMethod: .manual)

// Then, in your own button or control:

WeLoop.invoke()

Updating your plist

Since WeLoop offers the possibility to upload photos from the user photo gallery and from the camera, you will have to add the following entries to your plist, if they are not already present:

<key>NSPhotoLibraryUsageDescription</key>
<string>WeLoop needs to access your library to share pictures from your library</string>
<key>NSCameraUsageDescription</key>
<string>WeLoop needs to access your camera to take pictures</string>

License

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

Latest podspec

{
    "name": "WeLoop",
    "version": "0.2.3",
    "summary": "Integrate WeLoop to your iOS project",
    "description": "Integrate WeLoop to your iOS project.nAllow direct feedback from users while they are using apps.nProvoke interactions between users in a conversational mode: who likes the last suggestion? Who amends with better ideas? Leverage lead users expertise.nManage your community and reward the most engaged employees with a direct status report.",
    "homepage": "https://github.com/WeLoopTeam/WeLoop-iOS",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "WeLoop": "[email protected]"
    },
    "source": {
        "git": "https://github.com/WeLoopTeam/WeLoop-iOS.git",
        "tag": "0.2.3"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "WeLoop/Classes/**/*",
    "resources": "WeLoop/Assets/**/*",
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This