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
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 ๐ฆ๐