Android 版 HelpStack
HelpStack is a library to provide in-app support for your app's users, by connecting with the helpdesk of your choice. Your app’s users can easily raise requests or report issues from within your app.
With HelpStack, you can:
HelpStack supports the following leading helpdesk solutions:
You can choose any 1 of the 4 options mentioned above, to get started with HelpStack.
Check out helpstack.io for more information.
Checkout this wiki page if you want a clear idea on how you can progress with HelpStack: Wiki - How to progress with HelpStack
Have you made something awesome with HelpStack? Add yourself here: App Showcase
Installing the HelpStack library is fairly straight-forward.
Add jcenter as a repository to your app's build.gradle
repositories {
jcenter()
}
Add com.tenmiles:helpstack:1.2.0 as a dependency in the same build.gradle
dependencies {
compile 'com.tenmiles:helpstack:1.2.0'
}
Add this to avoid duplicate file during packaging APK
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}For more information on installation, such as Installing in Eclipse and common installation errors, visit this Wiki page: Installation Instructions
Broadly speaking, there are just 3 steps to begin using HelpStack within your app:
The helpdesk solutions will be referred to as Gears.
Create a custom Application class which extends the Application class. Be sure to mention it in your manifest as well.
Obtain the necessary credentials for the gear of your choice and create a suitable Gear object. Set the Gear object with HSHelpStack instance only once.
The general structure of setting a gear is given below:
public class HSApplication extends Application {
HSHelpStack helpStack;
@Override
public void onCreate() {
super.onCreate();
helpStack = HSHelpStack.getInstance(this); // Get the HSHelpStack instance
= new (); // Create the Gear object
helpStack.setGear(); // Set the Gear
}
}Follow the instructions below for configuring the gear of your choice:
Add a clickable item (probably a button) in your UI, wherever appropriate. Set a click listener to it. Within the click listener, use the showHelp API to open up the HelpStack UI:
HSHelpStack.getInstance(getActivity()).showHelp(getActivity());It is very easy to customize the HelpStack UI, if you want it go along with your app's UI.
HelpStack comes with built-in screens and a default theme. It also comes with a set of pre-configured themes. You can download them from the link below:
Each theme comes with the following:
List of parameters for configuring the look and feel of HelpStack: Parameters for configuring Themes
Main List View
Issue Details View
If you want the complete look-and-feel of a theme, you might also want to update the color of your app's Action bar.
For more information, refer to the documents in the Wiki section.
HelpStack depends on the following libraries:
'com.android.support:appcompat-v7:23.0.0'
'com.google.code.gson:gson:2.3'
'org.apache.httpcomponents:httpmime:4.2.6'
'com.mcxiaoke.volley:library:1.0.19'If you have Proguard enabled, please add this snippet to your proguard rules file (eg proguard-rules.pro, proguard.cfg or others):
# helpstack
-dontwarn com.polites.**
-dontwarn com.tenmiles.helpstack.**
-dontwarn org.apache.commons.**
-keep class org.apache.http.** { *; }
-dontwarn org.apache.http.**For more information about HelpStack, visit helpstack.io.
HelpStack is maintained by the folks at HappyFox. Being an open source project, it also contains work from the HelpStack community.
Reach out to us on Twitter at @HelpStackSDK.
HelpStack is available under the MIT license. See the LICENSE file for more info.
暂无开放 Issues,或尚未同步最近议题。