In certain cases, some applications must make REST calls before the user becomes authenticated. In other cases, the application must access services outside of Salesforce that don’t require Salesforce authentication. To implement such requirements, use a special RestClient instance that doesn’t require an authentication token.
To obtain an unauthenticated RestClient on Android, use one of the following ClientManager factory methods:
1/**2* Method to create an unauthenticated RestClient asynchronously3* @param activityContext4* @param restClientCallback5*/6public void getUnauthenticatedRestClient(Activity activityContext, RestClientCallback restClientCallback);
1/**2* Method to create an unauthenticated RestClient.3* @return4*/5public RestClient peekUnauthenticatedRestClient();
A REST request sent through either of these RestClient objects requires a full path URL. Mobile SDK doesn’t prepend an instance URL to unauthenticated endpoints.