JuanSeBestia/react-native-wifi-reborn

iOS : Argument 4 (NSNumber) of WifiManager.connectToProtectedSSID is marked as nullable

anuragipankaj opened this issue ยท 4 comments

i'm facing this iOS issue in the latest version of react native wifi reborn package while calling the function :

WifiManager.connectToProtectedSSID

this is how I'm using it:

WifiManager.connectToProtectedSSID(ssid, API.pIDevicePassword, false)

I think this is an issue in Pod file content where it is asking a parameter to be marked as nullable. Please suggest and provide guidance on how to fix it.

Argument 4 (NSNumber) of WifiManager.connectToProtectedSSID is marked as nullable but React requires that all NSNumber arguments are explicitly marked as nonnull to ensure compatibility with Android.

RCTLogArgumentError(RCTModuleMethod*, unsigned long, objc_object*, char const*)
RCTModuleMethod.mm:67
-[RCTModuleMethod processMethodSignature]
-[RCTModuleMethod invokeWithBridge:module:arguments:]
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

I think duplicate of #379 and so I think this is a verified issue since v4.12.0, maybe since this change b5bdb35

edit: cc @alexma01

same here.
using v4.11.0 with no issues.

Can someone on this thread test the PR? #397

๐ŸŽ‰ This issue has been resolved in version 4.13.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€