Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mobile App
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
Mobile App
Commits
f336f4ec
Commit
f336f4ec
authored
5 years ago
by
Markin Igor
Browse files
Options
Downloads
Patches
Plain Diff
Parse error details for Android.
parent
454c4d5d
Branches
6-set-up-building-process
Branches containing commit
No related tags found
1 merge request
!2
Resolve "Rework auth flow."
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/src/app.dart
+8
-2
8 additions, 2 deletions
lib/src/app.dart
with
8 additions
and
2 deletions
lib/src/app.dart
+
8
−
2
View file @
f336f4ec
...
...
@@ -114,11 +114,17 @@ class _MainAppState extends State<MainApp> {
log
(
"Err
$error
"
);
String
errorMessage
=
error
.
message
;
String
errorDetails
=
error
.
details
;
String
errorDetails
=
""
;
try
{
errorDetails
=
json
.
decode
(
error
.
details
)[
"errorDescription"
];
}
catch
(
e
)
{
errorDetails
=
error
.
details
;
}
if
(
// Handle cancellation for Android
errorDetails
==
'
{"type":0,"code":1,"errorDescription":"
User cancelled flow
"}
'
||
errorDetails
==
'User cancelled flow'
||
// Handle cancellation for iOS
errorMessage
.
toLowerCase
()
.
contains
(
"the operation couldn"
)
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment