#milioli

1 messages · Page 1 of 1 (latest)

late flaxBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • milioli, 49 minutes ago, 7 messages
  • milioli, 12 hours ago, 5 messages
stoic sonnet
#

Let's chat here

indigo nymph
#

so.. I am triyng to use this:
const { discoverReaders, connectedReader ,discoveredReaders } = useStripeTerminal({
onUpdateDiscoveredReaders: (readers) => {
console.log(readers);

  },
  onDidChangeConnectionStatus: (status) => {
    console.log(status);
    
  }
});
#

try {

  await discoverReaders({
      discoveryMethod: 'localMobile',
    }
    );

  
} catch (error) {
  Alert.alert('Error', `${error.code}: ${error.message}`);
  console.log('Erro inesperado:', error);
 
}

};

#

But the app just crash and close

stoic sonnet
#

That's odd.
Are there any error messages/logs that you're seeing before/during the crash?

indigo nymph
#

nothing...

stoic sonnet
#

Are you usnig React Native SDK?

indigo nymph
#

"@stripe/stripe-terminal-react-native": "^0.0.1-beta.13",

stoic sonnet
#

Are you running the app on android or ios?

indigo nymph
#

ios

stoic sonnet
#

Are you seeing the same behavior on android?

indigo nymph
#

I am just using the ios

#

it seems that the docs are incorrect.
you can`t use this:

useEffect(() => {
const { error } = await discoverReaders({
discoveryMethod: 'localMobile',
});
}, [discoverReaders]);

#

as it is on the docs.

stoic sonnet
#

Let's take a step back

What readers are you working with?

#

What readers are you trying to integrate?

indigo nymph
#

I am trying to use Tap to pay

stoic sonnet
indigo nymph
#

Do I need the entitlement if I want to run it local In my simulator?

stoic sonnet
#

I believe so, yes

late flaxBOT
indigo nymph
#

Hm.... maybe that is why it is crashing. For security reasons?

stoic sonnet
#

Yup most likely

indigo nymph
#

Okay. Thanks