16
Tasperen
11d

Just spent 6-8 hours or so trying to get image uploading to work with sending messages with firebase. Finally completed it.

Disclaimer: this might not make the most sense as I am completely drained mentally.

The issue was that I wasn't calling the send message method inside the upload image method. Meaning the images would upload but before I would be able to get the Uri back from firebase to put in the hashmap for the messages, the message hashmap would already be sent.

It was a pain in the ass to do. But 5 windows and 40 tabs later, then some doc reading. Then a quick break to eat. And some more stressing about my code. I finally realized that I should have just called the send message inside the incomplete listener in the image upload.

TLDR;
"uploadImage(), sendMessage()"= no Uri; :(
"UploadImage() { sendMessage() } = Uri" :)

PS: Yes, this is me talking to myself on my other account

Comments
  • 1
    This looks neat, have you pushed this on git?
  • 1
    @Zlytherin Not yet I will have it up later today and a beta/alpha tester version in the app store
  • 1
    @Tasperen app Store??? Isn't that android??

    Well kindly share the link to git when done..
  • 1
    @Zlytherin the Play store* my bad. Will do
  • 2
    Nice! Though hopefully you’re not creating yet another chat app, I’ve personally had enough of those lol. Such a saturated market
  • 1
    @SauceBoss I have more plans for it so it's not going to be just a chat app. It's going to be feature packed later. This project is just a branch of a framework project that consist of other projects I will make in the future. They'll all connect together and have its own ecosystem. But yea after the messaging feature is complete, I'll work on the feed feature
  • 0
    @Tasperen Cool man! So what is the general idea about this app / web app? Is it a social media app, or something along those lines? Please excuse my ignorance lol
  • 0
    @SauceBoss I plan on taking the best parts of social media apps and messaging apps and put them all in one app. And no worries
  • 0
    @Tasperen I'm really really loving your UI!!!
  • 1
    @Zlytherin Thanks. That's actually great to hear. I take time designing and try to make it pleasing to look at
  • 0
    Simple and clean look
  • 1
    @Tasperen wow that is a nice UI! Good work man!

    Though do you have a light UI theme screenshot? I’m one of the weirdos who prefer light UIs over dark lol
  • 0
    @SauceBoss Not right now but I'm planning a Theme switcher
Your Job Suck?
Get a Better Job
Add Comment