Tutorial

Mock user movement to test your location feature

App developers want to thoroughly test the happy path and exceptions in the product experience before shipping to customers. Developers need a way to mock user movement to test their live location features before releasing the app. This involves mocking user location and movement that is as close to real world behavior as possible. Both Android OS & iOS provide APIs and tools to simulate such location data but these tools are insufficient. They provide a stream of locations (latlongs) but do not provide varying activity data, location confidence, and other sensor data that power the awesome features of HyperTrack.

Continue reading

Standard
Technology

Detecting mock locations on Android

Ever struggled with users mocking locations in your Android app? Mock location apps have gained popularity amongst app users on the back of Pokemon GO and an increasing number of location-aware apps. A large number of users have discovered the power of mock location apps in order to fake their locations and game the system. Ironically, mock location apps were created by developers as a tool to test location features. What started off as a solution for app developers has now become a widespread problem for them. We ended up creating a monster!

Continue reading

Standard
Technology

Scheduling tasks in Android made easy

Over the years, Android has introduced several scheduling APIs for jobs that need to be scheduled outside the scope of an application’s lifecycle. Most of these come along with features that improve battery life & optimise resource utilisation. The choice of one suitable API, the inflexibility of switching between them and the amount of boilerplate code required for setting up makes it difficult to use these APIs. On top of this, API changes with varying Android API versions and most of the APIs not being backward compatible makes scheduling a headache. Continue reading

Standard
Technology

Using Adapter Pattern for Viewing Multiple Tasks

In a previous post, we talked about our end customer tracking experience. HyperTrack’s Android and iOS Consumer SDKs enable developers to implement a smooth real-time location tracking experience in their consumer apps. Until now the SDKs were designed to view only one task at a time on the map. And then developers at echo plans requested a feature to view multiple tasks simultaneously on the same map view. echo plans is an app for groups of friends to plan meetups. Check out their blog post to learn more about echo plans and how they implemented location tracking with HyperTrack.

We redesigned the Consumer SDK to enable the feature for echo plans. In this post, we elaborate on the design pattern we followed. UI elements on the Consumer SDK – map markers, info layouts – can be customized to fit into the theme of the host app. Our goal was to make the new code design extensible and comprehensible, and thus make the Consumer SDK integration easy for the developers.

Continue reading

Standard