<?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 Dmitriy Kovtun on Medium]]></title>
        <description><![CDATA[Stories by Dmitriy Kovtun on Medium]]></description>
        <link>https://medium.com/@edzh1?source=rss-5be69e7c47b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hUwZ4E21ZL_-qQsYVaalwA.png</url>
            <title>Stories by Dmitriy Kovtun on Medium</title>
            <link>https://medium.com/@edzh1?source=rss-5be69e7c47b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:18:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@edzh1/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[The story of a failed startup. Introduction]]></title>
            <link>https://medium.com/@edzh1/the-story-of-a-failed-startup-introduction-347098e2c987?source=rss-5be69e7c47b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/347098e2c987</guid>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[storyofmylife]]></category>
            <category><![CDATA[fail]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Dmitriy Kovtun]]></dc:creator>
            <pubDate>Thu, 10 Oct 2019 13:53:52 GMT</pubDate>
            <atom:updated>2019-10-10T13:58:38.223Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JtEnMKE_N-fqzw-GAUy8NA.png" /><figcaption>photo by Ian Kim (<a href="https://unsplash.com/@hewittluv">https://unsplash.com/@hewittluv</a>)</figcaption></figure><p>Hi people. Today I’m going to start my series about an ed-tech startup where I was working as co-founder/tech team leader in 2017–2018. And well, we have failed it.</p><p>Some themes what be covered (titles may change):</p><ul><li>Are you ready for a startup?</li><li>Your idea is great but maybe the market doesn’t need it</li><li>The team is crucial</li><li>What is an MVP and how to make it</li><li>Your MVP is trash and it’s ok</li><li>A few words about trust</li><li>Think slow, release fast</li><li>How to balance your life and work in a startup</li><li>and many more…</li></ul><h3>The story begins</h3><p>The hot summer of 2017. Phones rings:</p><ul><li>Hi. I’ve found a partner who can give us an ed-tech startup idea and money for a start. I think you could manage development. Can I count you in?</li></ul><p>That was a point of no return. I’ve been waiting for an opportunity like this for a while. After some negotiations, I agreed and quit my job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sfLHv51LOCyDjisHYPI43w.png" /><figcaption>photo by Clark Tibbs (<a href="https://unsplash.com/@clarktibbs">https://unsplash.com/@clarktibbs</a>)</figcaption></figure><p>I was a middle developer with leadership abilities and solid experience in outsourcing development. My co-founder has experience in sales and running own business. What could go wrong? Well, many things.</p><p>That was an introduction. I hope, you will make this journey through my memories and learn something for yourself. Comments are highly appreciated.</p><blockquote>Make sure to subscribe to don’t miss upcoming posts.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=347098e2c987" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a Twilio VoIP calls in a React Native app]]></title>
            <link>https://medium.com/@edzh1/create-a-twilio-voip-calls-in-a-react-native-app-35a729a9613d?source=rss-5be69e7c47b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/35a729a9613d</guid>
            <category><![CDATA[voip]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[twilio]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Dmitriy Kovtun]]></dc:creator>
            <pubDate>Sat, 13 Oct 2018 15:30:06 GMT</pubDate>
            <atom:updated>2018-10-13T15:30:06.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sVSlyi1Ao47OLCJ8QZn4Vg.png" /></figure><p>Hello. Today we will learn how to create react-native app, where you can call a TwiML service using Twilio. You can check results here:</p><p><a href="https://github.com/edzh1/react-native-twilio-example-app">edzh1/react-native-twilio-example-app</a></p><p>In this tutorial we are going to use this library to work with Twilio SDK:</p><p><a href="https://github.com/hoxfon/react-native-twilio-programmable-voice">hoxfon/react-native-twilio-programmable-voice</a></p><p>Also, we should fire up the basic server which will be used to create access tokens:</p><p><a href="https://github.com/twilio/voice-quickstart-server-node">twilio/voice-quickstart-server-node</a></p><p>Finally, we need to use Firebase to get Twilio’s notifications about calls:</p><p><a href="https://github.com/invertase/react-native-firebase">invertase/react-native-firebase</a></p><p>Let’s begin our journey into mobile voip world. First of all, we should install react-native-cli:</p><pre>$ npm install -g react-native-cli</pre><p>Then, init react-native project by doing:</p><pre>$ react-native init ReactNativeTwilioExampleApp</pre><p>Now we can run our app on real device/simulator (you need the Android Studio to run app on Android emulator):</p><pre>$ cd ReactNativeTwilioExampleApp<br>$ react-native run-android</pre><p>Finally, you should see welcome screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*asAZXOs9eDa6P7IZgKzcsg.png" /></figure><p>I don’t want to overwhelm this tutorial with Redux, so we will stick to KISS (keep it simple, stupid) principle.</p><h3>So, you want to create basic call.</h3><p>Let’s create the plan of our work (as the base, we can use iOS quickstart guide <a href="https://github.com/twilio/voice-quickstart-objc#quickstart">https://github.com/twilio/voice-quickstart-objc#quickstart</a>):</p><ol><li>Install <strong>react-native-twilio-programmable-voice</strong> library and run <strong>voice-quickstart-server-node:</strong></li></ol><pre>$ yarn add react-native-twilio-programmable-voice</pre><p>Use instructions from the repo to run server (<a href="https://github.com/twilio/voice-quickstart-server-node">https://github.com/twilio/voice-quickstart-server-node</a>)</p><p>At the end you should see:</p><pre>$ Express server running on *:3000</pre><p>2. Install <a href="https://cocoapods.org/">Cocoapods</a> (if you want to work with iOS):</p><pre>$ sudo gem install cocoapods<br>$ cd ios<br>$ pod init</pre><p>Change your Podfile:</p><pre>platform :ios, &#39;9.0&#39;</pre><pre>target &#39;ReactNativeTwilioExampleApp&#39; <em>do<br>    </em>pod &#39;TwilioVoice&#39;, &#39;~&gt; 2.0.0&#39;<br><em>end</em></pre><p>This allows us to automatically link Twilio library to our project.</p><p>From an ios folder:</p><pre>$ pod install</pre><p>3. Install Firebase (<a href="https://rnfirebase.io/docs/v5.x.x/installation/initial-setup">https://rnfirebase.io/docs/v5.x.x/installation/initial-setup</a>). When you are done, add this in the end of android/app/build.gradle (see <a href="https://github.com/invertase/react-native-firebase/issues/1155#issuecomment-395944013">https://github.com/invertase/react-native-firebase/issues/1155#issuecomment-395944013</a>)</p><pre>com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true</pre><p>4. Complete steps 2, 3, 4, 5 from <a href="https://github.com/twilio/voice-quickstart-objc#quickstart">https://github.com/twilio/voice-quickstart-objc#quickstart</a> guide;</p><p>5. Write some code to create call to a <a href="https://www.twilio.com/docs/voice/twiml">TwiML</a> app.</p><p>According to Twilio manual, we should obtain access token first. Let’s do this:</p><pre>...</pre><pre>getAuthToken = () =&gt; {<br>    return fetch(‘http://c2a19b17.ngrok.io/accessToken&#39;, { //replace <strong>c2a19b17.ngrok.io </strong>with your link (from Step 1), <strong>localhost won&#39;t work</strong><br>        method: ‘get’,<br>    })<br>    .then(response =&gt; response.text())<br>    .catch((error) =&gt; console.error(error));<br>}</pre><pre>...</pre><p>We are using <a href="https://facebook.github.io/react-native/docs/network">Fetch API</a> to make request to our backend, but you can use special library (like <a href="https://github.com/axios/axios">axios</a>, for example).</p><p>If you are working with Android, you must ask for microphone access pemission (<a href="https://github.com/hoxfon/react-native-twilio-programmable-voice/issues/47">https://github.com/hoxfon/react-native-twilio-programmable-voice/issues/47</a>):</p><pre><em>import</em> { Platform, StyleSheet, Text, View, TouchableOpacity, <strong>PermissionsAndroid</strong> } <em>from</em> &#39;react-native&#39;;</pre><pre>...</pre><pre>getMicrophonePermission = () =&gt; {<br>    const audioPermission = PermissionsAndroid.PERMISSIONS.RECORD_AUDIO;<br>    <br>    return PermissionsAndroid.check(audioPermission).then(async result =&gt; {<br>        <em>if</em> (!result) {<br>          const granted = <em>await</em> PermissionsAndroid.request(audioPermission, {<br>            title: &#39;Microphone Permission&#39;,<br>            message: &#39;App needs access to you microphone &#39; + &#39;so you can talk with other users.&#39;,<br>          });<br>        }<br>    });<br>}</pre><pre>...</pre><p>Now we should disable default Twilio check for microphone access (android/app/src/main/java/com/reactnativetwilioexampleapp/MainApplication.java):</p><pre>...</pre><pre>protected List&lt;ReactPackage&gt; getPackages() {<br>    <em>return</em> Arrays.&lt;ReactPackage&gt;asList(<br>        <em>new</em> MainReactPackage(),<br>        <em>new</em> TwilioVoicePackage(<strong>false</strong>),<br>...</pre><p>Our victory is near. Now we only need to initialize Twilio SDK and create call function:</p><pre>...</pre><pre>import TwilioVoice from &#39;react-native-twilio-programmable-voice&#39;;</pre><pre>...</pre><pre>state = {<br>    twilioInited: false<br>};</pre><pre>...</pre><pre>initTwilio = async () =&gt; {<br>    const token = <em>await</em> <em>this</em>.getAuthToken();</pre><pre>    <em>if</em> (Platform.OS === &#39;android&#39;) {<br>        <em>await</em> <em>this</em>.getMicrophonePermission();<br>    }</pre><pre>    <em>await</em> TwilioVoice.initWithToken(token);</pre><pre>    TwilioVoice.addEventListener(&#39;deviceReady&#39;, () =&gt; {<br>        <em>this</em>.setState({ twilioInited: true });<br>    });</pre><pre><em>    if</em> (Platform.OS === &#39;ios&#39;) { //required for ios<br>        TwilioVoice.configureCallKit({<br>            appName: &#39;ReactNativeTwilioExampleApp&#39;,<br>        });<br>    }<br>};</pre><pre>makeCall = () =&gt; TwilioVoice.connect({ To: &#39;Alice&#39; }); //took it from Twilio example repo. In real call you will change Alice with a real number</pre><pre>... </pre><p>Now we are ready to add layout and create a call:</p><pre>...</pre><pre>render() {<br>    <em>return</em> (<br>        &lt;View style={styles.container}&gt;<br>            &lt;TouchableOpacity onPress={() =&gt; <em>this</em>.initTwilio()}&gt;<br>                &lt;View&gt;<br>                    &lt;Text&gt;Init Twilio&lt;/Text&gt;<br>                &lt;/View&gt;<br>            &lt;/TouchableOpacity&gt;<br>            &lt;TouchableOpacity disabled={!<em>this</em>.state.twilioInited} onPress={() =&gt; <em>this</em>.makeCall()}&gt;<br>                &lt;View&gt;<br>                    &lt;Text&gt;Make call ({<em>this</em>.state.twilioInited ? &#39;ready&#39; : &#39;not ready&#39;})&lt;/Text&gt;<br>                &lt;/View&gt;<br>            &lt;/TouchableOpacity&gt;<br>        &lt;/View&gt;<br>    );<br>}</pre><pre>...</pre><p>This is how it should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*o-Tav_0JGOCM07VNTFEgQQ.png" /></figure><p>Tap ‘init Twilio’, and when ‘not ready’ changes to ‘ready’ tap Make call. You should hear an conglatulary message.</p><h3>P.S.</h3><p>Don’t forget, that after this step you should follow <a href="https://github.com/twilio/voice-quickstart-objc#quickstart">https://github.com/twilio/voice-quickstart-objc#quickstart</a> to receive/make real calls. Also, without this guide, Twilio won’t work on iOS, because it needs special VoIP sertificate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35a729a9613d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>