SShortSingh.
Back to feed

Developer Builds Custom Geo-fencing Engine After Google API Proved Too Imprecise

0
·53 views

A developer building an app called Muffle — designed to automate phone sound profiles based on location and context — initially used Google's Geofencing API but abandoned it due to poor precision and unpredictable latency. The API failed to detect zone transitions accurately, sometimes delaying exit events until the user had moved several blocks away. To gain finer control, the developer switched to a custom engine built on Android's FusedLocationProviderClient, using the Haversine formula for distance calculations within a persistent Foreground Service. An adaptive polling system was implemented, reducing location update frequency when stationary and increasing it upon detected movement to conserve battery. The shift away from Google's high-level API introduced new challenges around Android's fragmented power management behavior across device manufacturers.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Uneven LangGraph.js Branches Cause a Join Node to Run Twice, and Super-Steps Explain Why

A LangGraph.js graph in which one branch takes more steps than another can run its shared join node, combine, twice. The LangGraph.js docs say a node runs once per super-step in which any incoming branch completes, so branches of different lengths produce separate runs. LangGraph.js executes nodes in discrete rounds called super-steps, and a node activates when it receives input on an incoming edge. A plain edge compiles to a trigger channel that wakes its target, so two edges into one node each wake it independently. Equal-length branches deliver their writes in the same round and the node runs once, while an uneven branch delivers in a later round and wakes the node again. The article includes a sample ESM TypeScript project using StateSchema and Zod that demonstrates the behavior without requiring an API key.

0
ProgrammingDEV Community ·

Cómo ocultar los Shorts de YouTube en iPhone sin dejar de usar YouTube

Un usuario que quiere ver videos normales de YouTube sin distraerse con los Shorts puede ocultarlos usando la app minulo, que abre la web oficial de YouTube. Las opciones de Tiempo de uso, el filtrado por DNS y los bloqueadores de URL no sirven porque no distinguen los Shorts del resto de YouTube, o no funcionan dentro de la app oficial en iOS. El artículo recomienda primero fijar el límite del feed de Shorts en cero, aunque es un recordatorio que puede descartarse. Con minulo, se pueden ocultar la sección y la pestaña de Shorts y abrir los enlaces de Shorts en el reproductor normal, manteniendo suscripciones, búsqueda y listas. El autor aclara que es el desarrollador de minulo y que su recomendación proviene de su propia aplicación.

0
ProgrammingDEV Community ·

Zoraxy deployments need route-level authentication, not just a hidden admin page

Zoraxy is a general-purpose HTTP reverse proxy with a web management interface and per-route access options. The article argues that security depends on whether every proxied hostname, alias and path passes through an intended authentication decision, rather than on how hard the admin page is to find. It notes that Zoraxy supports several authentication methods, plus a no-auth mode that is only safe in trusted environments or behind another authentication layer. Count-only ZoomEye probes from November 2026 are cited as weak discovery leads, not evidence of exposed panels. The piece recommends documenting each route, testing direct backend access, reviewing aliases and default routes, and separating the management UI from ordinary proxy traffic.

0
ProgrammingDEV Community ·

How a Finnish Student's 1991 Hobby Kernel Became the Backbone of Modern Computing

The Linux kernel, ranked #47 on a list of products that changed the world, now underpins nearly every Android smartphone and most of the world's top web servers and supercomputers. Linus Torvalds, a 21-year-old University of Helsinki student, began writing it in 1991 on a personal computer because he could not afford commercial UNIX and found the educational MINIX system's licensing restrictive. He first announced the project in August 1991 as a small hobby effort, and its initial version contained about 10,000 lines of code. Today the kernel exceeds 35 million lines, developed by tens of thousands of contributors from competing technology companies. Its success is attributed to open, early release practices and the GPL v2 license, which required modifications to be shared and encouraged rival firms to collaborate on a single shared kernel.