Daily Development Update: hSnaps GIF Fix and Mobile YouTube Handling Improvements

Words
298
Reading
2 min
Listen
Play
4M


hSnaps App

GIF Animation Fix: Preserve Original Behavior

  • fix(feed): preserve GIF animation by bypassing proxy resize.
  • Identified issue:
    • GIFs were becoming static due to images.hive.blog proxy resizing.
    • Proxy was stripping animation frames during transformation.
  • Solution implemented:
    • Detect .gif images and skip resize processing in proxy.
    • Bypass proxy resizing logic for GIF files.
    • Ensure original animated GIFs are rendered correctly.
  • Applied fix globally via shared proxyImageUrl:
    • Feed
    • Lightbox
    • Markdown renderer
  • Trade-off:
    • Slightly larger payload size accepted to maintain correct animation behavior.

Animated GIF Working Correctly in Feed
Animated GIF Working Correctly in Feed


Mobile Fix: Open YouTube Externally on iOS and Android

  • fix(feed): open YouTube externally on iOS/Android.
  • Identified issue:
    • YouTube iframe embeds are unreliable inside Capacitor WebViews.
    • Failures caused by:
      • Referrer checks
      • Embed-domain restrictions
  • Solution implemented:
    • On native platforms:
      • Bypass in-app iframe popup
      • Open links using system browser via openLink
  • Platform behaviour:
    • iOS: Uses SFSafariViewController
    • Android: Opens in Chrome or YouTube app
    • Web: Keeps existing iframe popup with fallback option
  • No additional native configuration changes required:
    • Existing Capacitor media flags already correctly set.

Watch on Youtube - YouTube Opened in System Browser (iOS/Android)
YouTube Opened in System Browser (iOS/Android)

Web YouTube Popup Behaviour
Web YouTube Popup Behaviour


Powering the Hive Ecosystem

  • Continuously improving Hive applications with a focus on stability, performance, and scalability
  • Contributing to open-source development and building reusable solutions for the community
  • Working towards a stronger, more accessible, and feature-rich Hive ecosystem

Final Note

  • This post has been refined with the help of AI to improve readability and structure
  • The original content and optimised version are both available for reference

Applications Built by Us
hReplierhPollshStats
---------
hSnapshFestFactsKnow more about us
---------
Support and Contact
TransparencyVote as WitnessSupport via Discord

▶️ 3Speak

Daily Development Update: hSnaps GIF Fix and Mobile YouTube Handlin... | Ecency