I am aware that it isn't possible to download and execute objective-c / swift code from server on device without getting rejected. However, is it possible to download let's say some javascript or some other language code and execute it on device?
I am building an app where I need to evaluate whether a user's String passes through validation through various operations.
For example user has a string ABC123
.
My list of operations (which will be dynamic, so I can add more operations from server side) can be:
- Is String.length == 6?
- Is String.substring (3,5) numeric?
- Is sum of digits at 4,5,6 positions == 6?
etc.
I was thinking of downloading some JavaScript code from my server which had the entire list of operations. Then passing the user string through this code for validation. However I am not sure how to do this.