Little Finger is a set of simple server/client libraries which lets you add a backdoor to your Android/iOS app easily, with a single line of code. The project is based on this anonymous Quora answer. Say, you are a freelancer and often you must have had faced really bad clients who vanish without paying the money promised. Now, using Little Finger you can crash the app remotely if the client vanishes. And when you do receive money, you can make the app work as expected.
The Little finger comes with a server component. The client library makes a call to this server and based on the response HTTP status code received it takes an action. If the money is received, it lets the work as expected and never makes another call to the server again. However, if money is not received then it crashes the app.
From the server, you can also send a local push notification, which app can display.
It takes only one line of code to start the Little Finger. Start it everytime in
AppDelegate(_:didFinishLaunchingWithOptions:) if Swift or
Mainactivity.onCreate if Android.
Following HTTP status codes are used:
HTTP_OK(200), then payment is expected to receive and Litte Finger lets the app work as usual. Little Finger will keep calling the server everytime it is started to know the status of the payment.
HTTP_ACCEPTED(202), then payment has been received. Little Finger updates the app’s preferences so that no future network calls are made again.
HTTP_CONFLICT(409), then no payment has been received and there is a conflict. When Little Finger receives 409, it crashes the app. The server also can notification data and Little Finger uses that to display a local notification before crashing. You can be creative and send a notification text saying “You have won $10 million dollars” or other such spammy messages to make the matter worse.
Little Finger is fully open source, so you are free to fork, modify these behaviours as per your taste.
Include Little Finger calling code in your app. If iOS:
Config Variables) accordingly.
The name Little Finger comes from GRRM’s A Song of Ice and Fire character Petyr Baelish.
The libraries and server are released under the mighty MIT license. Please check the
LICENSE file of respective repository for more details.