This issue I'm facing happens on iOS real device o...
# multiplatform
k
This issue I'm facing happens on iOS real device only which using Navigation Compose library. I see a crash when trying to navigate with arguments that have html text as string data. Maybe I should not be doing that in first place, so happy to learn other options of sharing data with the new screen I'm trying to navigate to.
// alertsJsonList - is a list of ServiceAlert() and may have html content in message field.
navController.navigate(
route = ServiceAlertRoute(alertsJsonList = alertsJsonList),
navOptions = NavOptions.Builder().setLaunchSingleTop(singleTop = true)
.build(),
)
@Serializable
data class ServiceAlert(
val heading: String,
val message: String, // can have html content sometimes as String
val priority: ServiceAlertPriority, // this is Enum - tried to remove it and confirmed this is not the issue.
)
kotlin = "2.1.0"
navigationCompose = "2.8.0-alpha10"
kotlinxCoroutines = "1.9.0"
compose-multiplatform = "1.7.1"
kotlinxSerializationJson = "1.7.3"
ksp = "2.1.0-1.0.29"
If I try to navigate by using non html as string data, the navigation is fine. Appreciate any ideas