android - Quickblox: Fetching custom object based on field value with '+' character seems not to work? How to fix? -


i trying fetch custom objects based on field value including '+' character. more specifically, fetching contact custom object has email address field.

it works fine normal email addresses. however, have email addresses include '+' character , fetch fails.

how should use qbcustomobjects.getobjects api call request builder? hints & tips appreciated! in advance!

code:

qbcustomobjectrequestbuilder requestbuilder = new qbcustomobjectrequestbuilder(); requestbuilder.eq("emailaddress", “matti@iloapps.com"); // works // but: matti+test001@iloapps.com not work qbcustomobjects.getobjects("contact", requestbuilder, new qbcallbackimpl() {     @override     public void oncomplete(result result) {         // stuff here..     } }); 

i solved issue doing url encoding in order meet http post requirements special characters. thought have been done automatically qb library wasn't.. improvement add in next versions (like in ios library)?

solution:

string encodedemail = urlencoder.encode(email, "utf-8"); 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -