val caption = "FirstLine\nSecondLine"
navController.navigate("profile?caption=${Uri.encode(caption)}")
Ravi
02/04/2022, 4:58 PM
Copy code
java.lang.IllegalArgumentException: Navigation destination that matches request NavDeepLinkRequest{ uri=<android-app://androidx.navigation/profile?caption=FirstLine%0ASecondLine> } cannot be found in the navigation graph NavGraph(0x0) startDestination={Destination(0x78c6f587) route=Blue}
Ravi
02/04/2022, 4:59 PM
its crashing due to
\n
present in the string navarg but after encoding its converting