public static void setPushNotificationIntegration(final int pushProvider, final String token) {
		dispatchConversationTask(new ConversationDispatchTask() {
			@Override
			protected boolean execute(Conversation conversation) {
				// Store the push stuff globally
				SharedPreferences prefs = ApptentiveInternal.getInstance().getGlobalSharedPrefs();
				prefs.edit().putInt(Constants.PREF_KEY_PUSH_PROVIDER, pushProvider)
						.putString(Constants.PREF_KEY_PUSH_TOKEN, token)
						.apply();

				// Also set it on the active Conversation, if there is one.
				conversation.setPushIntegration(pushProvider, token);
				return true;
			}
		}, "set push notification integration");
	}
public static void setPushNotificationIntegration ( final int pushProvider , final String token ) { dispatchConversationTask ( new ConversationDispatchTask ( ) { @ Override protected boolean execute ( Conversation conversation ) { SharedPreferences prefs = ApptentiveInternal . getInstance ( ) . getGlobalSharedPrefs ( ) ; prefs . edit ( ) . putInt ( Constants . PREF_KEY_PUSH_PROVIDER , pushProvider ) . putString ( Constants . PREF_KEY_PUSH_TOKEN , token ) . apply ( ) ; conversation . setPushIntegration ( pushProvider , token ) ; return true ; } } , "set push notification integration" ) ; }
Sends push provider information to our server to allow us to send pushes to this device when
you reply to your customers. Only one push provider is allowed to be active at a time, so you
should only call this method once. Please see our
<a href="http://www.apptentive.com/docs/android/integration/#push-notifications">integration guide</a> for
instructions.

@param pushProvider One of the following:
<ul>
<li>{@link #PUSH_PROVIDER_APPTENTIVE}</li>
<li>{@link #PUSH_PROVIDER_PARSE}</li>
<li>{@link #PUSH_PROVIDER_URBAN_AIRSHIP}</li>
<li>{@link #PUSH_PROVIDER_AMAZON_AWS_SNS}</li>
</ul>
@param token        The push provider token you receive from your push provider. The format is push provider specific.
<dl>
<dt>Apptentive</dt>
<dd>If you are using Apptentive to send pushes directly to GCM or FCM, pass in the GCM/FCM Registration ID, which you can
<a href="https://github.com/googlesamples/google-services/blob/73f8a4fcfc93da08a40b96df3537bb9b6ef1b0fa/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart/RegistrationIntentService.java#L51">access like this</a>.
</dd>
<dt>Parse</dt>
<dd>The Parse <a href="https://parse.com/docs/android/guide#push-notifications">deviceToken</a></dd>
<dt>Urban Airship</dt>
<dd>The Urban Airship Channel ID, which you can
<a href="https://github.com/urbanairship/android-samples/blob/8ad77e5e81a1b0507c6a2c45a5c30a1e2da851e9/PushSample/src/com/urbanairship/push/sample/IntentReceiver.java#L43">access like this</a>.
</dd>
<dt>Amazon AWS SNS</dt>
<dd>The GCM Registration ID, which you can <a href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html#registration-id-gcm">access like this</a>.</dd>
</dl>