I am trying to pass this custom list object to the broadcast receiver.
For that i am passing it like this:
Inside activity:
intent.putParcelableArrayListExtra(PARCEL_LIST_GEO, parcelItems.toArrayList())
Inside broadcastReceiver:
val parcelList = intent.getParcelableArrayListExtra<ParcelItem>(PARCEL_LIST_GEO)
My problem is that when i try to receive it, it returns null.
When i use JSON on the list on the other hand, everything works, so string works. I am kinda suspecting something going wrong in the parcelable-part, but when i tested parcelable from activity to activity everything works. So the problem is just from the activity to the broadcast receiver. Is there some size limit? Or anything different with passing the object to a broadcast receiver? i dont know what i am missing...