- Ensure
null
is not passed to consumer, i.e.result
,error
andstatus_code
, can beundefined
, but nevernull
.
- Instead of deleting callbacks from global object, set it to undefined to prevent concurrent native environments from mistakenly reusing callbacks.
- Instead of using closure state to manage callback names, determinate the next available callback name for the global object itself. This prevents unexpected reusing of callback names (e.g. when web page is reloaded but mobile is not aware).
- Add value type to
DataStream
.
- Expose
createDataStream
andcreateSubscription
.
- Get
getModuleEnvironment
to get a module's current mobile environment.
- Add type parameter to
CallbackResult
, so now it isCallbackResult<T>
.
- Add
module
toNativeParameters
so that native code can access the module name directly in the message payload.
First release of the SDK, with only one function that should be used:
wrapModule(window, 'LocationModule')
This call will inject an object called WrappedLocationModule
into the global window
object.