Skip to content

Stop launching the WordPress app when Jetpack enables notifications - #25879

Open
crazytonyli wants to merge 2 commits into
trunkfrom
cmm-2224-remove-notification-migration-bounce
Open

Stop launching the WordPress app when Jetpack enables notifications#25879
crazytonyli wants to merge 2 commits into
trunkfrom
cmm-2224-remove-notification-migration-bounce

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Note

The first commit is swift-format only. The actual change is in the second commit.

Description

Fixes https://linear.app/a8c/issue/CMM-2224

To reproduce the issue: With the WordPress app installed, install Jetpack, sign in, tap "Enable Notifications", and allow the system permission prompt. Jetpack opens the WordPress app (on its signed-out prologue) and bounces back, without the user asking for any of it. This only happens once per Jetpack install, which is why the original report couldn't reproduce it twice.

The bounce is JetpackNotificationMigrationService opening wordpressnotificationmigration:// so the WordPress app can disable its own notifications, a Jetpack Focus era mechanism to prevent duplicate notifications. It no longer serves a purpose: since the Jetpack features removal, the WordPress app unregisters from notifications on every launch (PushNotificationsManager.setupRemoteNotifications), and a signed-out WordPress app never registers a device token at all.

This PR removes the Jetpack-side trigger, plus the migration screen copy that promised the removed behavior ("We'll disable notifications for the WordPress app."). The WordPress-side URL handler is kept, so older Jetpack versions that still open the scheme get redirected back to Jetpack instead of stranding the user in WordPress. One accepted caveat: a WordPress install that hasn't launched since the features removal keeps its notification registration until it next launches; there is no way to clean that up from Jetpack without the app switch.

When the user allowed notifications in the Jetpack app with the WordPress
app installed, JetpackNotificationMigrationService opened
wordpressnotificationmigration:// to launch WordPress, disable its
notifications, and bounce back via jetpacknotificationmigration://. The
user saw Jetpack slide away to a (often signed-out) WordPress app and
return, without asking for any of it (CMM-2224).

The round trip no longer serves a purpose. The WordPress app disables its
own notifications on every launch since the Jetpack features removal
(PushNotificationsManager.setupRemoteNotifications unregisters when
shouldPresentNotifications is false), and a signed-out WordPress app never
registers a device token in the first place.

Remove the Jetpack-side trigger and the migration flow copy that promised
to disable WordPress notifications. Keep the WordPress-side URL handler so
older Jetpack versions that still open the scheme get redirected back to
Jetpack instead of stranding the user in WordPress.

Fixes CMM-2224
@crazytonyli crazytonyli added this to the 27.2 milestone Aug 7, 2026
@crazytonyli
crazytonyli requested a review from jkmassel August 7, 2026 10:09
@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number33652
VersionPR #25879
Bundle IDorg.wordpress.alpha
Commit4847e33
Installation URL5c0fhm13tbhag
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number33652
VersionPR #25879
Bundle IDcom.jetpack.alpha
Commit4847e33
Installation URL4m5345ci08ueg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@jkmassel jkmassel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM – can we drop the LSApplicationQueriesSchemes entry from Info.plist as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants