I've finished setting up the MobileMarketingSdk on Android to send PushNotifications, and after a few tries, I'm still not able to have the contact properly added to the contacts, while debugging I could notice that both SystemToken and PushToken are null, but I can retrieve the FirebaseToken with
val token = FirebaseInstanceId.getInstance().token
I've managed to fire the push notification with the script on the 5. of this link: http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/trouble-shooting/trouble-shooting-push-setup.html
using the token from firebase, but apparently something is wrong with the setup with salesforce, and I'm not sure how to proceed.
I also used the "Legacy server key", as the docs refer. Here is my sdkStatus, if it helps: https://gist.github.com/jrafaelm/0f924ecd67f5de2d39d96fd172d38fb9
Update: using this code to log everything from MC:
MarketingCloudSdk.setLogListener(MCLogListener.AndroidLogListener())
here is the log of the exception: https://gist.github.com/jrafaelm/ad8027acc207d6344a414594ba77d070