As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
First post in Kinvey and hope this hasn't been answered before. I am working on my app now and figuring our the registration part. When the user fill the form (providing during the process a username and mobile), I want to check in the backend if the username is taken or not. I also want to check if the mobile number is taken or not (each mobile number should be mapped to one account only).
To accomplish the above, I did the following for username:
Now what I expect to happen is that the "if" condition of the mobile function will be triggered because there is actually a user with mobile number 011111102 registered already. What happens instead is that the else clause is executed and segue is executed. How come this is happening?
I would suggest writing a custom endpoint which accepts the mobile number to be searched as an input and then in the endpoint query the user collection for this mobile number and then return the appropriate JSON back. http://devcenter.kinvey.com/ios/guides/business-logic#types
I tried using the KCSUserAttributeEmail and it detected that the same email exists in database. But when I try with same syntax but change field to mobile I get an error. Here is the code I am trying now and the error too..:
2016-07-01 00:05:31.994 appName[6924:1860821] Kinvey Ping Success
All Input Validation Successful
2016-07-01 00:05:51.212 appName[6924:1860821] Got An error: Error Domain=KCSServerErrorDomain Code=400 "The query string in the request has an invalid syntax" UserInfo={NSLocalizedDescription=The query string in the request has an invalid syntax, NSErrorFailingURLKey=https://baas.kinvey.com/user/jfdkjfkdjfd/_lookup, Kinvey.kinveyErrorCode=InvalidQuerySyntax, KinveyKit.HTTPMethod=POST, Kinvey.RequestId=83948wjd9jd9j39jd39jd3, NSLocalizedFailureReason=not allowed to invoke _lookup on attribute mobile}
I would suggest writing a custom endpoint which accepts the mobile number to be searched as an input and then in the endpoint query the user collection for this mobile number and then return the appropriate JSON back. http://devcenter.kinvey.com/ios/guides/business-logic#types
khalid alghamdi
Hello,
First post in Kinvey and hope this hasn't been answered before. I am working on my app now and figuring our the registration part. When the user fill the form (providing during the process a username and mobile), I want to check in the backend if the username is taken or not. I also want to check if the mobile number is taken or not (each mobile number should be mapped to one account only).
To accomplish the above, I did the following for username:
Then for the mobile function embedded here, I did this:
Now what I expect to happen is that the "if" condition of the mobile function will be triggered because there is actually a user with mobile number 011111102 registered already. What happens instead is that the else clause is executed and segue is executed. How come this is happening?
Thanks in advance
As per the documentation, these are the only valid attribute keys supported.
http://devcenter.kinvey.com/ios/reference/api/Classes/KCSUserDiscovery.html
I would suggest writing a custom endpoint which accepts the mobile number to be searched as an input and then in the endpoint query the user collection for this mobile number and then return the appropriate JSON back.
http://devcenter.kinvey.com/ios/guides/business-logic#types
Thanks,
Pranav
Kinvey Support
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstPranav J
Khalid,
Does the lookupUsersForFieldsAndValues function work for you for any of the following keys:
and doesn’t work for the custom key that you have specified?
Here are links for more info:
http://devcenter.kinvey.com/ios/reference/api/Classes/KCSUserDiscovery.html
http://devcenter.kinvey.com/ios/reference/api/Classes/KCSUser.html
Thanks,
Pranav
Kinvey Support
1 person likes this
khalid alghamdi
I tried using the KCSUserAttributeEmail and it detected that the same email exists in database. But when I try with same syntax but change field to mobile I get an error. Here is the code I am trying now and the error too..:
And the error code I get is:
Still unable to fix this simple issue...
khalid alghamdi
Any update here? Still unable to fix...
Pranav J
As per the documentation, these are the only valid attribute keys supported.
http://devcenter.kinvey.com/ios/reference/api/Classes/KCSUserDiscovery.html
I would suggest writing a custom endpoint which accepts the mobile number to be searched as an input and then in the endpoint query the user collection for this mobile number and then return the appropriate JSON back.
http://devcenter.kinvey.com/ios/guides/business-logic#types
Thanks,
Pranav
Kinvey Support
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics