<?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 Hong Ly on Medium]]></title>
        <description><![CDATA[Stories by Hong Ly on Medium]]></description>
        <link>https://medium.com/@honglytech?source=rss-70ffeac6cfa4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9yA2zMypkVKZH5o1.</url>
            <title>Stories by Hong Ly on Medium</title>
            <link>https://medium.com/@honglytech?source=rss-70ffeac6cfa4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:54:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@honglytech/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[HTTP Requests]]></title>
            <link>https://honglytech.medium.com/http-requests-42b71c46f193?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/42b71c46f193</guid>
            <category><![CDATA[https]]></category>
            <category><![CDATA[ascii]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[lessons-learned]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:56:35 GMT</pubDate>
            <atom:updated>2021-01-16T06:46:40.399Z</atom:updated>
            <content:encoded><![CDATA[<p>HyperText Transfer Protocol (HTTP) is the underlying protocol that is used by World Wide Web (WWW) and it is a protocol defines how messages are transmitted, formatted, and what actions web browsers and servers should get in response to different commands [1]. HTTP is designed to enable communications between clients and servers. Two commonly used methods for a request-response between a client and server are: <strong>GET</strong> and <strong>POST </strong>[2].</p><p>GET — Requests data from a specified resource.</p><p>POST — Submits data to be processed to a specified resource.</p><p><strong>Send Data with POST Requests in Ionic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pd7TfUIc4bnAFp1nRaXgDA.png" /><figcaption><em>Post requests code in Ionic [3]</em></figcaption></figure><p><strong>Get Data with Get Requests in Ionic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*6qHpU_rXpukpcpY4LSf70g.png" /><figcaption><em>Get requests code in Ionic [5]</em></figcaption></figure><p>In Firebase, only authenticated users are allowed to read and write data. Therefore, we need to get the token and send it with HTTP request to confirm to firebase to the backend that the user is allowed to read or write so that the user is authenticated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nig4SM-CBOFr-MQrwXJ3Fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M0zFYpGIDuCUAU5Mn8JBxA.png" /><figcaption><em>URL to access Firebase by HTTP requests</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_mv3EmF9XzYRoHf3A74wQ.png" /><figcaption><em>storePost method with post request</em></figcaption></figure><p><strong>URI Component Encoding</strong></p><p>The encodeURIComponent() is a function used to encode a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character [4].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bqt9SQ17BhmqBd4fn5WpWg.png" /><figcaption><em>encodeURIComponent vs. encodeURI [4]</em></figcaption></figure><p><strong>Three Common HTTP Codes</strong></p><p>When surfing on the Internet, it works on a request-response system. When we type a URL after <strong>http:</strong> in the browser’s address bar to request a web page or an image, we will get a response. As defined by HTTP, status code is an important part of its structure.</p><p><strong>404 Not Found</strong></p><p>One of the most common error code you would run into is a 404 error. The 404 status code refers to the requested resource is no longer available or it is just not found. A missing or extra letter in a typed-in url which is not existed or a wrong domain name can also result in a 404 error [6].</p><p><strong>403 Forbidden</strong></p><p>Another common error code from client-side response status code is 403. Retrieving a 403 status code from an HTTP request means accessing to the resource is forbidden. This is not because of an authentication problem [6]. Those are 401 (unauthorized) errors. One common reason for 403 errors is the server maintaining a whitelist of machines that can access that system while the user’s computer not being on it.</p><p><strong>503 Service Unavailable</strong></p><p>The 503 status code could be a temporary problem, indicating service unavailable. It means the web server isn’t available. The problem can be caused by the web server is just restarted and is in the process of initialization. Or it is overloaded and can’t handle any more concurrent requests. Or it is just down for maintenance [6].</p><p><strong>Types of Data Stored on a Server per User</strong></p><p>There are many types of data that can be stored on a server for each particular user. That includes as follows:</p><p>Email account: username and password</p><p>Bank detail</p><p>Address</p><p>Date of birth</p><p>ID</p><p>Driver license</p><p>These types of data are unique to each specific user and it is securely stored on the server to avoid being hacked.</p><p><strong>Types of Data Stored on a Server for All Users</strong></p><p>Data stored on a server that is made available for all users, mostly contains general detail that all users might find useful and that could be:</p><p>Cloud Deakin: Consists of weekly resources or Blackboard collaboration that is accessible from all current students.</p><p>Online Shop: Amazon or eBay</p><p><a href="http://www.australia.gov.au/">http://www.australia.gov.au/</a> (General information about Australian government services)</p><p><strong>Character Encoding</strong></p><p>A character encoding tells a computer how to interpret raw zeroes and ones into real characters. Generally, it does this by pairing numbers with characters.</p><p><strong>ASCII</strong> is the first character encoding standard (character set). It defines 128 different alphanumeric characters that is used on the Internet, containing numbers, English letters and some special characters [8].</p><p><strong>ANSI</strong> (Windows-1252) was the original Windows character set, supporting 256 different character codes.</p><p><strong>ISO-8859–1</strong> was the default character set for HTML 4. This character set also supported 256 different character codes.</p><p><strong>Unicode</strong> is a standard which defines the internal text coding system in almost all operating systems including Windows, UNIX, Macintosh, Linux and more. Unicode can handle characters for almost all modern languages and even some ancient languages.</p><p><strong>Unicode</strong> assigns each character a unique number, or code point. It consists of two mapping methods, the <strong>UTF</strong> (Unicode Transformation Format) encodings, and the <strong>UCS</strong> (Universal Character Set) encodings. Unicode-based encodings apply the Unicode standard and include UTF-8, UTF-16 and UTF-32/UCS-4. These types of Unicode go beyond 8-bits and support almost every language in the world [9].</p><p>Because ANSI and ISO-8859–1 were so limited, HTML 4 also supported UTF-8.</p><p><strong>UTF-8</strong> (Unicode) covers almost all of the characters and symbols in the world.</p><p>The differences between character encoding and font is that a font is a file that contains glyphs ordered according to some numbering scheme which is not the same as the numbering in any character sets. Before there were bit-mapped fonts which represented a specific size either in pixels or points of a typeface. Currently, most fonts use mathematical curves to describe glyphs and it can be scaled to represent any size of typeface.</p><p>UTF-8 uses 1 byte to represent characters in the ASCII set, 2 bytes for characters in several more alphabetic blocks, and 3 bytes for the rest of the BMP. Supplementary characters use 4 bytes [9].</p><p>UTF-16 uses 2 bytes for any character in the BMP, and 4 bytes for supplementary characters.</p><p>UTF-32 uses 4 bytes for all characters.</p><p>For Ionic applications, UTF-8 would be the best choice to use as the default character encoding since it covers almost all of the characters and symbols in the world.</p><p><strong>References</strong></p><p>[1] “What is HTTP — HyperText Transfer Protocol? Webopedia Definition”, Webopedia.com, 2017. [Online]. Available: <a href="http://www.webopedia.com/TERM/H/HTTP.html.">http://www.webopedia.com/TERM/H/HTTP.html.</a> [Accessed: 9- Sep- 2017].</p><p>[2] “HTTP Methods GET vs POST”, W3schools.com, 2017. [Online]. Available: <a href="https://www.w3schools.com/tags/ref_httpmethods.asp.">https://www.w3schools.com/tags/ref_httpmethods.asp.</a> [Accessed: 09- Sep- 2017].</p><p>[3] J. Morony, “How to Send Data with POST Requests in Ionic 2”, joshmorony — Build Mobile Apps with HTML5, 2017. [Online]. Available: <a href="https://www.joshmorony.com/how-to-send-data-with-post-requests-in-ionic-2/">https://www.joshmorony.com/how-to-send-data-with-post-requests-in-ionic-2/.</a> [Accessed: 10- Sep- 2017].</p><p>[4] “encodeURIComponent()”, Mozilla Developer Network, 2017. [Online]. Available: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent.">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent.</a> [Accessed: 12- Sep- 2017].</p><p>[5] J. Morony, “Using Http to Fetch Remote Data from a Server in Ionic 2 &amp; 3”, joshmorony — Build Mobile Apps with HTML5, 2017. [Online]. Available: <a href="https://www.joshmorony.com/using-http-to-fetch-remote-data-from-a-server-in-ionic-2/">https://www.joshmorony.com/using-http-to-fetch-remote-data-from-a-server-in-ionic-2/.</a> [Accessed: 13- Sep- 2017].</p><p>[6] L. Center, “5 Most Common HTTP Error Codes Explained — Globo.Tech”, Globo.Tech, 2017. [Online]. Available: <a href="https://www.globo.tech/learning-center/5-most-common-http-error-codes-explained/">https://www.globo.tech/learning-center/5-most-common-http-error-codes-explained/.</a> [Accessed: 13- Sep- 2017].</p><p>[7] “Microservices Pattern: Database per service”, microservices.io, 2017. [Online]. Available: <a href="http://microservices.io/patterns/data/database-per-service.html.">http://microservices.io/patterns/data/database-per-service.html.</a> [Accessed: 14- Sep- 2017].</p><p>[8] “HTML Charset”, W3schools.com, 2017. [Online]. Available: <a href="https://www.w3schools.com/html/html_charset.asp.">https://www.w3schools.com/html/html_charset.asp.</a> [Accessed: 13- Sep- 2017].</p><p>[9] Net-informations.com. (2017). What is character encoding. [online] Available at: <a href="http://net-informations.com/q/faq/encoding.html">http://net-informations.com/q/faq/encoding.html</a> [Accessed 15 Sep. 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42b71c46f193" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging in Ionic]]></title>
            <link>https://honglytech.medium.com/debugging-in-ionic-5686021fa925?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5686021fa925</guid>
            <category><![CDATA[debug]]></category>
            <category><![CDATA[native-app]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[debug-ionic]]></category>
            <category><![CDATA[debugger]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:49:03 GMT</pubDate>
            <atom:updated>2021-01-16T05:49:03.830Z</atom:updated>
            <content:encoded><![CDATA[<p>Every time we develop a new app, there will always be something go wrong. However, developers can debug those apps to see what is happening step by step, where the problem comes from either it is a logical error, syntax error or runtime error. Here are the four common methods to test the Ionic apps as we develop [1].</p><p><strong>Method 1: Using a Desktop browser</strong></p><p>The most common way to debug the app is in the browser. We can test Ionic apps by running the apps with this following command</p><pre>ionic serve</pre><p>This command will load a livereload server for the project. Each time we make a change to any HTML, CSS or JavaScript files, the browser will automatically reload once the files are saved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*7xB04O8h7lr4HG-LShFFHg.png" /><figcaption><em>An error occurred when the app is run on browser</em></figcaption></figure><p><strong>Method 2: Debug through an iOS or Android simulator</strong></p><p>We can test an Ionic apps via a simulator by using the following commands based on specific platforms including iOS and Android.</p><pre>ionic build ios <br>ionic emulate ios</pre><p>or</p><pre>ionic build android <br>ionic emulate android</pre><p>To future advance in testing, we can open the project file for a specific platform. This could be opened the required Xcode or Android Studio in platforms/PLATFORM. We can now build and test within the IDE. After making changes to www folder, run this command</p><pre>cordova prepare ios </pre><p>or</p><pre>cordova prepare android </pre><p>that will update the current project with codes from www folder as well as overwrite any changes.</p><p><strong>Method 3: Mobile browser debugging</strong></p><p>We can also debug Ionic apps directly from a mobile browser. The apps can be tested from Safari browser if the developers are using OS X. Safari can be used to directly debug websites and simulator applications. The way to do it is to enable the remote web inspector on the device and the Safari on the desktop. If iOS 7 and OS X Mavericks are used, we need to enable the Web inspector within iOS settings -&gt; Safari -&gt; Advanced Section. Furthermore, we have to enable the Developer Menu from Android Section of Safari OS X settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*lT8qZPWnqTPH_xL9sTn7vQ.png" /></figure><p>For Android apps running on 4.4 version or above can also used Chrome browser for remote debugging. We can enter this onto the URL bar chrome://inspect</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*poeHlynZQsZQMbxRRLn3_Q.png" /></figure><p>Now, click on the instance we are debugging, and a new window will open up containing all the tools from a browser.</p><p>If we make use of a local server method from the Desktop testing section and on the same network as the Desktop computer, we can then connect to the IP address of the desktop to perform each test. For instance, if our desktop is on a test server with IP — 192.168.1.111 Port — 8000, we can load that address into our mobile Chrome or Safari to test the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*9-iTszXd2Srn89OBig5aLg.png" /></figure><p><strong>Method 4: Debug as a native app</strong></p><p>If we are building an Ionic app running on iOS devices, we need too sign up for an Apple Developer account to test as a native app as demonstrated in “Week 04 — Deploy Ionic App on iOS Devices &amp; Change App Name” section above.</p><p>To test an Ionic app on Android devices, simply plug in the device then run command.</p><pre>ionic cordova run android </pre><p>If there is a problem or above command is not working, make sure that USB debugging is selected from the Android device.</p><p><strong>References</strong></p><p>[1] IonicThemes. (2017). Different Ways to Debug an Ionic App | Tutorials | IonicThemes. [online] Available at: <a href="https://ionicthemes.com/tutorials/about/different-ways-to-debug-an-ionic-app">https://ionicthemes.com/tutorials/about/different-ways-to-debug-an-ionic-app</a> [Accessed 12 Sep. 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5686021fa925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Git]]></title>
            <link>https://honglytech.medium.com/using-git-91ecc16e8949?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ecc16e8949</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-commands]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[basic-git-commands]]></category>
            <category><![CDATA[git-usage]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:43:19 GMT</pubDate>
            <atom:updated>2021-01-16T05:43:19.117Z</atom:updated>
            <content:encoded><![CDATA[<p>Git is a version control system that is used for tracking changes in computer files or managing work on those files among numerous people. It is mainly used for source code management in software development. Also, it can be used to keep track of changes in any set of files [1]. Basically, uploading source codes to store on clouds so that other people or developers can see the codes. There are many web-based Git and version control repositories available out there, including GitHub, GitLab, Bitbucket and so on.</p><p>To see common Git commands, simply type <strong>git</strong> in command prompt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqn6RCdC1wxwptHXO5h0SA.png" /></figure><p>Command <strong>clone </strong>is used to copy or clone a repository into a new directory.</p><p>Command <strong>branch </strong>is used to list, create, or delete branches in a directory.</p><p>To commit or upload to source codes to Git, first I will need to type <strong>git init</strong> to create an empty Git repository or reinitialize an existing one. Then I use this command <strong>git add .</strong> to add updated file contents to be uploaded to Git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fsKdk-Gum1znvWQDc1CZw.png" /></figure><p>To add a short message to Git when making changes to the existing codes, type</p><pre>git commit -m &quot;<em>message&quot;</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7u-gB3DOk4dw_VAMrMiDcw.png" /></figure><p>Then, I need to specify an URL to have the source codes uploaded. Type this command</p><pre>git remote add origin <em>Git’s URL</em> </pre><p>For the URL, it can be from GitHub, GitLab or Bitbucket. They all work in the same way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2RmIHm90w8gnL1Qis-r-A.png" /></figure><p>In order to upload the source codes to Git, I type</p><pre>git push -u -f origin master</pre><p>All codes are now uploaded to git repository successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j02h84g0KvrDFw0dM3BRiw.png" /></figure><p>-f command will force to push all codes to the repository. -f is useful when I download my source codes from the current repository to work on another computer and I will need to upload both existing codes and new codes from that computer to the Git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AuIySKUnJ3XyKUJNlh2C2Q.png" /></figure><p>To see the status of current git, I use this command git status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvbZbAHTUE9-TF_8awkr8g.png" /></figure><p><strong>Daily usage of Git</strong></p><p>After making changes or updating the current sources codes, I can reuse the following commands to push the codes.</p><pre>git add .</pre><pre>git status</pre><pre>git commit -m &quot;added something&quot;</pre><pre>git push</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSH-BMQdjb5b5IsxwAPlAw.png" /><figcaption><em>All source codes are uploaded to GitHub</em></figcaption></figure><p><strong>References</strong></p><p>[1] “Git”, En.wikipedia.org, 2017. [Online]. Available: <a href="https://en.wikipedia.org/wiki/Git.">https://en.wikipedia.org/wiki/Git.</a> [Accessed: 07- Sep- 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ecc16e8949" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Symmetric, Asymmetric Encryption vs. Hashing]]></title>
            <link>https://honglytech.medium.com/symmetric-asymmetric-encryption-vs-hashing-b1b1a0153ef9?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b1a0153ef9</guid>
            <category><![CDATA[symmetric]]></category>
            <category><![CDATA[hashing]]></category>
            <category><![CDATA[asymmetric]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:35:27 GMT</pubDate>
            <atom:updated>2021-01-16T05:35:27.864Z</atom:updated>
            <content:encoded><![CDATA[<p>A fundamental topic of IT security that often makes people hard to understand the difference between symmetric, asymmetric encryption, and hashing [1]. Before we go in details, we need to know that if the important data such as password is not encrypted or hash, the data will be in risk since the password is in plaintext and it is human-readable that can be used to login into the server without permission very easily. For HTTP in plaintext, the data can be seen in the URL when sending to the server using POST request. This allows not only the owner of the site sees it, but also other people might see it too. It is also a good chance for hackers to steal some important information including bank account if the users use the same passwords as the one they use for the website.</p><p>Hyper Text Transfer Protocol Secure (HTTP<strong>S</strong>) is the secure version of HTTP, the protocol over which data is sent between your browser and the website that you are connected to [2]. The ‘S’ letter stands for ‘Secure’. It means that all communications between your browser and the website are encrypted. HTTPS is often used to protect highly confidential online transactions such as online banking and online shopping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*B5Tt_OgvKau3TfuEjblF1Q.png" /></figure><p>Now, let’s look at different types of encryption and hashing.</p><p><strong>Symmetric encryption</strong> is also be referred to as private key, shared key or shared secret encryption. In symmetric encryption, a single key is used both to encrypt and decrypt traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*4_10DhyH335InErfW6KQVA.png" /></figure><p>Symmetric encryption algorithms is really fast, and their relatively low complexity allows for easy implementation in hardware. However, they require that all hosts participating in the encryption have already been configured with the secret key through some external means.</p><p>On the other hand, <strong>Asymmetric encryption </strong>is also known as public-key cryptography. The main difference between the two encryptions is that two keys are used in Asymmetric encryption. One is for encryption and the other one is for decryption. The most common asymmetric encryption algorithm is RSA.</p><p>Asymmetric encryption executes a high computational burden, therefore, it tends to be much slower than Symmetric encryption. Its major strength is its ability to establish a secure channel over a non-secure medium such as the Internet. This is done by the exchange of public keys, which can only be used to encrypt data. The complementary private key, which is never shared, is used to decrypt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*r0-5J0YpYGBjbbvbfHPwAQ.png" /></figure><p><strong>Hashing</strong> is a form of cryptographic security which differs from encryption. While encryption is a two-step process used to first encrypt and then decrypt a message, Hashing condenses a message into an irreversible fixed-length value, or so called hash. Two of the most common hashing algorithms seen in networking are MD5 and SHA-1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*qvKU34OEB_MyycMHMlRk1w.png" /></figure><p>Hashing is only used to verify data and the original message cannot be retrieved from a hash. When used to authenticate secure communications, a hash is normally the result of the original message plus a secret key. Hashing algorithms are also commonly used without a secret key simply for error checking.</p><p>A cryptographic hash (sometimes called ‘digest’) is a kind of ‘signature’ for a text or a data file. SHA-256 generates an almost-unique 256-bit (32-byte) signature for a text [1].</p><p>To implement the SHA-256 into ionic apps, I need to run this command to install the crypto library.</p><pre>npm install crypto-js </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVQgnNMAUxUDG4YBJqj75w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GZeHC4XdWQk7nOffZaR3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-MCn2LsDOKfkeNWsktfRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJgYQJuItdWsmwxHuTbCRQ.png" /></figure><p><strong>References</strong></p><p>[1] Chris Veness, 2. (2017). SHA-256 Cryptographic Hash Algorithm implemented in JavaScript | Movable Type Scripts. [online] Movable-type.co.uk. Available at: <a href="http://www.movable-type.co.uk/scripts/sha256.html">http://www.movable-type.co.uk/scripts/sha256.html</a> [Accessed 31 Aug. 2017].</p><p>[2] Instantssl.com. (2017). HTTP to HTTPS | What is a HTTPS Certificate. [online] Available at: <a href="https://www.instantssl.com/ssl-certificate-products/https.html">https://www.instantssl.com/ssl-certificate-products/https.html</a> [Accessed 5 Sep. 2017].</p><p>[3] Packetlife.net. (2017). Symmetric Encryption, Asymmetric Encryption, and Hashing — PacketLife.net. [online] Available at: <a href="http://packetlife.net/blog/2010/nov/23/symmetric-asymmetric-encryption-hashing/">http://packetlife.net/blog/2010/nov/23/symmetric-asymmetric-encryption-hashing/</a> [Accessed 5 Sep. 2017].</p><p>[4] Ionic. (2017). Can I use sha256 function in Ionic?. [online] Available at: <a href="https://forum.ionicframework.com/t/can-i-use-sha256-function-in-ionic/69418/9">https://forum.ionicframework.com/t/can-i-use-sha256-function-in-ionic/69418/9</a> [Accessed 31 Aug. 2017].</p><p>[5] npm. (2017). crypto-js. [online] Available at: <a href="https://www.npmjs.com/package/crypto-js">https://www.npmjs.com/package/crypto-js</a> [Accessed 31 Aug. 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b1a0153ef9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Authentication]]></title>
            <link>https://honglytech.medium.com/firebase-authentication-eb7bb5f85ee6?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb7bb5f85ee6</guid>
            <category><![CDATA[firebaseauthentication]]></category>
            <category><![CDATA[ionic-firebase]]></category>
            <category><![CDATA[ionic-authentication]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:30:13 GMT</pubDate>
            <atom:updated>2021-01-16T05:30:13.069Z</atom:updated>
            <content:encoded><![CDATA[<p>Most applications require to know the identity of a particular user. By knowing a user’s identity, it allows the app to securely store user’s data in the cloud and provides the same personalized experience across all of the user’s devices.</p><p>Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries that can be used to authenticate each user on the app. It also supports authentication using usernames, passwords and so on [1].</p><p>To implement Firebase Authentication into the app, I need to write the codes in <strong>app.component.ts</strong> as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*RtlMMDXPLbCA168Ad2nX-Q.png" /></figure><p><strong>Sign Out Feature</strong></p><p>To sign user out of the app. In services -&gt; <strong>auth.ts</strong>, I will need to write the logout function as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*9IsVx00D8mA1pu7i4XxbdA.png" /></figure><p>Now in <strong>app.component.ts</strong>, I need to import AuthService in order to use the logout function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*YnTwRV3C2eyUho9lqZrJjA.png" /></figure><p><strong>Firebase Stores Token</strong></p><p>To see the token that is stored by Firebase, click on <strong>&gt;&gt; </strong>symbol then <strong>Application.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zK7ZyUHmVblR5ZZ7XIueHg.png" /></figure><p>Now navigate to <strong>Local Storage </strong>then click on <strong>http:/localhost:8100</strong>. At the moment there are no key and value stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGOgSrZdRJYZPJwdEA6cKA.png" /></figure><p>Once the user is signed into the app, Firebase stores the particular user’s key and value (token) within the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xGr5aoJ4ZpC0XzXN8tlUuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UWMJzxiJ5jp5bZikOdBOFA.png" /></figure><p>The token will be deleted once a user is signed out from the app and, it will redirect to the sign in page again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLxicsHbh576XgqCVfeO6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mr3KSW_1nxfBanS9inG6pw.png" /></figure><p><strong>References</strong></p><p>[1] Firebase. (2017). Firebase Authentication | Firebase. [online] Available at: <a href="https://firebase.google.com/docs/auth/">https://firebase.google.com/docs/auth/</a> [Accessed 25 Aug. 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb7bb5f85ee6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Storage (Firebase)]]></title>
            <link>https://honglytech.medium.com/storage-firebase-491c4927bf38?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/491c4927bf38</guid>
            <category><![CDATA[firebase-storage]]></category>
            <category><![CDATA[ionic-storage]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[logs]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:24:21 GMT</pubDate>
            <atom:updated>2021-01-16T05:24:21.578Z</atom:updated>
            <content:encoded><![CDATA[<p>Hard disk drives and solid-state drives are common types of persistent storage. This can be in a form of file, block or object storage. On the other hand, RAM and cache are normally non-persistent, and data is lost once the power is turned off. However, non-volatile RAM are persistent. Persistence is useful in the event of a crash or reboot, data will not be lost [3].</p><p><strong>What is a file?</strong></p><p>A file is a series of bytes that contains numbers between 0 and 255. A file would be spread out to different areas on a storage device. There are two types of files. A text file and a binary file [4].</p><p><strong>Text file </strong>is human-readable file, meaning when we open a text file with Notepad or other text editors. The file contains several lines of numbers one after the other that can be translated into a visual representation. If the file encounters the number 97, it will display a letter <strong>a</strong>, so called ASCII code.</p><p><strong>Binary file </strong>is a file that can be read by humans since the file is not “line-oriented”. The file contains the combination of numbers, letters and symbols. Storing important data in a binary file is way more secured compared to a text file as the binary file cannot be read to understand by humans.</p><p><strong>What is a directory?</strong></p><p>In computer or mobile file systems, a directory is a named group of related files that are divided by naming convention from other groups of files [5]. Data can be stored in different locations or directories of mobile devices.</p><p><strong>Data</strong> <strong>Serialization vs. Data Encoding</strong></p><p>Data serialization is a process of converting data which includes arrays, object or related structures into a single string that can be stored or transmitted easily [6].</p><p><strong>Coding</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*gwgCLiBd-SdJTNp-fX_8sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*buPdigOqtMb0SYgf30-c7g.png" /></figure><p>Encoding is a very general term, referring to any format in which data can be represented, or the process of converting data into a particular representation.</p><p>For example, a sequence of English letters can be encoded as written symbols or bit patterns in a text encoding including ASCII or UTF8.</p><p><strong>CSV Format</strong></p><p>CSV (Comma Separated Values) is a file format for storing data which looks like a text file. The information is organized with a record on each line and each field is separated by a comma [7].</p><p><strong>CSV Advantages</strong></p><p>CSV file is human readable and easy to edit</p><p>CSV file is simple to implement and parse</p><p>CSV file is considered to be standard format</p><p>CSV file is smaller in size</p><p>CSV file is compact. For XML you start tag and end tag for each column in each row. In</p><p>CSV file you write the column headers only once.</p><p>CSV file is processed by almost all existing applications</p><p>CSV file provides a straightforward information schema</p><p>CSV file is faster to handle</p><p>CSV is easy to create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*VU-aqT2p8kwpr1vpX1ANow.jpeg" /></figure><p><strong>CSV vs. TSV</strong></p><p>TSV is a very efficient for JavaScript to process without losing any typing information, and also it is easy for humans to read while CSV is generally loading data into spreadsheets [8].</p><p><strong>Escape Character</strong></p><p>An escape character is a character which invokes an alternative interpretation on subsequent characters in a character sequence.</p><p>JavaScript uses the \ (backslash) as an escape character as follows [9].</p><p>\’ single quote</p><p>\” double quote</p><p>\\ backslash</p><p>\n new line</p><p>\r carriage return</p><p>\t tab</p><p>\b backspace</p><p>\f form feed</p><p><strong>JSON vs. CSV</strong></p><p>JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for computers to parse and generate. Also, it is easy for humans to read and write.</p><p>JSON is better at showing hierarchical and relational data than CSV file.</p><p>CSV will lose data. For example, many products have dozens or even hundreds of prices and reviews. This means you end up losing a lot of valuable data by using the CSV view.</p><p>The standard CSV reader application (Excel) is terrible at loading files that may have 10,000 rows, 100+ columns with some of these columns generated by unstructured text like reviews.</p><p>JSON is easier to work with at scale since most modern APIs are RESTful, and that is a reason why it natively support JSON input and output. Several database technologies including most NoSQL variations also support it. It’s significantly easier to work with within most programming languages too [10].</p><p><strong>Encode an array of string to CSV</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*Mx2CdPrJohlrbszjLrgN8A.png" /><figcaption><em>Array to CSV [11]</em></figcaption></figure><p><strong>Encode an array of string to JSON</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*L7TiFnzFCvub8OfZpaFajA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eeD_tZblYDxstBZQUWnEfQ.png" /><figcaption><em>Array to JSON [12]</em></figcaption></figure><p><strong>Client vs. Server</strong></p><p>A client machine is a small computer with a basic hardware configuration. On the other hand, a server is a high-end computer with an advanced hardware configuration [13].</p><p>A client is a simple and less powerful machine while a server is a powerful expensive machine.</p><p>A client is used for simple tasks. However, a server is used for storing huge data files and applications.</p><p>A server delivers high performance when it is compared to a client machine.</p><p>Finally, a server supports simultaneous, multiple user log-ins whereas a client supports one single user log-in at a time. For this reason, we can see that server is way more powerful compared to client machine. Server is categorized into different types, including file server, backup server, web server, database server and so on [14].</p><p><strong>Store data on server vs store data locally</strong></p><p><strong><em>Data stored on server [15]:</em></strong></p><p><strong>Pros</strong></p><p>Maintenance and upgrades</p><p>Data stored remotely</p><p>Easy adjustment of storage space</p><p>Accessible wherever there is internet access</p><p><strong>Cons</strong></p><p>Cannot access data without the internet</p><p>Transferring data out of the cloud</p><p><strong><em>Data stored on local machine:</em></strong></p><p><strong>Pros</strong></p><p>Security</p><p>System set-up control</p><p><strong>Cons</strong></p><p>Installation of expensive hardware</p><p>Will need maintenance</p><p>Now, let’s get back to data storage. Storage is an easy way to store key/value pairs and JSON objects. Storage uses a variety of storage engines underneath, picking the best one available depending on the platform.</p><p>Storage is a simple method to store key or value pairs as well as JSON objects. Storage uses different types of storage engines underneath it [1]. When running in a native application, storage will prioritize using SQLite which is one of the stable and widely used file-based databases. Also, it avoids some pitfalls such as local storage and IndexedDB.</p><p>However, I would use Firebase plugin to demonstrate how data is stored rather than using SQLite. This plugin brings push notifications, analytics, event tracking, crash reporting and more from Google Firebase to Ionic application. Both Android and iOS platforms are supported [2].</p><p>First, I go to <a href="https://firebase.google.com/">https://firebase.google.com/</a> then click on Pricing tab of the website. I selected the Spark plan which is a free version for me to test and deploy as shown below. After that, I signed in using my existing Google account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxtHpNisYNF-C_kP9J1i0A.png" /></figure><p>Now, click on <strong>Go To Console</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*Oq8HEVq8zJFBRHjIeLaPjA.png" /></figure><p>Next, I press on Add Project to add a new project file to link to my Ionic application. Now, give the project a name and select country/region then click Create Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JG4li0Itxpm3Lor3WuldgA.png" /></figure><p>Click on the project that was just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYC8i9w8w9nTheAXLUjeWg.png" /></figure><p>Click on Add Firebase to your web app as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Av4I9rshz4HhI8EkzgI0sg.png" /></figure><p>Copy the two lines including apiKey and authDomain in order to have the Ionic app linked to Firebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWRZqn83rjGuzYCXeaPVyg.png" /></figure><p>Now, click on Authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*twtVpkqfwBRhXMYzNWPJQA.png" /></figure><p>Go to Sign-In Method then enable Email/Password to create a sign up process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwXqiIidYkVjET4DBIiMZw.png" /></figure><p>Currently, there is no user yet in Users tab. Users will appear once data is created via Ionic app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*koTDhMVWn-greSqZJoY0UQ.png" /></figure><p>Install Firebase plugin with this command line</p><pre>npm install — save firebase</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZISzivxiWczRaYKDuOzdA.png" /></figure><p>In app.component.ts, I will need to add the following codes to initialize firebase with authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*k_BWwlF6Rn_RMTXtj8yk7w.png" /></figure><p>I need to create a <strong>services</strong> folder to work with the server with the file name of auth.ts along with the following codes with explanation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HtzyKJ4_SQ6eStkwForXg.png" /></figure><p>In order to use this service, I will need to provide access in app.module.ts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*Uxqq46jTu15tE4RjGFO89Q.png" /></figure><p>Now, in the signup.ts page, I will have some codes below to write to the console when the signup process is either it is successful or there is an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*WZZMLnPJAmQj0H68eGDY6w.png" /></figure><p><strong>Adding Spinner (Loading Controller), Alert Controller and Error Handling</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gfuUKVe4flw-Vjf0hP4FA.png" /></figure><p>Now, run the application in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*73ujMH9a2yso-4gSPkaCCg.png" /><figcaption><em>Spinner appears while signing user up</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wxOs86OsH6J9jbVcX5RDw.png" /><figcaption><em>Error message shows when signup process fails with Ionic error handler</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*F1ViKllRc-WpXlVIQcrNNA.png" /><figcaption><em>Handling exception when email is not in correct format</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*ievwtWYdV2tI3vJzztYsJA.png" /><figcaption><em>Password must be at least 6 characters long</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8VoMTMKdapkpMNW0YF6LpQ.png" /><figcaption><em>A user is created and stored on Firebase server</em></figcaption></figure><p><strong>Console.log, Debug, Error vs. Alert</strong></p><p><strong>console.log()</strong> is a useful tool for outputting debug without the need of using alerts; however, there are some other methods that you can use to output information to display in the console. It works similar to printf is c programming.</p><p><strong>Debug</strong> is described in Week 09 — Debugging</p><p><strong>Error</strong> is used to output error messages.</p><p><strong>Alert</strong> is a function that is mostly used to check the values of the variables.</p><p><strong>References</strong></p><p>[1] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/storage/">https://ionicframework.com/docs/storage/.</a> [Accessed: 10- Aug- 2017].</p><p>[2] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/native/firebase/">https://ionicframework.com/docs/native/firebase/.</a> [Accessed: 11- Aug- 2017].</p><p>[3] SearchStorage. (2017). What is persistent storage? — Definition from WhatIs.com. [online] Available at: <a href="http://searchstorage.techtarget.com/definition/Persistent-storage">http://searchstorage.techtarget.com/definition/Persistent-storage</a> [Accessed 8 Sep. 2017].</p><p>[4] Perl Maven. (2017). What is a text file and what is a binary file?. [online] Available at: <a href="https://perlmaven.com/what-is-a-text-file">https://perlmaven.com/what-is-a-text-file</a> [Accessed 8 Sep. 2017].</p><p>[5] SearchWindowsServer. (2017). What is directory? — Definition from WhatIs.com. [online] Available at: <a href="http://searchwindowsserver.techtarget.com/definition/directory">http://searchwindowsserver.techtarget.com/definition/directory</a> [Accessed 8 Sep. 2017].</p><p>[6] “serializer.ts”, npm, 2017. [Online]. Available: <a href="https://www.npmjs.com/package/serializer.ts.">https://www.npmjs.com/package/serializer.ts.</a> [Accessed: 11- Sep- 2017].</p><p>[7] “CSV — What, Why and How”, Cart2Cart, 2017. [Online]. Available: <a href="https://www.shopping-cart-migration.com/blog/61-must-know-tips/5985-csv-what-why-and-how.">https://www.shopping-cart-migration.com/blog/61-must-know-tips/5985-csv-what-why-and-how.</a> [Accessed: 16- Sep- 2017].</p><p>[8] C. csv, “Choosing between tsv and csv”, Stackoverflow.com, 2017. [Online]. Available: <a href="https://stackoverflow.com/questions/11130120/choosing-between-tsv-and-csv.">https://stackoverflow.com/questions/11130120/choosing-between-tsv-and-csv.</a> [Accessed: 15- Sep- 2017].</p><p>[9] “Escape character”, En.wikipedia.org, 2017. [Online]. Available: <a href="https://en.wikipedia.org/wiki/Escape_character.">https://en.wikipedia.org/wiki/Escape_character.</a> [Accessed: 15- Sep- 2017].</p><p>[10] “4 Reasons You Should Use JSON Instead of CSV — Knowledge from Data: The Datafiniti Blog”, Knowledge from Data: The Datafiniti Blog, 2017. [Online]. Available: <a href="https://blog.datafiniti.co/4-reasons-you-should-use-json-instead-of-csv-2cac362f1943.">https://blog.datafiniti.co/4-reasons-you-should-use-json-instead-of-csv-2cac362f1943.</a> [Accessed: 16- Sep- 2017].</p><p>[11] “array-to-csv”, npm, 2017. [Online]. Available: <a href="https://www.npmjs.com/package/array-to-csv.">https://www.npmjs.com/package/array-to-csv.</a> [Accessed: 16- Sep- 2017].</p><p>[12] “standard-json”, npm, 2017. [Online]. Available: <a href="https://www.npmjs.com/package/standard-json.">https://www.npmjs.com/package/standard-json.</a> [Accessed: 18- Sep- 2017].</p><p>[13] “Difference Between Client and Server | Difference Between”, Differencebetween.net, 2017. [Online]. Available: <a href="http://www.differencebetween.net/technology/difference-between-client-and-server-2/">http://www.differencebetween.net/technology/difference-between-client-and-server-2/.</a> [Accessed: 13- Sep- 2017].</p><p>[14] A. McLean, “Business IT 101: Why Have A Server?”, McLean IT Consulting, 2017. [Online]. Available: <a href="http://www.mcleanit.ca/blog/why-have-a-server/">http://www.mcleanit.ca/blog/why-have-a-server/.</a> [Accessed: 15- Sep- 2017].</p><p>[15] “Cloud vs local Server — Where should you store your data? — labfolder”, labfolder, 2017. [Online]. Available: <a href="https://www.labfolder.com/blog/cloud-vs-local-server/">https://www.labfolder.com/blog/cloud-vs-local-server/.</a> [Accessed: 15- Sep- 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=491c4927bf38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Ionic App on iOS Devices & Change App Name]]></title>
            <link>https://honglytech.medium.com/deploy-ionic-app-on-ios-devices-change-app-name-c4dc11c342eb?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4dc11c342eb</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[ionic-deploy]]></category>
            <category><![CDATA[ios-device]]></category>
            <category><![CDATA[deploy]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 05:04:55 GMT</pubDate>
            <atom:updated>2021-01-16T06:50:33.320Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Change App Name in Ionic</strong></h3><p>I can change my app name config.xml file under name tag. For description, email and author. This will display all information once I submit the app to App Store. If the name of the app is still not changed, then I can remove the iOS platform then add it back again.</p><pre>cordova platform rm ios</pre><pre>cordova platform add ios</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6pea8CJXxxUnQmleGUNMg.png" /></figure><p><strong>References</strong></p><p>[1] A. (2017). <em>An error occurred when I was running “ionic cordova platform add ios”</em>. [online] Stackoverflow.com. Available at: <a href="https://stackoverflow.com/questions/44224573/an-error-occurred-when-i-was-running-ionic-cordova-platform-add-ios">https://stackoverflow.com/questions/44224573/an-error-occurred-when-i-was-running-ionic-cordova-platform-add-ios</a> [Accessed 3 Aug. 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4dc11c342eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ionic Tab, Screen Resolution & Screen Orientation]]></title>
            <link>https://honglytech.medium.com/ionic-tab-screen-resolution-screen-orientation-aac25230be8f?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac25230be8f</guid>
            <category><![CDATA[screen-orientation]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[ionic-tabs]]></category>
            <category><![CDATA[screen-resolution]]></category>
            <category><![CDATA[ionic-framework]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 04:51:02 GMT</pubDate>
            <atom:updated>2021-01-16T04:51:02.287Z</atom:updated>
            <content:encoded><![CDATA[<p>Tabs make users easy to navigate between different pages or functional aspects of an app as demonstrated in [1]. The Tabs component is written as <strong>&lt;ion-tabs&gt;</strong>. It is a container of individual Tab components. Each individual ion-tab is a declarative component for a NavController.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*z07VkbruqhNLo_y1Xg1XKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*oA4cRzM290wRqJBl4HtTLw.png" /><figcaption><em>Creating tabs in Ionic</em></figcaption></figure><p><strong>Ionic Adapts Different Resolutions</strong></p><p>Ionic also works well to adapt different devices’ resolutions. Ionic Lab makes the apps on run on multiple screen sizes and platforms [2] [3].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*AparkeROb1FCteXGy1huag.png" /><figcaption><em>Ionic works well on different screen sizes [3]</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iv3vlFNgi3lHm-ruTFFteQ.png" /></figure><p><strong>Ionic Screen Orientation</strong></p><p>Cordova plugin to lock or set screen orientation in a common way. It needs Cordova a plugin: <strong>cordova-plugin-screen-orientation</strong>.</p><p>To install the Cordova and Ionic Native screen orientation plugins, we need to run the following commands. Then add the plugin to app’s module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*HQZFW5c_FmCrD4ow1WdlMQ.png" /><figcaption><em>Ionic Screen Orientation [4]</em></figcaption></figure><p><strong>References</strong></p><p>[1] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/api/components/tabs/Tabs/">https://ionicframework.com/docs/api/components/tabs/Tabs/.</a> [Accessed: 26- Jul- 2017].</p><p>[2] “How does Ionic work with different screen sizes?”, Ionic, 2017. [Online]. Available: <a href="https://forum.ionicframework.com/t/how-does-ionic-work-with-different-screen-sizes/41028.">https://forum.ionicframework.com/t/how-does-ionic-work-with-different-screen-sizes/41028.</a> [Accessed: 26- Jul- 2017].</p><p>[3] “Introducing Ionic Lab”, The Official Ionic Blog, 2017. [Online]. Available: <a href="http://blog.ionic.io/ionic-lab/">http://blog.ionic.io/ionic-lab/.</a> [Accessed: 26- Jul- 2017].</p><p>[4] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/native/screen-orientation/">https://ionicframework.com/docs/native/screen-orientation/.</a> [Accessed: 27- Jul- 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac25230be8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UI and UX in Cordova]]></title>
            <link>https://honglytech.medium.com/ui-and-ux-in-cordova-c1e23924add7?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e23924add7</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 06:40:03 GMT</pubDate>
            <atom:updated>2021-01-15T06:40:03.711Z</atom:updated>
            <content:encoded><![CDATA[<p>User interface (UI) is a series of screens, pages or visual elements including buttons, tabs, icons, label and more that users use to interact with a device [5].</p><p>On the other hand, user experience (UX) is the internal experience that users have as they interact with all aspects of the application by navigating to different screens whether it is in a logical order or not.</p><p><strong>&lt;ion-input&gt;</strong> is used for text inputs only including text, number, search, password, email, tel, and url. Ionic still uses an actual <strong>&lt;input type=”text”&gt;</strong> HTML element within the component. However, ion-input cannot be used for non-text type inputs, such as a checkbox, radio, toggle, range, select and so on. Input also supports all standard text input events such as keyup, keydown, keypress and more.</p><p><strong>Code Snippets </strong>[1]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*gtIOb5tGZASOZ8xVEb6Wpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j916zMWDe9PbMpyAEtLIsw.png" /><figcaption><em>home.html</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*uqNjEX7uFu2bJJPUAADyWw.png" /><figcaption><em>Running in browser</em></figcaption></figure><p><strong>Adding buttons</strong></p><p>Buttons are simple components in Ionic. They consist of text and icons and be improved by different attributes [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*l8iwMbR-KCArEnzMYr86lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*ZeTi0dVpJawjnwoSzQOX1A.png" /><figcaption><em>Running in browser</em></figcaption></figure><p><strong>Adding a label</strong></p><p>Labels are placed inside of an <strong>&lt;ion-item&gt;</strong> element and can be used to describe an ion-input, ion-toggle, ion-checkbox and so on [3].</p><pre>&lt;!-- Website Label --&gt;<br>&lt;ion-item&gt;</pre><pre> &lt;ion-label fixed&gt;Deakin Label&lt;/ion-label&gt;</pre><pre> &lt;ion-input type=&quot;url&quot;&gt;&lt;/ion-input&gt;</pre><pre>&lt;/ion-item&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*q8qL5VMVEEGMdaZerEiLDw.png" /></figure><p><strong>Events</strong></p><p>An event is an action that happens as a result of a user or another source including a button is being clicked. An event handler is routine that is used to work with event, allowing a developer to write code to be executed when event happens.</p><p>Events is a publish-subscribe style event system for sending and responding to application-level events across our applications [4].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZ3k-ihVkGGYv-m9FBo-Yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*0p6LLik7BgExDjON4feOiw.png" /><figcaption><em>Event [4]</em></figcaption></figure><p><strong>Named Function vs. Anonymous Function</strong></p><p><strong>Named function </strong>is a function that is loaded before any codes get executed. For example, JavaScript engine does hoisting. It hoists the named function to the top so that it loads first. This means we can execute the function anywhere in the whole developing app either before or after declaring the function.</p><p><strong>Anonymous function </strong>is a function that is similar to named function, the key difference is we will get an error if we try to call the function before we have declared it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJevOgyG-i2QcvnwLKT6Yg.png" /><figcaption><em>JavaScript code</em></figcaption></figure><p><strong>Scope in Event Handler</strong></p><p>One common mistake in programming event handlers is how an event handler is connected to an object that has been declared within a limited scope for the purpose of handling the events. The object must have a life that spans over the function that connects the callback method as an event handler of that object. Also the object must have a life that spans over the callback method itself where the event is handled.</p><p>If the object is out of scope and is not defined in the callback method, the callback method cannot be called and the event cannot be handled as expected [6].</p><p><strong>Static UI vs. Dynamic UI</strong></p><p><strong>Static UI</strong> is an UI that is already implemented. It is also a kind of immutable &amp; doesn’t change based upon user interactions or even allow users to interact with them. For example, creating a login page that consists of email and password text fields with a login button.</p><p><strong>Dynamic UI</strong> is an UI that will be created based on user interaction. For example, creating a new forum post in an application. The user interface is not fixed as the static UI one, it is generated throughout those interactions.</p><p><strong>Static Component Interface</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*6wqthKXwQsov6SxW5ttISQ.png" /></figure><p><strong>Static Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*JLnxE_HneIQYWP2PIw3NUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*R5R5VsdI5LDXhUXBjVmapw.png" /></figure><p><strong>Dynamic Component Interface</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*bZVifQNsRpx0OMfKDERduQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*sMJidM5DYGk0rnCutTJWPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*thThWdZDLWNJ3wen4XaLvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*i1lY0T95Ws6ROLP-XK4ZfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*TasBsi9Tu5CLrWsxpDBaMA.png" /></figure><p><strong>Dynamic Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLr7toQam1_bGReTIRqnpg.png" /></figure><p><strong>Real World Application Screenshots (Medium App)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*0dw-wTsfVZWhARFZqx4i_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*wOfZ8_1KhF6vwXwfM1ahCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*aiW8AKfVTkQ6zAHflJ-15w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*vTW1XQ8JadBIqdCTTQBQQA.png" /></figure><p>The interfaces look clean with different tabs at the buttons along with white backgrounds, separating different sections clearly so that users won’t feel confused using the app. Good user experience is also demonstrated, users are easy to navigate throughout the application without getting lost.</p><p><strong>Online Tutorial Application Screenshots (Previous project app)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*V43Wh0ggFHi7A-0R8_gukQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*OX4MD-DWiXZlO-pKBZHAMg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*emrz4fTDBAFF1LW2HwS61Q.png" /></figure><p>The background image is the same for all interfaces. Also, the font size for each tutor names is not consistent and it is not aligned properly. Contact details should have had a heading so that users can understand easily. The text color background makes the interface look not standard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*gDwpH5oaFICVOG-VS2AgKA.png" /></figure><p>The background image should not be too bright. Black transparent background for “Online Tutorial” is a bit high that appears half way up the image. The map should stay under the map location “Deakin University, …” to make the map separated from the top background image. This allows users to see the map even so clearly.</p><p><strong>References</strong></p><p>[1] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/api/components/input/Input/">https://ionicframework.com/docs/api/components/input/Input/.</a> [Accessed: 19- Jul- 2017].</p><p>[2] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/api/components//button/Button/">https://ionicframework.com/docs/api/components//button/Button/.</a> [Accessed: 19- Jul- 2017].</p><p>[3] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/api/components//label/Label/">https://ionicframework.com/docs/api/components//label/Label/.</a> [Accessed: 19- Jul- 2017].</p><p>[4] “Ionic Framework”, Ionic Framework, 2017. [Online]. Available: <a href="https://ionicframework.com/docs/2.0.0/api/util/Events/">https://ionicframework.com/docs/2.0.0/api/util/Events/.</a> [Accessed: 19- Jul- 2017].</p><p>[5] S. Lanoue, “UI vs. UX: What’s the difference between user interface and user experience? | UserTesting Blog”, UserTesting Blog, 2017. [Online]. Available: <a href="https://www.usertesting.com/blog/2016/04/27/ui-vs-ux/">https://www.usertesting.com/blog/2016/04/27/ui-vs-ux/.</a> [Accessed: 4- Sep- 2017].</p><p>[6] “Scoping Variables Appropriately in Event Handlers”, Msdn.microsoft.com, 2017. [Online]. Available: <a href="https://msdn.microsoft.com/en-us/library/office/bb646475.aspx.">https://msdn.microsoft.com/en-us/library/office/bb646475.aspx.</a> [Accessed: 6- Sep- 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e23924add7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cordova vs. Xamarin]]></title>
            <link>https://honglytech.medium.com/cordova-vs-xamarin-47277fb87302?source=rss-70ffeac6cfa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/47277fb87302</guid>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[ide]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[hong-ly]]></category>
            <dc:creator><![CDATA[Hong Ly]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 05:54:03 GMT</pubDate>
            <atom:updated>2021-01-15T05:54:03.019Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Cross-platform development</strong> is exceedingly popular today as developers can gain access to the largest user-based as much as they can [1]. Cross-platform applications can be run on different mobile operating systems such as iOS, Android and more. Both environments I am going to point out is Cordova and Xamarin.</p><p><strong>Cordova</strong> is an open-source mobile development framework that allows developers to build cross-platform applications by using standard web technologies including HTML5, CSS3, and JavaScript as demonstrated in [2]. Cordova uses wrappers targeted to each platform and it depends on standards-compliant API bindings to be able to access mobile devices’ data, sensors and so on. All of the wrappers are generally the platform’s native Web Views. Cordova is suitable for teams that already familiar with front-end development with just a small amount of extra learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*sTKnuhztjVxIHkyco0FJ2A.png" /><figcaption><em>Apache Cordova Icon </em>[5]</figcaption></figure><p>However, using HTML as a rending platform is a major disadvantage of Cordova and PhoneGap since HTML web pages cannot use native interface elements or transitions without the use of Cordova plugin (a third-party UI library, or by building a plugin yourself). So the differences between PhoneGap and Cordova are described as follows.</p><p><strong>PhoneGap</strong> is an HTML5 app platform that allows developers to author native applications with web technologies and get access to APIs or App Stores. It is a distribution of <strong>Apache Cordova</strong>. We can simply think of Apache Cordova as an engine that powers PhoneGap.</p><p><strong>Xamarin </strong>is also open-sourced, but only for non-commercial use. Developers will require a community license for Xamarin and businesses. It compiles to native code and uses native APIs to display all UI, meaning that a well-written Xamarin app should be taken the advantage of all platform’s common interface paradigms. It requires .NET, Android, MacOS and iOS knowledge [1]. At the same time, Well-developed Xamarin apps easily utilize recognizable native platform interfaces [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*29Rabd6PzPMOf1NxW0rG6g.png" /><figcaption><em>Xamarin Icon </em>[6]</figcaption></figure><p><strong>XAMARIN VS APACHE CORDOVA COMPARISON [3]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*favUo9PScOZkf5hbY2dj1A.png" /></figure><p><strong>Screenshots</strong></p><p><strong>Xamarin</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9KvAmCHsSfpPo54Qhli6xw.png" /><figcaption>Creating and Compiling first empty Xamarin iOS app using Visual Studio 2017</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XUiNbYX9G_fjk4uSFm4lRA.png" /><figcaption>Adding a Label and Compiling for Testing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D3ZKM3fa3eRvbCAc1TfCiQ.png" /><figcaption>App Delegate File in iOS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vv7K5F2lV6FNCPCRCXFLw.png" /><figcaption>View Controller File in iOS Code Snippet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DKlR4RrCaAttzHXx77kntQ.png" /><figcaption>Getting Started page for building Android app</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83qGdgdQbqhhaaW-t30UAg.png" /><figcaption>Creating and compiling default Xamarin Android app using Visual Studio 2017</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32XLmtZx54jwoOQIsrmdtQ.png" /><figcaption>Adding a label in Android app for testing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DErb1Fld5bpJ3UOPRDnmSA.png" /><figcaption>Android Main Activity File Code Snippet</figcaption></figure><p><strong>Cordova</strong></p><p>To create applications in Cordova, we first need to install Node.js (<a href="https://nodejs.org/en/">https://nodejs.org/en/</a>).</p><p>Open Node.js command prompt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*6LCOpz7p7wG85NosA4WRQQ.png" /></figure><p>Installing Cordova, we have to type</p><pre>npm install cordova -g</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nbbeBEGZ3AeEaJVQ7AYmg.png" /></figure><p>However, if you want to install Cordova using Ionic, you are required to type the following commands</p><pre>npm install ionic cordova -g</pre><p>Basically, Ionic is a front-end SDK for building cross-platform mobile apps. Built on top of Angular, Ionic also provides a platform for integrating services like push notifications and analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ENXNXzqEQqeu5KF_00aEw.png" /></figure><p>Create first ionic app in Cordova using this command line</p><pre>ionic start firstapp<em> (app name) </em></pre><p>Then choose a preferred starter. In this case, I select tabs and press Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShPvLK9TzJElYI_6j9tQTQ.png" /></figure><p>Wait until the process is finished</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jICTzNRaflOXrBf9MnpYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pI_U11oYXtT7s7DV3-oNcw.png" /></figure><p>Navigate to firstapp then type the following command to compile the application to CSS, JavaScript and HTML. It will then open up a link in the browser.</p><pre>ionic serve</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDq9hRDjZvBPrrxO08x00A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_r4jue5xUvN7up1xV2tyg.png" /></figure><p>Now press F12 on the keyboard and click on Toggle device toolbar icon to view it as in mobile devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dFM86odl5mOFlcn4aw6Ehg.png" /></figure><p>We can choose different screen sizes as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1efHmIkP2rxSPhNtXxK-kQ.png" /></figure><p>This is the folder created by using above command lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*xeW6S-kdS4JrbgzK31BgOw.png" /></figure><p><strong>What is an IDE?</strong></p><p>An IDE (Integrated Development Environment) is a software suit that establishes the basic tools for developers who need to write and test applications. An IDE contains a code editor, a compiler or interpreter and a debugger that developers can access via user interface (GUI).</p><p>Now, I open the folder in Sublime Text which is a popular text editor which is fast in executing, containing most IDE-like functions. The files can also be opened on Atom, Visual Studio or any other IDEs. And these are the steps we create an app in Cordova using Ionic framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_y3-XXtnHZs8Hcrad15JGA.png" /></figure><p><strong>Code Snippets in Ionic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*R0I1KlGInbO29cn7WtXmqw.png" /></figure><p><strong>Wrapping up</strong></p><p>As described above, Cordova application is more convenient to build compared to Xamarin that require individual platform knowledge to work on such as iOS and Android. Personally, I think Cordova is more suitable for me since it can be learned rather quickly when I already have web programming knowledge.</p><p><strong>References</strong></p><p>[1] “Why is Xamarin vs. Cordova the Wrong Question to Ask”, In’saneLab. Let us make your website work better, 2017. [Online]. Available: <a href="https://insanelab.com/blog/mobile-development/xamarin-vs-cordova-cross-platform-development/">https://insanelab.com/blog/mobile-development/xamarin-vs-cordova-cross-platform-development/.</a> [Accessed: 12- Jul- 2017].</p><p>[2] “Xamarin vs. Cordova / PhoneGap Actions Info”, Willowtreeapps.com, 2017. [Online]. Available: <a href="https://willowtreeapps.com/ideas/xamarin-vs-cordova-phonegap.">https://willowtreeapps.com/ideas/xamarin-vs-cordova-phonegap.</a> [Accessed: 12- Jul- 2017].</p><p>[3] “XAMARIN VS APACHE CORDOVA: WHICH ONE IS BETTER? “, Skelia, 2017. [Online]. Available: <a href="https://skelia.com/articles/xamarin-vs-apache-cordova-one-better/">https://skelia.com/articles/xamarin-vs-apache-cordova-one-better/.</a> [Accessed: 12- Jul- 2017].</p><p>[4] “What is the difference between PhoneGap and Cordova and why would I select one over another? “, Quora, 2017. [Online]. Available: <a href="https://www.quora.com/What-is-the-difference-between-PhoneGap-and-Cordova-and-why-would-I-select-one-over-another.">https://www.quora.com/What-is-the-difference-between-PhoneGap-and-Cordova-and-why-would-I-select-one-over-another.</a> [Accessed: 12- Jul- 2017].</p><p>[5] “Apache Cordova”, Cordova.apache.org, 2017. [Online]. Available: <a href="https://cordova.apache.org/">https://cordova.apache.org/.</a> [Accessed: 12- Jul- 2017].</p><p>[6]”Mobile App Development &amp; App Creation Software — Xamarin”, Xamarin.com, 2017. [Online]. Available: <a href="https://www.xamarin.com/">https://www.xamarin.com/.</a> [Accessed: 12- Jul- 2017].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47277fb87302" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>