-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Labels
newNew issue request attentionNew issue request attention
Description
Describe the bug
Deep link query parameters are not captured and passed to the route
Environment
flutter_modular: ^6.3.4
To Reproduce
// MODULE
class SplashModule extends Module {
@override
List<Module> get imports => [CoreModule()];
@override
void routes(r) {
r.child('/', child: (_) => SplashPage(params: r.args.data));
}
}
// PAGE
class SplashPage extends StatefulWidget {
final dynamic params;
const SplashPage({super.key, this.params});
@override
SplashPageState createState() => SplashPageState();
}
//Try to trigger a deep link with adb command
adb shell am start -W -a android.intent.action.VIEW -d "https://my-site.com/splash?data=%7B%22token%22%3A%228ee8d67be744e11274dcc488bab2b15a8c93398b909a7ccadcf2dba7aa4b7c55%22%2C%22email%22%3A%20%22user%40email.com%22%7D" com.myapp
The correct Splash page will open, but the r.args.data is empty.
Expected behavior
The correct Splash page will open, and the r.args.data must be filled with the deep link query parameters.
Screenshots
If applicable, add screenshots or videos to help explain your problem.
Metadata
Metadata
Assignees
Labels
newNew issue request attentionNew issue request attention
