We use cookies to ensure you get the best user experience on our website.Find Out More
Add this line to your build.gradle file:
You may also need to add the following to your project/build.gradle file:
Then, update the following sdkVersion to your app's `build.gradle` file:
1. In your Launching activity add this line to your onCreate method. This initializes Shake Bug with the default invocation event, Shake.
Java
Kotlin
1. If you want add event to any screen or activity use following methods.
Java
Kotlin
2. Add the following for enabling/disabling first time tutorial screen.
Java
Kotlin
To integrate ShakeBug into your Xcode project using CocoaPods, specify it in your Podfile:
Then, run the following command:
1. Import the ShakeBug framework header into your app delegate.
Swift
Objective-C
Note: If you are working React Native exported project then you also need to mention this line too
2. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method.
Swift
Objective-C
Be sure to replace with your application key which given by ShakeBug website.
Note: NSPhotoLibraryUsageDescription must be added in info.plist.
Want to know moreNavigate to your React Native project directory and install shakebug-react-native
Or if you prefer to use Yarn instead of npm:
For iOS project, developer must need to install Shakebug in xCode project using pod.
To install Shakebug SDK in xCode project. Please follow above "For iOS" guide.
Add this line to your build.gradle file.
Open package having MainActivity.java file and create ShakeBugModule.java
For iOS project, developer must need to install Shakebug in xCode project using pod.
To install Shakebug SDK in xCode project. Please follow above "For iOS" guide.
Add this line to your build.gradle file.
Open package having MainActivity.java file and create ShakeBugModule.java
Copy following code after the </body> section of your HTML.
1. Make sure this script must be load in each and every page of your website.
2. Here value of apikey must be from Shakebug after login panel.
3. isReportingIconVisible = true means it will show bug reporting icon in left-bottom corner of your website. False means it won’t show icon there.
4. To enable bug reporting using the shake gesture on an iOS mobile device, ensure that 'isAllowShake' is set to true in the above script. False means it won’t allow shake gesture in ios mobile device.
5. Shortcut key for bug reporting in Desktop website: For Windows and Ubuntu OS:
For Mac OS:
Prior to add event to any webpage, you must need to add following script below the above script.
Browser | Desktop | iOS | Android |
---|---|---|---|
Google Chrome | |||
Mozilla Firefox | |||
Microsoft Edge | |||
Safari |