-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Front card template android-app:// links not working in Preview screen since 2.18.0 #16405
Comments
anki-bug-16405.mp4 |
Relevant: Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt Lines 2407 to 2462 in 5d81a57
|
Why hanping doesn't use standard Android deep links? We are not in 2016 anymore. You can tell your app to accept I don't see why such a scheme should be handled in AnkiDroid's end. |
There are still legacy APKs out there that rely on Also it's worth noting that the android-app scheme has not been deprecated. Should the scheme be handled in AnkiDroid's end? Yes, for the reason that it has done so historically and AnkiDroid has always been strong at supporting legacy decks. Side note: one main reason of using android-app scheme is the ability to target a specific app. Furthermore, the app has multiple flavors some of which would potentially share the same deep links. I know it's possible to work around all this, but things get messy quickly. Regardless, I hope the legacy factor mentioned above should be enough for this to be treated as a bug worth fixing. |
This is a regression and we'll handle it This wasn't a planned deprecation of functionality. We shouldn't break downstream decks (with the exception of necessary re-aligning with upstream Anki changes/functionality) @hanpingchinese I'm a little stretched for time, please follow up if you don't see a PR by Sunday |
Just one more point. If an app handles the |
I don't think that sticking to the past per se is a reason for keeping features. Otherwise, But, I still recommend deeplinks as a failproof measure instead of depending on AnkiDroid to avoid situations like this one. |
Leave it to me |
Checked for duplicates?
Does it also happen in the desktop version?
What are the steps to reproduce this bug?
Expected behaviour
See above.
Actual behaviour
See above.
Debug info
(Optional) Anything else you want to share?
So there is something broken about question template in preview mode only.
Example link href:
android-app://com.embermitre.hanping.app.pro#Intent;action=com.hanpingchinese.cmn.intent.action.PLAY;S.p={{text:Pinyin}};S.s={{text:Simplified}};S.t={{text:Traditional}};S.LANG=cmn;S._SOURCE=anki;end
Note: you can actually test this with the free app Hanping Lite (instead of Hanping Pro). Just need to change the template links from
.pro
to.lite
(i.e.android-app://com.embermitre.hanping.app.lite
)Research
The text was updated successfully, but these errors were encountered: