When passing invalid data to updateUserProperties the error is currently swallowed so there is no way to know about it. This makes the method return a promise so we can return errors to JS.
This also does some minor cleanups in FBAppEventsLoggerModule.java
Test Plan:
Call updateUserProperties with a null value and check that an error is returned.
When passing invalid data to
updateUserProperties
the error is currently swallowed so there is no way to know about it. This makes the method return a promise so we can return errors to JS.This also does some minor cleanups in FBAppEventsLoggerModule.java
Test Plan:
Call
updateUserProperties
with a null value and check that an error is returned.