Open software-programmer opened 5 years ago
It seems like firebase isn't being initialized. Bitflow uses firebase realtime database to communicate the state of what's going on on the blockchain - you can use some other method.
From that printscreen it seems like your unity application is failing to initialize firebase. So you might want to look into firebase unity sdk docs to figure out how to use firebase realtime database with unity: https://firebase.google.com/docs/unity/setup
If your target platform is webgl, firebases' unity sdk won't work and you'll need to integrate firebase in JS: https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html
On Thu, Jun 20, 2019 at 10:03 PM Matt Parker notifications@github.com wrote:
I wanted to have a look at the architecture of Bitflow to understand how you interact with the blockchain in order to change and track the state of something, but I'm having a an issue with the Unity wallet.
[image: image] https://user-images.githubusercontent.com/5966776/59881171-c2966080-93a6-11e9-8abd-014b15a06829.png
TBH, I've not used Unity before so might be something I'm missing.
I wanted to try and walk this through end to end. The web application appears to use WSS and this is working as expected AFAICT.
I'd really appreciate if you could spare 10 minutes to offer me some guidance.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shruggr/Bitflow/issues/1?email_source=notifications&email_token=AANRTYBFTITMXWX3RPDSUELP3PWAPA5CNFSM4HZ6NJPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2Z64LQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AANRTYFNNJWOXDKZVYI6MZTP3PWAPANCNFSM4HZ6NJPA .
OK. I assumed I'd be able to clone the repo and fire up the unity wallet without too many headaches
If you just want a unity walled you don't need Firebase.
I used NBitcon for the wallet, which is integrated under bitflow-unity/Assets/Libraries/ docs: https://github.com/MetacoSA/NBitcoin
UtxoUtils.cs helper class has a bunch of wrappers that help with the txn signing. BitIndexUtils.cs queries BitIndex to figure out the state of txns - this differs from NBitcoin docs where they use QBitNinja
What happens when you open the project in unity and try to run the Main scene? Make sure you switch the platform to Android under "File>Build Settings" Do you see any compiler errors in the unity Console prior to running the scene? I was using unity v2018.3.13f1 - but it should work on earlier versions
I wanted to have a look at the architecture of Bitflow to understand how you interact with the blockchain in order to change and track the state of something, but I'm having a an issue with the Unity wallet.
TBH, I've not used Unity before so might be something I'm missing.
I wanted to try and walk this through end to end. The web application appears to use WSS and this is working as expected AFAICT.
I'd really appreciate if you could spare 10 minutes to offer me some guidance.