Different results for search query between iOS and android


#1

I am trying to get only the tweets from a single account to display. In iOS we have below:

 NSURLRequest *request = [client URLRequestWithMethod:@"GET" URL:@"https://api.twitter.com/1.1/search/tweets.json" parameters:@{@"q":@"from:ItCanWait",@"result_type":@"recent"} error:&error];
  

 NSURLRequest *request = [client URLRequestWithMethod:@"GET" URL:@"https://api.twitter.com/1.1/search/tweets.json" parameters:@{@"q":@"from:account",@"result_type":@"recent"} error:&error];
    
    [client sendTwitterRequest:request completion:^(NSURLResponse * _Nullable response, NSData * _Nullable data, NSError * _Nullable connectionError) {...}];

which returns results as expected…but in android we have:

  String encodedSearch = URLEncoder.encode("from:account", "UTF-8");
            TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();
            final Call<Search> tweets = twitterApiClient.getSearchService().tweets(encodedSearch,null,null,null,"recent", 15, null, null, null, true);
            tweets.enqueue(new Callback<Search>() {...});

but the android one does not return anything from the specific account. In fact there are tweets that show up which don’t even mention or show anything related to the account being searched