I got a notification of a deposit, but it wasn't fully confirmed. I was wondering if one must wait until it was fully confirmed before it would be withdrawn.
If it wasn't confirmed, why did the BTC appear in my wallet?
Couldn't it appear only after confirmation?
That is normal with wallets that display incoming Bitcoin transactions, even before they are confirmed. If you are concerned about the transaction and don't want to wait too long, you can initiate a Child Pays for Parent (CPFP) transaction from your end. What it does is allow you, as the recipient, to create a second transaction with a higher fee to encourage miners to confirm both transactions together. So, there is nothing unusual about seeing the BTC in your wallet before confirmation.
However, if it's an exchange and shows the bitcoin and you cannot withdraw it, it means it has one confirmation but the exchange have to wait for three confirmation because they will allow you withdraw your bitcoin.
I think It varies depending on the exchange.