Skip to content

App crash on iOS 14 when trying to print #8

@TheDude70

Description

@TheDude70

When trying to connect and print our react native app crashes with the following error caught.

NSInternalInconsistencyExceptionfacebook::react::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>)
Invalid parameter not satisfying: characteristic != nil

Seems that characteristic != nil is not caught/handled correctly.

RNZebraBluetoothPrinter.connectDevice(this.state.zebra_printer.address)
    .then((result) => {
         if (!result) { 
            Alert.alert('Could not connect to printer. Please check printer connection.') 
        }
        RNZebraBluetoothPrinter.print(zpl)
            .then((result) => { 
                if (!result) { 
                    Alert.alert('Printing failed. Please check printer connection.') 
                } 
            })
            .catch(e => console.log(e.message))
     }) 
     .catch(e => console.log(e))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions