This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Helpshift installForAppID:@"sandbox_platform_20120726120113072-89b012748d5aa10" | |
| domainName:@"sandbox.helpshift.com" | |
| apiKey:@"5a867e6b07466faa939285508de33a42"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken | |
| { | |
| [[Helpshift sharedInstance] registerDeviceToken:deviceToken]; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String action = intent.getAction(); | |
| if (action.equals(PushManager.ACTION_REGISTRATION_FINISHED)) { | |
| hs.setDeviceToken(UAirship.shared().getApplicationContext(),PushManager.shared().getAPID()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hs.getNotificationCount(countHandler, failHandler); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String action = intent.getAction(); | |
| if (action.equals(PushManager.ACTION_REGISTRATION_FINISHED)) { | |
| hs.setDeviceToken(UAirship.shared().getApplicationContext(), | |
| PushManager.shared().getAPID()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class GCMIntentReceiver extends BroadcastReceiver { | |
| @Override | |
| public void onReceive(Context context, Intent intent) { | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void) notificationCountAsyncReceived:(NSInteger)count { | |
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| [yourView setTextLabel:[NSString stringWithFormat:@"%d",count]; | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Helpshift metadataWithBlock:^(void){ | |
| return [NSDictionary dictionaryWithObjectsAndKeys: | |
| @"xyz", @"name", | |
| @"xyz@abc.com", @"email", | |
| gameObject.level, @"level", | |
| gameObject.score, @"score", | |
| nil]; | |
| }]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[Helpshift sharedInstance] showSupport:self withOptions:@{@"showConvOnReportIssue":@"YES"}]; |
OlderNewer