Changes related to deep linking email marketing#9957
Conversation
|
Just a friendly reminder to please make sure to manually merge |
|
This one is now ready for review: server side code has been deployed and marketing emails have been updated. |
malinajirka
left a comment
There was a problem hiding this comment.
Thanks @maxme, I've tested all the scenarios and reviewed the code and it works as expected.
It's a shame Uri is Android's class which can't be easily used in unit tests. It'd be great to have unit tests for this logic. I guess, we could create a wrapper, but I'm not sure it's worth it.
|
FWIW, looks like the changes in the manifest (https://github.com/wordpress-mobile/WordPress-Android/pull/9957/files#diff-5f7bbc0f00e829f6e38e74e2e89f5c43R375-R388) are breaking the |
|
@hypest I'm able to reproduce the problem with: I read the documentation again and I don't understand why this is not working, even though there is a side effect that I didn't anticipated (see the part about merging schemes and hosts in the doc: https://developer.android.com/training/app-links/deep-linking). |
|
Should have mentioned earlier, props to @renanferrari for noticing that the |
Fixes #9864
To test:
https://wordpress.com/post/https://public-api.wordpress.com/nope/https://public-api.wordpress.com/bar/?redirect_to=https%3A%2F%2FCHANGEME.wordpress.com%2Fposthttps://wordpress.com/post/wrong-hostnamehttps://wordpress.com/post/CHANGEME.wordpress.comhttps://public-api.wordpress.com/mbar/?redirect_to=https%3A%2F%2Fwordpress.com%2Fpost%2FCHANGEME.wordpress.comhttps://public-api.wordpress.com/mbar/?redirect_to=https%3A%2F%2Fwordpress.com%2FnopeNote: this is a draft PR because backend isn't updated yet and the deep linking urls might changes (mobile-api)This can be tested with ADB:
$ adb shell am start -a android.intent.action.VIEW \ -c android.intent.category.BROWSABLE \ -d "https://public-api.wordpress.com/mbar/?redirect_to=https%3A%2F%2Fwordpress.com%2Fpost%2FCHANGEME.wordpress.com"Real test:
Demo video of this ^
cc @diegoreymendez