I have this custom class which I made parcelable and used until now. I was able to put that class in an intent as an extra and use alarm manager to set when it should come back on my onReceive class. This worked for api level 23.
I have tried running my code on a phone that had Android 7.0(api level 24) and the extras of the intent would be null. I read that this is no longer possible in android api level 24+, and that apart from raw types no custom parcelable class can be added as an extra. My question is how do I get around these problems? I need a lot of the properties from the parcelable class to be transferred and adding different types of data one by one seems unreasonable to me.