Skip to content

Instantly share code, notes, and snippets.

@helpshift
helpshift / application-tags.xml
Last active October 13, 2015 13:18 — forked from kapilreddy/application-tags.xml
Helpshift android SDK documentation
<activity android:name="com.helpshift.HelpshiftActivity" android:theme="@style/HSBottomAnimTheme" />
<activity android:name="com.helpshift.HSAddIssue" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSAddProfile" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSMessages" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSQuestionsList" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSQuestion" android:configChanges="orientation|screenSize" android:theme="@style/HSRightAnimTheme" />
@helpshift
helpshift / appDelegate.m
Created December 5, 2012 05:28
Helpshift iOS SDK documentation
[Helpshift installForAppID:@"sandbox_platform_20120726120113072-89b012748d5aa10"
domainName:@"sandbox.helpshift.com"
apiKey:@"5a867e6b07466faa939285508de33a42"];
@helpshift
helpshift / gist:4378689
Last active December 10, 2015 04:08
Helpshift iOS UA
- (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
[[Helpshift sharedInstance] registerDeviceToken:deviceToken];
}
@helpshift
helpshift / gist:4378705
Created December 26, 2012 07:32
Helpshift Android UA
String action = intent.getAction();
if (action.equals(PushManager.ACTION_REGISTRATION_FINISHED)) {
hs.setDeviceToken(UAirship.shared().getApplicationContext(),PushManager.shared().getAPID());
}
@helpshift
helpshift / async-fetch-notif-count-1.java
Last active December 14, 2015 00:59
Android SDK v1 docs gists.
hs.getNotificationCount(countHandler, failHandler);
@helpshift
helpshift / urban-airship-1.java
Last active December 14, 2015 01:08
Android SDK v1 gists 2.
String action = intent.getAction();
if (action.equals(PushManager.ACTION_REGISTRATION_FINISHED)) {
hs.setDeviceToken(UAirship.shared().getApplicationContext(),
PushManager.shared().getAPID());
}
@helpshift
helpshift / GCMIntentReceiver-1.java
Last active December 14, 2015 01:09
Android SDK v2 docs gists.
public class GCMIntentReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
}
}
- (void) notificationCountAsyncReceived:(NSInteger)count {
dispatch_async(dispatch_get_main_queue(), ^{
[yourView setTextLabel:[NSString stringWithFormat:@"%d",count];
});
}
[Helpshift metadataWithBlock:^(void){
return [NSDictionary dictionaryWithObjectsAndKeys:
@"xyz", @"name",
@"xyz@abc.com", @"email",
gameObject.level, @"level",
gameObject.score, @"score",
nil];
}];
[[Helpshift sharedInstance] showSupport:self withOptions:@{@"showConvOnReportIssue":@"YES"}];