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] Support add website to home screen #20

Open
KevCui opened this issue Sep 19, 2020 · 20 comments
Open

[Feature Request] Support add website to home screen #20

KevCui opened this issue Sep 19, 2020 · 20 comments

Comments

@KevCui
Copy link

KevCui commented Sep 19, 2020

From browser app like Chrome / FF, it's possible to add a website to home screen like a shortcut. e.g: https://www.howtogeek.com/667938/how-to-add-a-website-to-your-android-home-screen/
It would be great that this kind of shortcut will show up in app search list.

@tanujnotes tanujnotes added the enhancement New feature or request label Sep 20, 2020
@tanujnotes
Copy link
Owner

I'll see what I can do.

@tanujnotes tanujnotes added send PR Pull requests highly appreciated and removed enhancement New feature or request labels Aug 11, 2021
@Minkiu
Copy link

Minkiu commented Sep 2, 2021

Hey,

so in case anyone that knows Android development (I don't) ends up here, I did a bit of digging and I think what is missing is some sort of database to handle Shortcuts, on top of declaring in the AndroidManifest.xml:

    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
    <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />

I mention the database since that seems to be how other foss launcher handle it, for example:
https://github.com/SubhamTyagi/Last-Launcher/blob/9e1f5355b457d37e4d8218e3d00a93d704367d4d/app/src/main/java/io/github/subhamtyagi/lastlauncher/utils/ShortcutUtils.java

Also by reading ShortcutManager#requestPinShortcut docs, it seems that when an app, such as firefox, attempts to "install" something the "The default launcher will receive this request" so I guess there must be a way to "listen" to these? Not sure if adding those lines in the manifest is enough for firefox to know it can install things?

Sorry for bothering whoever is subscribed to this, hope that this helps to someone.

@D-ominik
Copy link

It would be great if a solution could be found. The fact that you can't use Progressive Web Apps with Olauncher is a big drawback.

@fmatheus
Copy link

It think would cover also other apps shortcuts, link direct to weather inside google app, or to a specific contact of messenger apps. Would be great!

@jlemonde
Copy link

I desperately need that feature too! Launching webapps is crucial!

@tanujnotes
Copy link
Owner

If it's not too complicated to add, I'll do my best to add this feature in the next update. I understand how important this feature is and should not have taken this long.

@louisabraham
Copy link

Hi, I'm willing to help. I never did android development but if you are willing to spend a bit of time to tutor me I'm pretty sure I could implement this @tanujnotes

@fmatheus
Copy link

I'm not a android dev, but I think the backend would be something like:
https://medium.com/android-news/nhandling-shortcuts-when-building-an-android-launcher-5908d0bb50d2
But the frontend would involve

  1. listing the shortcuts together with the apps names
  2. list shortcuts when holding press over a app name
    What do you think?

tanujnotes pushed a commit that referenced this issue Jul 24, 2022
@D-ominik
Copy link

D-ominik commented Aug 8, 2022

Sorry to open this again. Does the merge mean that this function is now added?

How is it used? In the browser, the "Add to home screen" menu item is not available (Chrome and Kiwi). It basically appears when I define another launcher as default and there the PWA is added to the homescreen.

Anyway, thank you for your efforts!

@Docnight
Copy link

I just installed OLauncher and this feature is desperately missing!

@Minimalistischer
Copy link

OLauncher is the best.
I'm also waiting for PWA support,
but until then I'll help myself with Elway's WebApp.
https://play.google.com/store/apps/details?id=md.elway.webapp&hl=de&gl=US

@tanujnotes
Copy link
Owner

I just started working on this. At least a test version should be available soon.

@tanujnotes tanujnotes added WIP Work in progress and removed send PR Pull requests highly appreciated labels Mar 2, 2023
@2IkHLHB
Copy link

2IkHLHB commented Apr 22, 2023

This would be such a great feature. It's the only thing I miss from my phone's default launcher.

@tanujnotes
Copy link
Owner

I started working on it but it's more complicated than I expected, so it's on pause for now. Unlike showing the list of all installed apps, which is common for every launcher, PWAs are handled differently. If you add PWA on one launcher, it won't work with other launchers. And the fact that Olauncher does not have a regular home screen makes things even more complicated.
I'll get back to this in some time.

@tanujnotes tanujnotes removed the WIP Work in progress label Apr 22, 2023
@fmatheus
Copy link

fmatheus commented Apr 23, 2023 via email

@tanujnotes
Copy link
Owner

@fmatheus Yeah I have checked out other launchers and how they handle PWAs. Implementing it will require some time, which I don't have at the moment. I'll get back to this later.

@filipesmedeiros
Copy link

@tanujnotes would it help if this was sponsored by the community? If so, how much do you think the development of this feature could be worth? I'm using OLauncherCF (a fork) and I believe that if you implement it here, it can be migrated downstream easily.

Thanks for all the work on this amazing launcher! :)

@tanujnotes
Copy link
Owner

I'm planning to work on this in Q1, 2024. If anyone wants to support the development, a cup of coffee is all I need. :D

@filipesmedeiros

This comment was marked as off-topic.

@kylrth
Copy link

kylrth commented May 6, 2024

Hey I dropped you a bit of cash, any updates on this? :)

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

No branches or pull requests