Closed victis23 closed 3 years ago
I'm not 100% sure why you would want to change the [UInt8] array into a malloc
memory. I'm not particularly fond of using low level C methods to handle memory when there are perfectly working Swift methods available.
Furthermore I simplified and cleaned up the receive handler code a bit and tested it with iOS 14. So please take a look at the latest version and see if it creates any problems for you.
Removed Null pointer made required changes to codebase. This first portion could also just be simplified to
Line 166 must be changed to :
We actually took this approach in our project and it worked fine on iOS14.