<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zoon on Medium]]></title>
        <description><![CDATA[Stories by Zoon on Medium]]></description>
        <link>https://medium.com/@zoonref?source=rss-ad274ff6001e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QRnaHS4mTdmtkYtsCsBaEg.png</url>
            <title>Stories by Zoon on Medium</title>
            <link>https://medium.com/@zoonref?source=rss-ad274ff6001e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:06:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zoonref/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[️ Decentralized App Store]]></title>
            <link>https://medium.com/@zoonref/%EF%B8%8Fdecentralized-app-store-32d68645a641?source=rss-ad274ff6001e------2</link>
            <guid isPermaLink="false">https://medium.com/p/32d68645a641</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[decentralization]]></category>
            <dc:creator><![CDATA[Zoon]]></dc:creator>
            <pubDate>Sun, 17 Sep 2023 10:49:47 GMT</pubDate>
            <atom:updated>2023-09-17T10:59:44.799Z</atom:updated>
            <content:encoded><![CDATA[<p>Cryptocurrencies and Blockchain are the hottest topics nowadays and there are a ton of new services with those technologies coming up every day trying to disrupt the traditional businesses. If we look at the core of what these techs trying to solve, all will point to the <strong>“centralization”</strong> problems and I would like to propose the idea to solve one.</p><h3>Problem</h3><p>As a mobile developer, the closest thing that is centralized and sometimes can cause the problem is the <strong>App Store</strong>. This problem can happen to our users as well as us as app publishers. Look at these examples.</p><h3>Redigit🌳 on Twitter: &quot;My phone has lost access to thousands of dollars of apps on @GooglePlay. I had just bought LOTR 4K and can&#39;t finish it. My @googledrive data is completely gone. I can&#39;t access my @YouTube channel. The worst of all is losing access to my @gmail address of over 15 years. / Twitter&quot;</h3><p>My phone has lost access to thousands of dollars of apps on @GooglePlay. I had just bought LOTR 4K and can&#39;t finish it. My @googledrive data is completely gone. I can&#39;t access my @YouTube channel. The worst of all is losing access to my @gmail address of over 15 years.</p><h3>DHH on Twitter: &quot;Wow. I&#39;m literally stunned. Apple just doubled down on their rejection of HEY&#39;s ability to provide bug fixes and new features, unless we submit to their outrageous demand of 15-30% of our revenue. Even worse: We&#39;re told that unless we comply, they&#39;ll REMOVE THE APP. / Twitter&quot;</h3><p>Wow. I&#39;m literally stunned. Apple just doubled down on their rejection of HEY&#39;s ability to provide bug fixes and new features, unless we submit to their outrageous demand of 15-30% of our revenue. Even worse: We&#39;re told that unless we comply, they&#39;ll REMOVE THE APP.</p><p>To summarize, these are the problems:</p><ul><li>You don’t own apps/games you bought, the store owner just says you do.</li><li>You can’t sell the app you made if the store owner says no.</li><li>Huge amount of fee/commission has to be paid to the store owner.</li></ul><h3>Solution</h3><p>My idea is to create a Decentralized App Store to replace Google Play Store, Steam, or any centralized software and game store using blockchain and its decentralized strength to let publisher and user interact directly through a smart contract. Here is how it works from <strong>user perspective</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*30NUqglLpHZykEsx.png" /></figure><ol><li>User pays for the app using stable coins such as USDT or USDC or any other ERC-20 token.</li><li>The contract then mints the NFT token to represent that you own the app as you purchased and give it back to the user.</li><li>User also receives the app-specific governance token for later use such as voting or reviewing.</li><li>User then login to the purchased app with the wallet containing the NFT token.</li></ol><p>Let’s look at how the idea works from <strong>publisher perspective</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KCv14yQojRuqrpkN.png" /></figure><blockquote><em>APP token is utility token of this Decentralized App Store</em></blockquote><ol><li>To publish, the publisher needs to find some amount of APP tokens via the exchange to pay a fee and to prevent anyone to spam the store.</li><li>The contract of the new app will be deployed for the user to purchase and mint the app NFT. For instance, this app is called “APE”.</li><li>The publisher has an option to stake more APP tokens into the pool with APE governance token as an extra reward for the user and to promote the app.</li></ol><p>If you want your app to be on top of the list, put more APP tokens. Once users flock in to purchase your app, your reward will be drained out and hence back to the same as other apps. Repeat when you want your app to be on top again. Anyone can also put APP tokens in the pool to help out the publisher and get back more app’s gov tokens to vote in some app important decisions. I call this mechanism <strong>“Automated Advertisement Maker”</strong> :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tSaLb-VYrhn1mHa1.png" /><figcaption><em>Higher the reward = Higher the visibility and download.</em></figcaption></figure><p>So how does the user claim the reward? Let’s think about what does the publisher wants from the users after their purchase. It is the feedback. Feedback or review is an important aspect of any app store to let developers know how to improve their products and let other users know before they decide to purchase. With this reward mechanism, we can encourage the users to give feedback and get the reward in return (which can be sold at the exchange to get the real money back).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x_Xw1hqoahYEvvWK.png" /></figure><ol><li>The user can give a review together with any amount of the app’s governance token.</li><li>The contract then swaps the app’s governance token to the APP token as a reward.</li><li>Rating and feedback are recorded on the blockchain.</li></ol><h3>Conclusion</h3><p>The idea is still far from perfect and there are still a lot of aspects that I have not thought about but I believe that this can be the future of how we distribute our piece of software. Let me know if you like this idea.</p><p><em>Originally published at </em><a href="https://zoonref.com/blog/das"><em>https://zoonref.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32d68645a641" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playing with Estimote Beacon]]></title>
            <link>https://medium.com/@zoonref/playing-with-estimote-beacon-f62f7625f243?source=rss-ad274ff6001e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f62f7625f243</guid>
            <dc:creator><![CDATA[Zoon]]></dc:creator>
            <pubDate>Fri, 15 Aug 2014 07:52:52 GMT</pubDate>
            <atom:updated>2014-08-15T07:53:51.723Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>How to use Estimote SDK to detect beacon devices</em></strong></h4><p>I just got a new project which is using <a href="http://estimote.com/">Estimote</a>. I cannot write about the purpose of this app but I will write about what it is and example to use it.</p><h3><strong>What is Estimote Beacon ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*SJ7QKudoZ1ecgZSpcp-8Iw.png" /></figure><blockquote>An Estimote Beacon is a small, wireless device, sometimes also called a ‘mote’. When placed in a physical space, it broadcasts tiny radio signals to smart devices. — from estimote website</blockquote><p>So basically it is a small device that broadcasts a radio signal. But what is that signal and how does it work ?</p><p>Estimote Beacon broadcasts signal using <a href="http://en.wikipedia.org/wiki/Bluetooth_low_energy">Bluetooth LE</a> and <a href="https://developer.apple.com/ibeacon/">iBeacon</a> standard which is implement using Bluetooth’s Proximity sensing specification. You can think of it as a someone who keeps shouting <em>“Hey, I am here. My name is …”</em> every second.</p><p>Estimote Beacon broadcasts signal with the following significant data:</p><pre>Proximity UUID: B9407F30-F5F8–466E-AFF9–25556B57FE6D<br>Major: 1234<br>Minor: 5678</pre><ul><li><strong><em>Proximity UDID</em></strong><em> : Unique identifier of the beacon. As default, the value will be the same for all devices that comes from Estimotes but you can change it later.</em></li><li><strong><em>Major</em></strong><em> : Most significant value of beacon. You can use it as group number.</em></li><li><strong><em>Minor</em></strong><em> : Least significant value of beacon. You can use it as member number in group.</em></li></ul><h3>Development</h3><p>The main concept of this app is to notify the user when the phone is close to any of Estimote devices and the notification must include the information that can indicate which device user is close to. For example, if the phone is close to area A, the phone will get the notification like <em>“You just got into area A, Do you want to make a landmark ?”</em>.</p><p>Let’s start coding.</p><p><strong>Setup</strong></p><p>We need to install <a href="https://github.com/Estimote/iOS-SDK">Estimote SDK</a> to our project. You can see the instruction from <a href="https://github.com/Estimote/iOS-SDK#installation">here</a>.</p><p><strong>Permission in iOS8</strong></p><p>After you have created project and setup, the first thing you need to do if you are going to support iOS8 is request permission to use location service due to policy changed. Add the following code to anywhere depends on when you want user to see alert dialog but need to call it before using any Estimote function.</p><pre>if ([self.locationManager respondsToSelector:@selector(requestAlwaysAuthorization)]) {<br>    [self.locationManager requestAlwaysAuthorization];<br>}</pre><p>The reason why I used <em>responseToSelector</em> function is because <em>requestAlwaysAuthorization</em> is not available prior to iOS8. We need to check it first before calling it.</p><p>Then you have to add key <em>NSLocationAlwaysUsageDescription</em> in the <strong>info.plist</strong> file with the text value which user will see when alert dialog pop up.</p><p>Do not forget to create <em>locationManager</em> as a instance property otherwise, the alert box will disappear before you can take any action, because the <em>locationManager</em> object get released at the end of the function.</p><p><strong>Area Definition</strong></p><p>Next we are going to create <em>Area</em> class to hold our beacon informations.</p><pre>@interface Area : NSObject</pre><pre>@property (nonatomic, strong) NSNumber *id;<br>@property (nonatomic, copy) NSString *name;<br>@property (nonatomic, copy) NSString *estimoteMajor;<br>@property (nonatomic, copy) NSString *estimoteMinor;</pre><pre>@end</pre><ul><li><strong><em>id</em></strong><em> : The ID of the area, we will use it for reference later.</em></li><li><strong><em>name</em></strong><em> : Name of Area.</em></li><li><strong><em>estimoteMajor </em></strong><em>and</em><strong><em> estimoteMinor</em></strong><em> : The values that can indicate which device associate with this area.</em></li></ul><p>Next step is to create list of areas in <em>viewDidLoad</em> of the root ViewController. For example, we have 3 areas to notify.</p><pre>Area *areaA = [Area new];<br>areaA.id = @1;<br>areaA.name = @&quot;Area A&quot;;<br>areaA.estimoteMajor = @&quot;18407&quot;; // your estimote major value<br>areaA.estimoteMinor = @&quot;25511&quot;; // your estimote minor value</pre><pre>Area *areaB = [Area new];<br>areaB.id = @2;<br>areaB.name = @&quot;Area B&quot;;<br>areaB.estimoteMajor = @&quot;9680&quot;;<br>areaB.estimoteMinor = @&quot;30624&quot;;</pre><pre>Area *areaC = [Area new];<br>areaC.id = @3;<br>areaC.name = @&quot;Area C&quot;;<br>areaC.estimoteMajor = @&quot;21137&quot;;<br>areaC.estimoteMinor = @&quot;19658&quot;;<br>self.areas = @[areaA,areaB,areaC];</pre><p><strong>Start Monitoring</strong></p><p>We will use class <em>ESTBeaconManager</em> to manage all of our Estimote Beacon tasks and use class <em>ESTBeaconRegion</em> to define which region we want to monitor. Put the following code in <em>viewDidLoad</em>.</p><pre>self.beaconManager = [[ESTBeaconManager alloc] init];<br>self.beaconManager.delegate = self;</pre><pre>self.beaconRegion = [[ESTBeaconRegion alloc] initWithProximityUUID:ESTIMOTE_PROXIMITY_UUID identifier:@”Anything”];<br>[self.beaconManager startMonitoringForRegion:self.beaconRegion];</pre><p><strong><em>ESTIMOTE_PROXIMITY_UUID</em></strong><em> is a fixed UDID for all Estimote Beacon device. If you happen to change it, you have to change this value to match with yours.</em></p><p>Then implement <em>ESTBeaconManager</em> delegate:</p><pre>#pragma mark — ESTBeaconManager delegate</pre><pre>- (void)beaconManager:(ESTBeaconManager *)manager didEnterRegion:(ESTBeaconRegion *)region<br>{<br>    // phone enter to area<br>    UILocalNotification *notification = [UILocalNotification new];<br>    notification.alertBody = @&quot;Enter region notification&quot;;<br>    [[UIApplication sharedApplication] presentLocalNotificationNow:notification];<br>}</pre><pre>- (void)beaconManager:(ESTBeaconManager *)manager didExitRegion:(ESTBeaconRegion *)region<br>{<br>    // phone exit from area<br>    UILocalNotification *notification = [UILocalNotification new];<br>    notification.alertBody = @”Exit region notification”;<br>    [[UIApplication sharedApplication] presentLocalNotificationNow:notification];<br>}</pre><p>Method <em>startMonitoringForRegion:</em> is working even the app is in background state but not when you kill the app.</p><p>Now we will get notification when the phone is close to one of those 3 areas and also when exit the area <strong>(please note that the exit delegate will get called after 30 second)</strong>. But wait, How can we know that we got into which area, A, B or C. The solution is we have to use another method that is <em>startRangingBeaconsInRegion:</em> but we will get new problem, this method does not support in background mode.</p><p>The solution is we will use <em>startMonitoringForRegion:</em> first and after <em>beaconManager:didEnterRegion:</em> get called, we have 5 seconds that iOS allow the app to execute code in background. With that 5 seconds we will use <em>startRangingBeaconsInRegion:</em> to get which beacon device we are close to.</p><p>The delegate code will be like this:</p><pre>#pragma mark — ESTBeaconManager delegate</pre><pre>- (void)beaconManager:(ESTBeaconManager *)manager didEnterRegion:(ESTBeaconRegion *)region<br>{<br>    [self.beaconManager startRangingBeaconsInRegion:self.beaconRegion];<br>}</pre><pre>- (void)beaconManager:(ESTBeaconManager *)manager didRangeBeacons:(NSArray *)beacons inRegion☹ESTBeaconRegion *)region<br>{<br>    ESTBeacon *beacon = (ESTBeacon *)beacons.firstObject;<br>    Area *detectedArea = nil;<br>    for (Area *area in self.areas) {<br>        if (beacon.major.intValue == area.estimoteMajor.intValue &amp;&amp; beacon.minor.intValue == area.estimoteMinor.intValue) {<br>            detectedArea = area;<br>            break;<br>        }<br>    }<br> <br>    if (detectedArea) {<br>        UILocalNotification *notification = [UILocalNotification new];<br>        notification.alertBody = [NSString stringWithFormat:@”You just enter %@. Do you want to make a landmark ?”,detectedArea.name];<br> <br>        [[UIApplication sharedApplication] presentLocalNotificationNow:notification];<br>        [self.beaconManager stopRangingBeaconsInRegion:self.beaconRegion];<br>    }<br>}</pre><p>Now when the app is in the background or the phone is locked, we will get notification with the area name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*cXyOvoOl1jl-3OCtqM43iw.jpeg" /></figure><h3>Conclusion</h3><p>With Estimote Device and iBeacon, we can use it to empower ideas based on indoor location or proximity such as Retail Shop that will notify user about the promotion when you are close to the product or <a href="https://github.com/panicinc/PunchClock">Check-in app</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f62f7625f243" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>