wordpress-mobile / wordpress-mobile/WordPress-Android

Magic Link: Can't sign up or log in after adding WordPress.com to Home Screen

Open
#8,622 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug Login Signup
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

I expect to be able to sign up and log in using a magic link.

Actual behavior

This problem occurs after adding WordPress.com to my device home screen. This is unrelated to the native app — it's added to the home screen by clicking the “Add to home screen” banner on WordPress.com in a web browser:

homescreenbanner

After that, when I click on a magic link on my phone, I'm directed to a browser window that shows the error "Can't connect to the site." (In the console, it shows a Navigation is blocked error for the magic link.)

If I'm trying to sign up, the account is created behind the scenes but I'm not logged in to the app.

Steps to reproduce the behavior
  1. Visit WordPress.com in a web browser on your device.
  2. On a Calypso screen (e.g. logged in, or on the login page) tap the "Add WordPress.com to Home screen" banner.
  3. Open the WordPress app.
  4. While logged out of the app, select Log In.
  5. Enter your email address.
  6. Select "Send link" to send a magic link.
  7. Select "Open mail" to open your mail app.
  8. Find the magic link email and select the magic link ("Sign in to WordPress.com").

Result: A browser window opens with the error "Can't connect to the site."

screenshot_20181116-180231

Tested on moto e5 play, Android 8.1, WP alpha-136 & Nexus 9, Android 7.1.1, WP alpha-136

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Android login flow from “Log In” through “Send link” and the magic-link handoff opened from the email. Reproduce the issue after adding WordPress.com to the home screen and inspect the reported “Navigation is blocked” error. Done means sign-up and login magic links complete successfully in that setup, including logging in after account creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
authentication, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.