pocket-casts-ios icon indicating copy to clipboard operation
pocket-casts-ios copied to clipboard

Apple SSO: Sonos

Open chipsnyder opened this issue 2 years ago • 1 comments

📘 Project: #381 🛬 Depends on #457

Note

📱 For the best testing experience you'll want to run this on a real device since the SIWA simulator implementation isn't fully accurate.

Syncs the user login token when preparing to connect to Sonos.

To test

Warning

I do not have access to a Sonos device so this testing trusts that handing off the token is a success.

Setup

  1. Enable the Feature Flag signInWithApple
  2. Set your scheme to Staging

Testing

You'll want to perform these tests with Username and Password, and Apple SSO as the flow changes touched each path.

  1. Login on the App
  2. Trigger the Sonos link by opening the app link pktc://applink/sonos/ (You can paste this into Safari to trigger the app link)
  3. Select Continue
  4. Look for the log message Sync Token refreshed source: Sonos to signify a non-empty sync token was returned.

Checklist

  • [x] I have considered if this change warrants user-facing release notes and have added them to CHANGELOG.md if necessary.
  • [x] I have considered adding unit tests for my changes.
  • [ ] I have updated (or requested that someone edit) the spreadsheet to reflect any new or changed analytics.

chipsnyder avatar Oct 18 '22 18:10 chipsnyder

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 21 '22 21:10 CLAassistant