Live from the Sun

23 Responses

  1. Jakob Henner Jakob Henner

    Sun now sports a dynamic icon, reflecting the current weather.

    Try Sun on pattern.dk/sun from your iOS device.

    about 1 year ago

  2. lukechesser lukechesser

    Incredible work. Would love to see a blog post on the method for updating the icon. I haven't seen anyone do anything like this before.

    likes

    about 1 year ago

  3. Fritz Frizzante Fritz Frizzante

    pretty dope, mate!

    about 1 year ago

  4. The White Studio The White Studio

    Incredible. Another reason why web apps ROCK

    about 1 year ago

  5. Charles Carver Charles Carver

    Can you share how you dynamically change the icon?

    likes

    about 1 year ago

  6. Roman Lapaev Roman Lapaev

    so good

    about 1 year ago

  7. Martijn Otter Martijn Otter

    That icon looks so cool! Great colors!

    about 1 year ago

  8. Jarne Uytersprot Jarne Uytersprot

    Didn't know this was possible (dynamic icon). Awesome!

    about 1 year ago

  9. Simen Myklebust Simen Myklebust

    Wow, this beats all weather apps! The new dynamic icon is awesome! *added to iphone front page*

    likes

    about 1 year ago

  10. Simen Myklebust Simen Myklebust

    Thumbs up for using data from yr.no

    about 1 year ago

  11. serhat ozirik serhat ozirik

    Super!

    about 1 year ago

  12. Laurent Sutterlity Laurent Sutterlity

    Pretty nice app :)

    about 1 year ago

  13. Samuel Fine Samuel Fine

    Technically, a dynamic icon isn't possible! I'd guess @Jakob Henner is manipulating the fact that iOS uses a screenshot of the app for the homescreen icon if there isn't one explicitly set. Am I close? :)

    By the way, I've been using this app for a while. Big fan, great work!

    (I can't get the new version to show up on my iPad, only my iPhone. Is that a bug, or is only the iPhone version updated?)

    about 1 year ago

  14. Taulant Sulko Taulant Sulko

    Is it possible to improve the opening time of the app?

    Design-wise is an awesome work!

    about 1 year ago

  15. Martin Kool Martin Kool

    That is bloody sweet! Very clever!

    about 1 year ago

  16. Samuel Fine Samuel Fine

    Never mind! iPad is working now. :)

    about 1 year ago

  17. Bruno Lazzaro Bruno Lazzaro

    The Dynamic icon is pretty easy, they just render the icon using canvas and set the resulting image (using .toDataURL) into the head via a link. Something like:

    $('head').append('<link id="icon" rel="apple-touch-icon-precomposed" href="icon-' + variant + '.png" />');

    Would do the trick.

    likes

    about 1 year ago

  18. Samuel Fine Samuel Fine

    Not so fast, @Bruno Lazzaro! Once you save an app to your homescreen, Apple caches the icon. It doesn't update with every app load. You'd need to delete the app and re-add it to the homescreen to get the updated icon.

    likes

    about 1 year ago

  19. Jakob Henner Jakob Henner

    @Samuel Fine,

    Actually, @Bruno Lazzaro is right. You can set the icon within one second of app launch. After a second, you have to use some kind of server scripting.

    likes

    about 1 year ago

  20. Samuel Fine Samuel Fine

    What! Mind: blown. Is there any documentation about this? I've never seen anyone talk about it being possible, and I've never been able to make it work in my own testing.

    about 1 year ago

  21. Paul Kelley Paul Kelley

    @Samuel Fine While "technically" it is dynamic, it isn't dynamic in the way it needs to be. Meaning it doesn't display up-to-date information without opening the app first to refresh the icon.

    likes

    about 1 year ago

  22. Rudy Chidiac Rudy Chidiac

    Really awesome work.

    about 1 year ago

  23. Chris Allen Chris Allen

    Sun is the best web app I've ever come across. Simply stunning work. Did you code this yourself?

    about 1 year ago

keyboard shortcuts: previous shot next shot L or F like