Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform error handling #59

Open
paintedbicycle opened this issue Mar 22, 2018 · 0 comments
Open

Platform error handling #59

paintedbicycle opened this issue Mar 22, 2018 · 0 comments

Comments

@paintedbicycle
Copy link
Contributor

Currently there are some methods that are only available on iOS. This might change, but there are certain things only one or the other platform can do. So, we should provide elegant error handling to both platforms that fail gracefully if a function called in the developers application JS does not exist in the other platform.

This means adding the method to both platforms so when it gets called, it does not fail. Then, inside that method, if the platform doesn't support it, do something that helps out the developer. Return a warning, or some sort of predictable return like false, null or undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant