Return NSError or Error from Javascript

Home / Uncategorized / Return NSError or Error from Javascript

I am working on an ios app which uses Firebase as database. The app can upload some data to firebase via cloud functions, but the data might not be valid, so there is a chance that the cloud functions will reject the request. The problem is that my app needs to receive an Error?, so that it can know if the request is rejected, and what causes the rejection. So, how can I return an Error?/NSError? type from javascript, or there is another way to do this.


Read more

Leave a Reply

Your email address will not be published. Required fields are marked *