Skip to content

Commit

Permalink
feat: add web registration from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cybex-dev committed Nov 27, 2023
1 parent 19e6401 commit 1669daf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ class _AppState extends State<App> {
});
}
} else {
// for web, we always show the initialisation screen
// for web, we always show the initialisation screen unless we specified an
if (widget.registrationMethod == RegistrationMethod.env) {
bool success = await _registerFromEnvironment();
if (success) {
setState(() {
twilioInit = true;
});
}
}
}

FirebaseAnalytics.instance.logEvent(name: "registration", parameters: {
Expand Down

0 comments on commit 1669daf

Please sign in to comment.