Local Weekly Roundup - #17066
Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can trigger an installable build for these changes by visiting CircleCI here. |
…is in the foreground.
Gio2018
left a comment
There was a problem hiding this comment.
Hey @diegoreymendez this worked good: Notification looked correct, tapping takes to the stats of the right site, nextDate looks correct and the tracks show correctly in both the console and the live view. I just left a few code comments that might be worth considering.
| // 21-Oct-2017: We are only handling background URLSessions initiated by the share extension so there | ||
| // is no need to inspect the identifier beyond the simple check here. | ||
| if identifier.contains(WPAppGroupName) { | ||
| /* | ||
| let manager = ShareExtensionSessionManager(appGroup: WPAppGroupName, backgroundSessionIdentifier: identifier) | ||
| manager.backgroundSessionCompletionBlock = completionHandler | ||
| manager.startBackgroundSession() | ||
| manager.startBackgroundSession()*/ | ||
| } | ||
| } |
There was a problem hiding this comment.
This method does not seem to do anything anymore, can we just remove it?
There was a problem hiding this comment.
I actually had disabled this because I was having some trouble while testing, but it was unrelated. I've re-enabled this.
|
Oh also it looks like some new files are missing the Jetpack target membership, can you please fix that? |
Generated by 🚫 dangerJS |
|
@Gio2018 - Ready for another look. |
Implements the Weekly Roundup for iOS (with Local Notifications).
WPKit PR: wordpress-mobile/WordPressKit-iOS#438
Things to do in upcoming PRs:
To test:
Test how the notifications look like and how they react to taps:
Test that the trigger time is right:
BackgroundTasksCoordinator.swift:149.po nextDateand make sure it's next Monday at 10 am (device time).Test tracking:
In your console, filter the messaged by "Tracked:".
🔵 Tracked: notification_scheduled <notification_type: weekly_roundup, site_id: 105284648>
🔵 Tracked: notification_tapped <notification_type: weekly_roundup, site_id: 105284648 >
Make sure you also see these events in the live analytics tool.
Regression Notes
None.
PR submission checklist:
RELEASE-NOTES.txtif necessary.