#ky_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1396948151377596710
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello thanks for the info, is any error raised when you make the call with the OBO param? Or does it just seem to hang and not return?
Hi Pompey
let me past the log
(NOBRIDGE) LOG [Stripe terminal]: didChangeConnectionStatus connecting
(NOBRIDGE) LOG [Stripe terminal]: didChangeOfflineStatus {"reader": undefined, "sdk": {"networkStatus": "online", "offlinePaymentAmountsByCurrency": {}, "offlinePaymentsCount": 0}}
(NOBRIDGE) LOG [Stripe terminal]: didChangeConnectionStatus notConnected
Interesting, thank you for those log lines. Also, is this you building this functionality for the first time or was your POS previously able to connect to these terminals while specifying OBO and this broke recently?
i am currently building that functionality, we werent using the OBO, but since with OBO it shows the terms and condition modal we need that implementation
so without OBO param, it works with any org
Not finding much on this error but I am still looking. One quick thing, that code looks to be calling a wrapper function, can you send the code for that wrapper function here? I am guessing it just passes the params you specify directly to our connectReader method but it could be helpful to double check
connectReader: stripeConnectReader
Ah gotcha so it is just an alias of our method more or less
yes
Still looking into this, I haven't found anything documented saying you should have coded this differently and I'm not seeing open issues on our github repo for this SDK. Trying to reproduce myself as well
ok, thank you
Running in to problems with my RN setup but am still working on this. Out of curiosity, have you tried this app on Android and does it see the same behvior?
hmm no, we are focused on iOS first
I'm still having being able to run my test app on a physical device but this same code works for me in the iOS simulator. Trying to think of things to check here. What version of the RN SDK are you using?
Yep yep, that is the latest one. And have you seen this on the simulator, physical devices, or both?
Also apologies this is running long, we can move this to a ticket if you need to step out and I can followup with whether I've been abel to reproduce on a physical device. If I can, it should be pretty straightfoward to escalate to the eng team. If I can't reproduce I'm trying to think of how best to debug this after
physical device only
no problem
we are trying to figure this out for days already
I will try on a simulator as well
One other thing that could be helpful: can you try hard-coding a connected account's ID to the on_behalf_of parameter when calling the connect method? That can rule out this being an issue with the session hook that is being used to get that info. I doubt that that is the issue as it looks like you are printing out the ID right before trying to connect, but it can always help to rule things out
Yep should be able to, looks like the account is connected correctly to the platform that owns that location.
Interesting? With it being hard coded it is connecting properly on the physical device?
yes, but i put back my code. and it worked too
how come
xD
oh no wait
i added simulated true
thats why
yea, didnt work
sorry about that xD
My hopes were so high! I think at this point it may be best to move this to a case, I'm making a project that uses your hook and will try to reproduce this issue with a colleague that knows more about this SDK.
Hello @dim barn, we have sent you a direct message, please check it at https://discord.com/channels/@me/1396980799152193626
- ๐The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Can you let me know when you've filled out the above? I can grab the case it creates and get back to you from there
yes I will