Skip to content
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

[Feature Request] Protocol for Importing Apps through Links #368

Closed
NaeemBolchhi opened this issue Mar 19, 2023 · 4 comments
Closed

[Feature Request] Protocol for Importing Apps through Links #368

NaeemBolchhi opened this issue Mar 19, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@NaeemBolchhi
Copy link

Can we have a protocol for Obtainium (like mailto: or magnet:) that will open a link directly in Obtainium and import the supplied JSON as a backup to be restored? I want to create an app gallery type website where users can select apps from my collection to dynamically create a backup json and import it in Obtainium in one click without needing to download it and place it somewhere in their internal storage first.

I think it's already possible for Android apps to overtake certain URLs and open them as the default app (like how YouTube takes over youtube links). So, could Obtainium catch special links like obtainium:{["JSON"]} and use the JSON as a backup file on the fly?

@ImranR98 ImranR98 added the enhancement New feature or request label Mar 19, 2023
@zachatrocity
Copy link

@ImranR98 are you open to contributors? I'd like to implement this capability. Mostly cause I want "get it on obtainum" links in my repo instead of dealing with fdroid:

image

Do you have any specifics for how you'd like this implemented? Would uni_links fit the bill?

@ImranR98
Copy link
Owner

Yes, any contributions are welcome. Not sure about that plugin though, it hasn't been updated in 2 years.

@zachatrocity
Copy link

https://pub.dev/packages/uni_links/score

If it ain't broke ya know?

@ImranR98 ImranR98 added the TODO Issue to focus on for the next release label Dec 16, 2023
ImranR98 pushed a commit that referenced this issue Dec 16, 2023
ImranR98 added a commit that referenced this issue Dec 16, 2023
- Custom link support (#368, #918)
- Export settings (#1157)
- Use public GitLab search API (#1147)
- Fix unauthorized error (#1153)
@ImranR98
Copy link
Owner

@zachatrocity sorry, missed your reply somehow.

This has been implemented in the latest release: https://github.com/ImranR98/Obtainium/releases/tag/v0.14.37-beta

Both these types of links should work:

  • obtainium://add/github.com/ashinch/readyou
  • obtainium://app/%7B%22id%22%3A%22me.ash.reader%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2FAshinch%2FReadYou%22%2C%22author%22%3A%22Ashinch%22%2C%22name%22%3A%22ReadYou%22%2C%22latestVersion%22%3A%220.9.8%22%2C%22apkUrls%22%3A%22%5B%5B%5C%22ReadYou-0.9.8-84156d2.apk%5C%22%2C%5C%22https%3A%2F%2Fapi.github.com%2Frepos%2FAshinch%2FReadYou%2Freleases%2Fassets%2F108404529%5C%22%5D%5D%22%2C%22preferredApkIndex%22%3A0%2C%22additionalSettings%22%3A%22%7B%5C%22includePrereleases%5C%22%3Afalse%2C%5C%22fallbackToOlderReleases%5C%22%3Atrue%2C%5C%22filterReleaseTitlesByRegEx%5C%22%3A%5C%22%5C%22%2C%5C%22filterReleaseNotesByRegEx%5C%22%3A%5C%22%5C%22%2C%5C%22verifyLatestTag%5C%22%3Afalse%2C%5C%22dontSortReleasesList%5C%22%3Afalse%2C%5C%22trackOnly%5C%22%3Afalse%2C%5C%22versionDetection%5C%22%3A%5C%22standardVersionDetection%5C%22%2C%5C%22apkFilterRegEx%5C%22%3A%5C%22%5C%22%2C%5C%22autoApkFilterByArch%5C%22%3Atrue%2C%5C%22appName%5C%22%3A%5C%22%5C%22%2C%5C%22exemptFromBackgroundUpdates%5C%22%3Afalse%2C%5C%22skipUpdateNotifications%5C%22%3Afalse%2C%5C%22about%5C%22%3A%5C%22%5C%22%7D%22%7D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants