<?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 AIEcho on Medium]]></title>
        <description><![CDATA[Stories by AIEcho on Medium]]></description>
        <link>https://medium.com/@aiehco?source=rss-dfa002f2368a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*75-M0EoPLa3OwPw5mNFVaA.png</url>
            <title>Stories by AIEcho on Medium</title>
            <link>https://medium.com/@aiehco?source=rss-dfa002f2368a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:45:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aiehco/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[LangGraph — First Basic_ChatBot]]></title>
            <link>https://medium.com/@aiehco/langgraph-first-basic-chatbot-e0b6f43c507c?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0b6f43c507c</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[langraph]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 18:10:50 GMT</pubDate>
            <atom:updated>2025-12-28T20:12:49.570Z</atom:updated>
            <content:encoded><![CDATA[<h3>LangGraph — First Basic_ChatBot</h3><p>This is very short documentation that I shared on how to ensure your local environment is set up correctly to start building your first Basic_ChatBot using LangGraph.</p><h4>Step 1: Verify if Python is installed</h4><p>Open a terminal and type the command below, and confirm the expected output.</p><pre>python3 --version<br><br>#Expected Result<br>Python {version_number}<br>Ex: Python 3.13.7</pre><h4>Step 2: Install LangGraph CLI</h4><p>Create a workspace to build your AI agent, then install the LangGraph CLI. In this approach, you will avoid conflicts and prevent affecting your entire local environment. Then navigate to the terminal and execute the task as shown below.</p><pre># Create project folder and naviagte into it.<br>mkdir basic_chatbot<br>cd basic_chatbot<br><br># Create a workspace environment and activate<br>python3 -m venv .basic_chatbot<br>source .basic_chatbot/bin/activate<br><br># Install the LangGraph CLI<br>pip3  install &quot;langgraph-cli[inmem]&quot; --upgrade<br></pre><h4>Step 3: Create Basic files</h4><p>To build your first Agent, you would need at least three basic files;</p><pre>basic_chatbot/<br>├── .basic_chatbot/      # Your virtual environment (created automatically)<br>├── .vscode/             # VS Code specific settings<br>│   └── settings.json    # Tells VS Code which Python to use<br>├── .env                 # API Keys (NEVER upload this to GitHub)<br>├── .gitignore           # Tells Git to ignore .venv and .env<br>├── requirements.txt     # List of libraries to install<br>└── agent.py             # Your main agent logic (the code from earlier)</pre><h4>Step 4: Build Basic_ChatBot agent</h4><p>Now you are ready to install all dependencies. I will then share the code for your first basic AI Agent — basic_chatbot.</p><pre>pip install langgraph langchain-openai python-dotenv</pre><p>Yes, we are going to use an OpenAI model. I assume you have created an account on the OpenAI platform and registered your API KEY.</p><p>The content for .env file.</p><pre>.env file<br><br>OPENAI_API_KEY={Replace_with_openAI_api_key}</pre><p>Then, below is the code for your first <em>agent.py</em></p><pre>import os<br>from dotenv import load_dotenv<br>from typing import Annotated, TypedDict<br>from langgraph.graph import StateGraph, START, END<br>from langgraph.graph.message import add_messages<br>from langchain_openai import ChatOpenAI<br><br>load_dotenv() # Loads your OPENAI_API_KEY from a .env file<br><br># 1. Define the &#39;State&#39; (the agent&#39;s memory)<br>class State(TypedDict):<br>    # This stores the history of the conversation<br>    messages: Annotated[list, add_messages]<br><br># 2. Initialize the LLM (The Brain)<br>llm = ChatOpenAI(model=&quot;gpt-4o-mini&quot;)<br><br># 3. Define the node (The logic of the chatbot)<br>def chatbot(state: State):<br>    return {&quot;messages&quot;: [llm.invoke(state[&quot;messages&quot;])]}<br><br># 4. Build the Graph<br>graph_builder = StateGraph(State)<br>graph_builder.add_node(&quot;chatbot&quot;, chatbot)<br>graph_builder.add_edge(START, &quot;chatbot&quot;)<br>graph_builder.add_edge(&quot;chatbot&quot;, END)<br><br># 5. Compile the Agent<br>agent = graph_builder.compile()<br><br>def run_chat():<br>    print(&quot;Agent is ready! (type &#39;quit&#39; to exit)&quot;)<br>    while True:<br>        user_input = input(&quot;User: &quot;)<br>        if user_input.lower() in [&quot;quit&quot;, &quot;exit&quot;]:<br>            break<br>            <br>        # Run the agent and get the last message<br>        events = agent.stream({&quot;messages&quot;: [(&quot;user&quot;, user_input)]})<br>        for event in events:<br>            for value in event.values():<br>                print(f&quot;Assistant: {value[&#39;messages&#39;][-1].content}&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    run_chat()</pre><p>Please execute the command below in the terminal to run your first agent.</p><pre>python agent.py</pre><p>Please share with me on social media if this was helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0b6f43c507c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RAG System]]></title>
            <link>https://medium.com/@aiehco/rag-system-851611b2a881?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/851611b2a881</guid>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 15:25:33 GMT</pubDate>
            <atom:updated>2025-11-30T15:25:33.889Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s build a RAG system fed with Google Docs resources to use as a knowledge base.</p><h3>Supbase Database</h3><p>Sign up for Subapase to have all the credentials you need to connect your AI agent to the database.</p><h4>How to connect N8N to a Supabase project</h4><p>Navigate to Project Settings and under the Data API sections, you will get the url to connect to your Supabase project.</p><pre>https://{organizationID}.supabase.co</pre><p>Then navigate to the API Keys section, and under Legacy anon, service_role API keys, you will find the service_role key.</p><p>Using the project url and <em>sevice_roke</em> key, your n8n is ready to connect with your Supabase project.</p><h4>How to create vector document tables in Supabase.</h4><pre>-- Enable the pgvector extension to work with embedding vectors<br>create extension vector;<br><br>-- Create a table to store your documents<br>create table documents (<br>  id bigserial primary key,<br>  content text, -- corresponds to Document.pageContent<br>  metadata jsonb, -- corresponds to Document.metadata<br>  embedding vector(1536) -- 1536 works for OpenAI embeddings, change if needed<br>);<br><br>-- Create a function to search for documents<br>create function match_documents (<br>  query_embedding vector(1536),<br>  match_count int default null,<br>  filter jsonb DEFAULT &#39;{}&#39;<br>) returns table (<br>  id bigint,<br>  content text,<br>  metadata jsonb,<br>  similarity float<br>)<br>language plpgsql<br>as $$<br>#variable_conflict use_column<br>begin<br>  return query<br>  select<br>    id,<br>    content,<br>    metadata,<br>    1 - (documents.embedding &lt;=&gt; query_embedding) as similarity<br>  from documents<br>  where metadata @&gt; filter<br>  order by documents.embedding &lt;=&gt; query_embedding<br>  limit match_count;<br>end;<br>$$;</pre><h3>Build a RAG system to feed external data.</h3><h4>Connect n8n to the Google Cloud Project.</h4><p>At this point, your n8n is connected to a Google Cloud Project, and you will enable the Google Drive API to allow your n8n to retrieve documents from a Google Drive folder and store them in the Supabase documents vector table. <br>If you encounter any challenges connecting n8n to a Google Cloud Platform (GCP) project, join our Facebook community group to ask questions. You can also follow our Instagram channel for additional support.</p><p>Facebook Group: AI Agents for Business <a href="https://www.facebook.com/groups/aibyjalves">https://www.facebook.com/groups/aibyjalves</a></p><p>Instagram Channel: AI Agent for Business<br><a href="https://www.instagram.com/channel/AbYrdUs5oE2RH6ae/">https://www.instagram.com/channel/AbYrdUs5oE2RH6ae/</a></p><h4>Build N8N Automation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgV_bxEOQcKLTFP2Cm-sZg.png" /><figcaption>RAG System — Build Knowledge Base</figcaption></figure><p>Google Drive Triugger on a specific folder where you are going to upload and create a document with a knowledge base you want to feed your AI Agents.</p><p>Add the Edit node to showcase which field is most important for building the automations. The two most essential fields: file_name and file_id</p><p>The Google Drive n8n node that can download a file by ID. This case needs to set up the correct File Conversion to help extract the information.</p><blockquote>Google Docs: Text (txt)</blockquote><blockquote>Google Drawings: JPEG<br>Google Slides: MS PowerPoint<br>Google Sheet: CVS</blockquote><p>Add a Supabase N8N node that would add documents to the vector database table. It’s imperative to configure the node correctly to match your needs.</p><blockquote>Choose correct supabase account</blockquote><blockquote>Operation Mode: Insert documents</blockquote><blockquote>Tables: documents</blockquote><blockquote>Query name: match_documents.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=851611b2a881" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instagram API for N8N Automations to handle DM, Comments and Mentions]]></title>
            <link>https://medium.com/@aiehco/instagram-api-for-n8n-automations-to-handle-dm-comments-and-mentions-8d4aab89ecd5?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d4aab89ecd5</guid>
            <category><![CDATA[n8n-workflow]]></category>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[instagram-api]]></category>
            <category><![CDATA[n8n-workflow-automation]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 23:03:56 GMT</pubDate>
            <atom:updated>2025-06-09T23:37:32.819Z</atom:updated>
            <content:encoded><![CDATA[<p>Before deciding to automate a task, it&#39;s essential to understand the available APIs that can facilitate this process. To automate Instagram DMs, comments, and mentions using n8n, I decided to thoroughly comprehend how the API operates, allowing me to implement it correctly and maintain it after going live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTe9r6Pv69lQ-7iCs9vsmQ.png" /></figure><h3>Meta Application</h3><p>Instagram, Facebook, Messenger, WhatsApp, and other products under Meta Inc. are only accessible through the Meta Apps. Therefore, as a first step, you must create a Meta App and ensure that you have granted all necessary permissions to call the APIs for the automation you wish to implement.</p><blockquote>Facebook link to create App: <a href="https://developers.facebook.com/apps/?show_reminder=true">https://developers.facebook.com/apps/?show_reminder=true</a></blockquote><blockquote>Facebook link to grant all permissions and access to the Instagram Professional account and the Facebook page you want to automate.</blockquote><blockquote><a href="https://developers.facebook.com/tools/explorer/">https://developers.facebook.com/tools/explorer/</a></blockquote><p>Having done this step correctly, we should get the following information.<br><em>Page Token</em></p><p><em>All permissions granted for your App</em></p><h3>Instagram API — Reply Comments</h3><p>Reference: <a href="https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-comment/replies/">https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-comment/replies/</a></p><p>When a user comments on your Instagram page, you would receive a webhook event with the following payload.</p><pre>[<br>  {<br>    &quot;entry&quot;: [<br>      {<br>        &quot;id&quot;: &quot;17841448785806248&quot;,<br>        &quot;time&quot;: 1749509111,<br>        &quot;changes&quot;: [<br>          {<br>            &quot;value&quot;: {<br>              &quot;from&quot;: {<br>                &quot;id&quot;: &quot;6538704986256875&quot;,<br>                &quot;username&quot;: &quot;jalves.official&quot;<br>              },<br>              &quot;media&quot;: {<br>                &quot;id&quot;: &quot;18078610903895633&quot;,<br>                &quot;media_product_type&quot;: &quot;FEED&quot;<br>              },<br>              &quot;id&quot;: &quot;18031464284665615&quot;,<br>              &quot;text&quot;: &quot;instagram API Reply&quot;<br>            },<br>            &quot;field&quot;: &quot;comments&quot;<br>          }<br>        ]<br>      }<br>    ],<br>    &quot;object&quot;: &quot;instagram&quot;<br>  }<br>]</pre><p>To reply to a comment using the Instagram API, all you need is the Comment ID and the Instagram Account token. For the response above, the comment ID is 18031464284665615. You can obtain the IG Account token from the Graph API Explorer or the App Dashboard by navigating to the Instagram product settings.</p><p>Information to build the HTTP POST Request</p><pre>EndPoint: {{IG_HOST}}/{{Version}}/{Comment_ID}/replies<br>IG_HOST:https://graph.instagram.com<br>Version:v23.0<br>Comment_ID: 18031464284665615<br>Body:<br>{<br>    &quot;message&quot;:&quot;Thank you for comment on my content&quot;<br>}</pre><p>Postman curl that you can import directly into the N8N HTTP request node.</p><pre>curl --location &#39;https://graph.instagram.com/v22.0/18076362100850359/replies&#39; \<br>--header &#39;Content-Type: application/json&#39; \<br>--header &#39;Authorization: ••••••&#39; \<br>--data &#39;{<br>    &quot;message&quot;:&quot;Thank you for showing interesting in our content.&quot;<br>}&#39;</pre><h3>Instagram API — Send Message</h3><p>Reference: <a href="https://developers.facebook.com/docs/messenger-platform/instagram/features/send-message">https://developers.facebook.com/docs/messenger-platform/instagram/features/send-message</a></p><p>When a user sends you a DM, the n8n webhook event payload appears as shown below:</p><pre>[<br>  {<br>    &quot;object&quot;: &quot;instagram&quot;,<br>    &quot;entry&quot;: [<br>      {<br>        &quot;time&quot;: 1749509917953,<br>        &quot;id&quot;: &quot;17841448785806248&quot;,<br>        &quot;messaging&quot;: [<br>          {<br>            &quot;sender&quot;: {<br>              &quot;id&quot;: &quot;6538704986256875&quot;<br>            },<br>            &quot;recipient&quot;: {<br>              &quot;id&quot;: &quot;17841448785806248&quot;<br>            },<br>            &quot;timestamp&quot;: 1749509917132,<br>            &quot;message&quot;: {<br>              &quot;mid&quot;: &quot;........&quot;,<br>              &quot;text&quot;: &quot;show me the payload&quot;<br>            }<br>          }<br>        ]<br>      }<br>    ]<br>  }<br>]</pre><p>To auto-reply the DM using n8n, you will use the Sender ID from the payload above and the Instagram account token you have obtained.</p><p>Below is the HTTP POST request in curl format, which you can easily import into your n8n workflow as an HTTP request.</p><pre>curl --location &#39;https://graph.instagram.com/v22.0/me/messages&#39; \<br>--header &#39;Content-Type: application/json&#39; \<br>--header &#39;Authorization: Bearer .........&#39; \<br>--data &#39;{<br>    &quot;recipient&quot;: {<br>        &quot;id&quot;:&quot;556432083723468&quot;<br>    },<br>    &quot;message&quot;: {<br>        &quot;text&quot;:&quot;TEXT-OR-LINK&quot;<br>    }<br>}&#39;</pre><h3>Instagram API — Reply to Mentions</h3><p>Reference: <a href="https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/mentions#creating">https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/mentions#creating</a></p><p>When a user mentions your Instagram account, your n8n webhook will receive an event with a follow payload.</p><pre>[<br>  {<br>    &quot;entry&quot;: [<br>      {<br>        &quot;id&quot;: &quot;17841448785806248&quot;,<br>        &quot;time&quot;: 1749511168,<br>        &quot;changes&quot;: [<br>          {<br>            &quot;value&quot;: {<br>              &quot;media_id&quot;: &quot;17890600326259263&quot;,<br>              &quot;comment_id&quot;: &quot;18047977886172660&quot;<br>            },<br>            &quot;field&quot;: &quot;mentions&quot;<br>          }<br>        ]<br>      }<br>    ],<br>    &quot;object&quot;: &quot;instagram&quot;<br>  }<br>]</pre><p>To set up auto-replies, please include the media_id, comment_id, and your Instagram account. Below is the Postman curl request that you can easily import into the N8N HTTP request node.</p><pre>curl --location &#39;https://graph.instagram.com/v22.0/17841448785806248/mentions&#39; \<br>--header &#39;Content-Type: application/json&#39; \<br>--header &#39;Authorization: Bearer .......&#39; \<br>--data &#39;{<br>    &quot;media_id&quot;:&quot;18186137146315469&quot;,<br>    &quot;message&quot;:&quot;Thank you from API&quot;,<br>    &quot;comment_id&quot;:&quot;18065539111874881&quot;<br>}&#39;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d4aab89ecd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[n8n Kubernetes Production Deployment Playbook (GKE Autopilot + Custom Domain)]]></title>
            <link>https://medium.com/@aiehco/n8n-kubernetes-production-deployment-playbook-gke-autopilot-custom-domain-6df4ee158066?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6df4ee158066</guid>
            <category><![CDATA[n8n-workflow-automation]]></category>
            <category><![CDATA[n8n-self-host]]></category>
            <category><![CDATA[n8n-workflow]]></category>
            <category><![CDATA[n8n]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Sun, 01 Jun 2025 17:25:23 GMT</pubDate>
            <atom:updated>2025-06-01T17:27:34.790Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IFkC95lcKcDxXTTcymotWQ.png" /></figure><h4>📦 <strong>Included Components</strong></h4><ul><li>✅ All YAML manifests (cleaned &amp; battle-tested)</li><li>✅ All kubectl + helm commands</li><li>✅ Full execution order</li><li>✅ Verified against GKE Autopilot</li><li>✅ Supports HTTPS + Ingress + Cert-Manager</li><li>✅ Fully integrated with custom domain (like n8n.yourDomainName.com)</li></ul><h4>🔧 <strong>PHASE 0 — Prerequisites</strong></h4><p>You already have:</p><ul><li>GKE Autopilot cluster running ✅</li><li>Your domain provider (ex: Squarespace, GoDaddy, Google Domains, etc.) ✅</li><li>kubectl, helm installed locally ✅</li></ul><h4>🔧 <strong>PHASE 1 — Install Ingress Controller</strong></h4><pre># 1. Add nginx ingress repo<br>helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx<br>helm repo update<br><br># 2. Create ingress-nginx namespace<br>kubectl create namespace ingress-nginx<br><br># 3. Install ingress-nginx (Autopilot safe)<br>helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginx</pre><h4>🔧 <strong>PHASE 2 — Get Ingress External IP</strong></h4><pre>kubectl get service -n ingress-nginx ingress-nginx-controller</pre><p>Example output:</p><pre>NAME                     TYPE           EXTERNAL-IP     PORTS     AGE<br>ingress-nginx-controller LoadBalancer   34.XX.XXX.XX    80,443    5m</pre><p>✅ Use this EXTERNAL-IP in your DNS A record.</p><h4>🔧 <strong>PHASE 3 — Configure Domain DNS</strong></h4><p>👉 In your domain provider (Squarespace, Google Domains, etc):</p><pre>Name             Type         Value<br>n8n               A         34.XX.XXX.XX</pre><p>This map:</p><pre>n8n.YourDomainName.com -&gt; your ingress IP</pre><p>✅ Wait for DNS propagation before proceeding.</p><h4>🔧 <strong>PHASE 4 — Install Cert-Manager</strong></h4><pre># 1. Add jetstack repo<br>helm repo add jetstack https://charts.jetstack.io<br>helm repo update<br><br># 2. Create namespace<br>kubectl create namespace cert-manager<br><br># 3. Install CRDs first (ALWAYS first!)<br>kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.2/cert-manager.crds.yaml<br><br># 4. Install cert-manager with proper leader election namespace (Autopilot friendly)<br>helm install cert-manager jetstack/cert-manager \<br>  --namespace cert-manager \<br>  --set installCRDs=false \<br>  --set extraArgs={--leader-election-namespace=cert-manager}</pre><h4>🔧 <strong>PHASE 5 — Create ClusterIssuer (Let’s Encrypt Prod)</strong></h4><pre># cluster-issuer.yaml<br>apiVersion: cert-manager.io/v1<br>kind: ClusterIssuer<br>metadata:<br>  name: letsencrypt-prod<br>spec:<br>  acme:<br>    email: your-email@domain.com<br>    server: https://acme-v02.api.letsencrypt.org/directory<br>    privateKeySecretRef:<br>      name: letsencrypt-prod-private-key<br>    solvers:<br>      - http01:<br>          ingress:<br>            class: nginx</pre><pre>kubectl apply -f cluster-issuer.yaml</pre><h4>🔧 <strong>PHASE 6 — Create Namespace for n8n</strong></h4><pre>kubectl create namespace n8n</pre><h4>🔧 <strong>PHASE 7 — Create Database Storage (Postgres PVC)</strong></h4><pre># postgres-pvc.yaml<br>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: postgres-pvc<br>  namespace: n8n<br>spec:<br>  accessModes:<br>    - ReadWriteOnce<br>  resources:<br>    requests:<br>      storage: 10Gi</pre><pre>kubectl apply -f postgres-pvc.yaml</pre><h4>🔧 <strong>PHASE 8 — Create Secrets (Postgres &amp; Encryption Key)</strong></h4><p>👉 Generate a strong encryption key first:</p><pre>openssl rand -base64 32</pre><pre># secrets.yaml<br>apiVersion: v1<br>kind: Secret<br>metadata:<br>  name: n8n-secrets<br>  namespace: n8n<br>type: Opaque<br>stringData:<br>  postgres-database: n8n<br>  postgres-user: n8nuser<br>  postgres-password: very-strong-password<br>  encryption-key: your-generated-encryption-key</pre><pre>kubectl apply -f secrets.yaml</pre><h4>🔧 <strong>PHASE 9 — Deploy Postgres</strong></h4><pre># postgres-deployment.yaml<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: postgres<br>  namespace: n8n<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      service: postgres-n8n<br>  template:<br>    metadata:<br>      labels:<br>        service: postgres-n8n<br>    spec:<br>      containers:<br>        - name: postgres<br>          image: postgres:15<br>          env:<br>            - name: POSTGRES_DB<br>              valueFrom:<br>                secretKeyRef:<br>                  name: n8n-secrets<br>                  key: postgres-database<br>            - name: POSTGRES_USER<br>              valueFrom:<br>                secretKeyRef:<br>                  name: n8n-secrets<br>                  key: postgres-user<br>            - name: POSTGRES_PASSWORD<br>              valueFrom:<br>                secretKeyRef:<br>                  name: n8n-secrets<br>                  key: postgres-password<br>          volumeMounts:<br>            - mountPath: /var/lib/postgresql/data<br>              name: postgres-storage<br>      volumes:<br>        - name: postgres-storage<br>          persistentVolumeClaim:<br>            claimName: postgres-pvc</pre><pre>kubectl apply -f postgres-deployment.yaml</pre><h4>🔧 <strong>PHASE 10 — Create Postgres Service</strong></h4><pre># postgres-service.yaml<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: postgres-service<br>  namespace: n8n<br>spec:<br>  type: ClusterIP<br>  selector:<br>    service: postgres-n8n<br>  ports:<br>    - port: 5432</pre><pre>kubectl apply -f postgres-service.yaml</pre><h4>🔧 <strong>PHASE 11 — Deploy n8n</strong></h4><pre># n8n-deployment.yaml<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: n8n-deployment<br>  namespace: n8n<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: n8n<br>  template:<br>    metadata:<br>      labels:<br>        app: n8n<br>    spec:<br>      containers:<br>      - name: n8n<br>        image: n8nio/n8n:latest<br>        ports:<br>        - containerPort: 5678<br>        env:<br>        - name: DB_TYPE<br>          value: &quot;postgresdb&quot;<br>        - name: DB_POSTGRESDB_HOST<br>          value: &quot;postgres-service&quot;<br>        - name: DB_POSTGRESDB_PORT<br>          value: &quot;5432&quot;<br>        - name: DB_POSTGRESDB_DATABASE<br>          valueFrom:<br>            secretKeyRef:<br>              name: n8n-secrets<br>              key: postgres-database<br>        - name: DB_POSTGRESDB_USER<br>          valueFrom:<br>            secretKeyRef:<br>              name: n8n-secrets<br>              key: postgres-user<br>        - name: DB_POSTGRESDB_PASSWORD<br>          valueFrom:<br>            secretKeyRef:<br>              name: n8n-secrets<br>              key: postgres-password<br>        - name: N8N_ENCRYPTION_KEY<br>          valueFrom:<br>            secretKeyRef:<br>              name: n8n-secrets<br>              key: encryption-key<br>        - name: N8N_HOST<br>          value: &quot;n8n.jaalves.com&quot;<br>        - name: N8N_PORT<br>          value: &quot;5678&quot;<br>        - name: N8N_PROTOCOL<br>          value: &quot;http&quot;<br>        - name: N8N_SECURE_COOKIE<br>          value: &quot;true&quot;</pre><pre>kubectl apply -f n8n-deployment.yaml</pre><h4>🔧 <strong>PHASE 12 — Create n8n Service</strong></h4><pre># n8n-service.yaml<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: n8n-service<br>  namespace: n8n<br>spec:<br>  selector:<br>    app: n8n<br>  ports:<br>    - name: http<br>      port: 80<br>      targetPort: 5678</pre><pre>kubectl apply -f n8n-service.yaml</pre><h4>🔧 <strong>PHASE 13 — Create Ingress</strong></h4><pre># n8n-ingress.yaml<br>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: n8n-ingress<br>  namespace: n8n<br>  annotations:<br>    cert-manager.io/cluster-issuer: letsencrypt-prod<br>spec:<br>  ingressClassName: nginx<br>  tls:<br>    - hosts:<br>        - n8n.jaalves.com<br>      secretName: n8n-tls<br>  rules:<br>    - host: n8n.jaalves.com<br>      http:<br>        paths:<br>          - path: /<br>            pathType: Prefix<br>            backend:<br>              service:<br>                name: n8n-service<br>                port:<br>                  number: 80</pre><pre>kubectl apply -f n8n-ingress.yaml</pre><h4>🔧 <strong>PHASE 14 — Verify Health</strong></h4><p>✅ Verify pods:</p><pre>kubectl get pods -n n8n</pre><p>✅ Verify Ingress:</p><pre>kubectl get ingress -n n8n</pre><p>✅ Verify endpoints:</p><pre>kubectl get endpoints n8n-service -n n8n</pre><p>✅ Verify TLS:</p><pre>kubectl get certificates -n n8n</pre><p>✅ ✅ ✅<br> 🚀 After this, visit:</p><pre>https://n8n.yourDomainName.com</pre><p>You will see your full production n8n instance working.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6df4ee158066" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Confirm your Firebase SHA1 and SHA256 key]]></title>
            <link>https://medium.com/@aiehco/how-to-confirm-your-firebase-sha1-and-sha256-key-ad8634fa469e?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad8634fa469e</guid>
            <category><![CDATA[google-sign-in]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[reactnativeappdevelopment]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 15:22:32 GMT</pubDate>
            <atom:updated>2023-03-03T02:05:04.982Z</atom:updated>
            <content:encoded><![CDATA[<p>While testing the Google Sign and dynamic link on my app, I needed to confirm the value of <strong><em>SHA1</em></strong> and <strong><em>SHA256</em></strong> as part of the troubleshooting step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4El1j-KbQ6NqZuXMzcr18Q.jpeg" /></figure><p>The Google Sign was working fine in iOS. The issue was mainly the android app, and the only thinking I can think of is that the SHA1 or SHA256 might need to be corrected. So, if you are running into the same scenario, follow the steps below to see if your project&#39;s SHA1 and SHA256 files are the same as those on your firebase project.</p><h4>Confirm the SHA1 and SHA256 on firebase.</h4><p>Open your firebase project settings and navigate to your android app, and you should see the SHA1 and SHA256 being used. Follow the steps in the screenshot below to find the SHA1 and SHA256 values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uiU4FMs-jJCDm9FYJ_AoXg.jpeg" /><figcaption>SHA1 and SHA256 on Firebase Android App</figcaption></figure><h4>Confirm SHA1 and SHA256 values on the project.</h4><p>Choose any terminal and navigate to your android folder inside your react native project. For that folder, execute the following command.</p><pre><br>// {REPLACE_WITH_YOUR_PASSWORD} - replace it with your password.<br><br>keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass {REPLACE_WITH_YOUR_PASSWORD} -keypass {REPLACE_WITH_YOUR_PASSWORD}<br></pre><p>Once execute the command, you should be able to see. As a result, the value of SHA1 and SHA256 on the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QkTRsmtB0wj-tttwcAv5nA.jpeg" /><figcaption>SHA1 and SHA256 Value from Terminal</figcaption></figure><p><strong>For Support or if you have any questions, please reach out.</strong></p><p>If you have questions or need help, reach out — info@jaalves.com.</p><p><strong>Collaboration</strong>:</p><p>DM on Instagram : <a href="https://www.instagram.com/jaa.consulting/">https://www.instagram.com/jaa.consulting/</a></p><p>DM on Facebook: <a href="https://www.facebook.com/Jaa.Consulting.Official">https://www.facebook.com/Jaa.Consulting.Official</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad8634fa469e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Dynamics Links — Configuration]]></title>
            <link>https://medium.com/@aiehco/firebase-dynamics-links-configuration-c324b95817ce?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c324b95817ce</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[firebasedynamiclinks]]></category>
            <category><![CDATA[deeplink]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 02:36:44 GMT</pubDate>
            <atom:updated>2023-02-20T21:42:27.926Z</atom:updated>
            <content:encoded><![CDATA[<h3>Firebase Dynamics Links — Configuration</h3><p>I am creating this post within context to support some posts where I spoke about Deep Linking. After setting up Deep Link for my iOS and Android apps, I looked into options for creating links I can share through social media that can be handled by those apps even when they are not installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*khSIIV8-O756c6w9TKk_hg.jpeg" /></figure><p>If you haven’t yet set up Deep Link for your app, please check out these posts:</p><blockquote><a href="https://medium.com/@j.a.alves/deep-linking-react-navigation-setup-for-android-b2b798cf93ef">Deep Linking — Setup for Android</a></blockquote><blockquote><a href="https://medium.com/@j.a.alves/deep-linking-react-navigation-setup-for-ios-667df8903792">Deep Linking — Setup for iOS</a></blockquote><blockquote><a href="https://medium.com/@j.a.alves/configure-deeplinking-with-react-navigation-1d0ca74efe8d">Configure DeepLinking with React Navigation</a></blockquote><p>Firebase Dynamic link allows you to create a link configured to have different behavior based on where the user opens it. You can configure what should happen when the user clicks on the Firebase Dynamic link for each app, iOS, Android, or web. Most important, even when the user does not have the app installed, it will ask them to install the app and still be able to retrieve information passed through the dynamic link.</p><h4>Installation</h4><p>If you still need to set up the react-native-firebase module on your project, please follow the instructions on this <a href="https://rnfirebase.io/">link</a>. Then, follow the instruction below to install Firebase Dynamic links.</p><p><em>The Firebase Dynamic link also requires the @react-native-firebase/analytics module to be set up and installed. View the </em><a href="https://rnfirebase.io/analytics/usage"><em>Getting Started</em></a><em> documentation to install the &quot;analytics&quot; module.</em></p><pre># Install &amp; setup the app module<br>yarn add @react-native-firebase/app<br><br># Install the dynamic-links module<br>yarn add @react-native-firebase/dynamic-links<br><br># If you&#39;re developing your app using iOS, run this command<br>cd ios/ &amp;&amp; pod install</pre><h4>Create Dynamic Link</h4><p>I will not cover how to create a project in firebase, and I recommend reading some documentation about it to get yourself comfortable with firebase. Open the Dynamic link tab and configure a new domain to your app. For my case, I have created one for <em>https://businessNameDev.page.link</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GRRk3dfhGG2P0pNl3H_NOw.jpeg" /><figcaption>Enable Dynamic Link on your Firebase Project</figcaption></figure><p>Before setting up the Firebase Dynamic link, ensure your iOS and Android app is ready and set up to use the Firebase Dynamic link.</p><blockquote><a href="https://medium.com/@j.a.alves/firebase-dynamic-link-ios-configuration-1b85219ae77f">Firebase Dynamic Link — iOS Configuration</a></blockquote><blockquote><a href="https://medium.com/@j.a.alves/firebase-dynamic-link-android-setup-3da9e0664797">Firebase Dynamic Link — Android Configuration</a></blockquote><p>First, you will create a Deep Link, which can be random because it’s just the URL that can be shared. For my example, I created the following dynamic link — <a href="https://jlrdev.page.link/jrlRequest"><em>https://</em></a><em>businessNameDev</em><a href="https://jlrdev.page.link/jrlRequest"><em>.page.link/jrlRequest</em></a><em>.</em></p><p>When populating the Deep Link URL field, use the same URL you used when following the instructions for RNFirebase. The Deep Link URL matters because it is where you want to deep-link to in the app. The suffix of this URL will be where we want to deep-link to in the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*VhYNOUZxuaKYVmRvv6So9w.jpeg" /><figcaption>Deep Link — request</figcaption></figure><p>Steps 3 and 4 are similar. In this section, you can check that you want to open the Android and iOS versions of the app. After this, you can go through the last section of the deep link creation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*ifuKB09hD73OF2t8aIAfOg.jpeg" /><figcaption>Install the App when Open Dynamic Link</figcaption></figure><h3>Connecting Firebase Dynamic Links with React Navigation</h3><p>We’ve all been waiting for the moment: we are finally connecting Dynamic Links and React-Navigation! The first thing we need to do is import Dynamic Links in our file containing the linking configuration. Then, we will detect the incoming deep linking and update the getInitialURL, as shown below.</p><pre>async getInitialURL() {<br>    // Check if app was open by deep linking<br>    const url = await Linking.getInitialURL();<br>  <br>    // Check if deep linking comes from Firebase Dynamic link<br>    const dynamicLinkUrl = await dynamicLinks().getInitialLink();<br>  <br>    if (dynamicLinkUrl) {<br>      return dynamicLinkUrl.url;<br>    }<br>  <br>    // No Firebase Dynamic Deep Linking; check the custom URI-Scheme link.<br>    if (url !== null) {<br>      return url;<br>    }<br>    return &#39;jlrecharge://home&#39;;<br>},</pre><p>Now, we need to handle receiving deep links while the app is open by subscribing to the Firebase Dynamic link handler.</p><pre>subscriber(listener) {<br>    // First, you may want to do default deep link handling<br>    const onReceiveURL = ({url}) =&gt; listener(url);<br>    Linking.addEventListener(&#39;url&#39;, onReceiveURL);<br><br>    // Listen from incoming links from Deep Linking<br>    const handleDynamicLink = dynamicLink =&gt; {<br>      listener(dynamicLink.url);<br>    };<br>    const unsubscribeToDynamicLinks = dynamicLinks().onLink(handleDynamicLink);<br><br>    return () =&gt; {<br>      unsubscribeToDynamicLinks();<br>      Linking.removeAllListeners(&#39;url&#39;, onReceiveURL);<br>    };<br>  },</pre><p>Having everything put together, your deep link scheme config should look like these.</p><pre>import dynamicLinks from &#39;@react-native-firebase/dynamic-links&#39;;<br>import {Linking} from &#39;react-native&#39;;<br>import {REQUEST_SCREEN} from &#39;./routerNames&#39;;<br><br>export const linking = {<br>  prefixes: [&#39;jlrecharge://&#39;, &#39;https://jlrecharge.com&#39;],<br><br>  async getInitialURL() {<br>    // Check if app was open by deeplinking<br>    const url = await Linking.getInitialURL();<br><br>    console.log(&#39;Open the App from Deep Linking:&#39;, url);<br><br>    const dynamicLinkUrl = await dynamicLinks().getInitialLink();<br><br>    if (dynamicLinkUrl) {<br>      console.log(&#39;Open the App from dynamicLinkUrl:&#39;, dynamicLinkUrl);<br>      return dynamicLinkUrl.url;<br>    }<br>    if (url !== null) {<br>      return url;<br>    }<br>    return &#39;jlrecharge://home&#39;;<br>  },<br><br>  subscriber(listener) {<br>    // First, you may want to do default deep link handling<br>    const onReceiveURL = ({url}) =&gt; listener(url);<br>    Linking.addEventListener(&#39;url&#39;, onReceiveURL);<br><br>    // Listen from incoming links from Deep Linking<br>    const handleDynamicLink = dynamicLink =&gt; {<br>      listener(dynamicLink.url);<br>    };<br>    const unsubscribeToDynamicLinks = dynamicLinks().onLink(handleDynamicLink);<br><br>    return () =&gt; {<br>      unsubscribeToDynamicLinks();<br>      Linking.removeAllListeners(&#39;url&#39;, onReceiveURL);<br>    };<br>  },<br><br>  config: {<br>    screens: {<br>      [REQUEST_SCREEN]: {<br>        path: REQUEST_SCREEN,<br>      },<br>    },<br>  },<br>};</pre><h4>TEST &amp; Validation</h4><p>Finally, to test, copy and paste the link provided by the Firebase Console and place it in the notes app. When you tap this link in the notes app on your phone, it opens the app to the request screen.</p><p>PLEASE, you need to run these tests on real devices. It does not work efficiently on the simulator.</p><p><strong>or Support or if you have any questions, please reach out.</strong></p><p>If you have questions or need help, reach out — info@jaalves.com.</p><p><strong>Collaboration</strong>:</p><p>DM on Instagram : <a href="https://www.instagram.com/jaa.consulting/">https://www.instagram.com/jaa.consulting/</a></p><p>DM on Facebook: <a href="https://www.facebook.com/Jaa.Consulting.Official">https://www.facebook.com/Jaa.Consulting.Official</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c324b95817ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Dynamic Link — Android Setup]]></title>
            <link>https://medium.com/@aiehco/firebase-dynamic-link-android-setup-3da9e0664797?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3da9e0664797</guid>
            <category><![CDATA[firebasedynamiclinks]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[deeplink]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[reactnativeappdevelopment]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 02:36:05 GMT</pubDate>
            <atom:updated>2023-02-20T02:48:43.437Z</atom:updated>
            <content:encoded><![CDATA[<h3>Firebase Dynamic Link — Android Setup</h3><p>Create an SHA-256 fingerprint using these <a href="https://developers.google.com/android/guides/client-auth">instructions</a> for your app, and add it to your app in your Firebase console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhnsU02aNu83dxhazVkIUg.jpeg" /><figcaption>Firebase Dynamic Link — Android Configuration</figcaption></figure><p><a href="https://businessnamedev.page.link/"><em>https://businessNameDev.page.link</em></a>/.well-known/assetlinks.json</p><p>Test the domain you created in your Firebase console (<a href="https://medium.com/@j.a.alves/firebase-dynamics-links-configuration-c324b95817ce">Firebase Dynamic Link — Configuration</a>). Go to the following location in your browser [your-domain]/.well-known/assetlinks.json.</p><p><a href="https://businessnamedev.page.link/"><em>https://businessNameDev.page.link</em></a>/.well-known/assetlinks.json</p><p>The response will have a target object containing a package_name which ought to have your app&#39;s package name. Please only proceed once you see this; registering may take a while.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2wMgNaYKeoauE7H9Qi4-Sg.jpeg" /><figcaption>Android Association Details</figcaption></figure><p>Add your domains to the android/app/src/main/AndroidManifest.xml so that your app knows what links to open in the app. Refer to <a href="https://firebase.google.com/docs/dynamic-links/android/receive#add-an-intent-filter-for-deep-links">the official docs</a> for example code.</p><p><strong>For Support or if you have any questions, please reach out.</strong></p><p>If you have questions or need help, reach out — info@jaalves.com.</p><p><strong>Collaboration</strong>:</p><p>DM on Instagram : <a href="https://www.instagram.com/jaa.consulting/">https://www.instagram.com/jaa.consulting/</a></p><p>DM on Facebook: <a href="https://www.facebook.com/Jaa.Consulting.Official">https://www.facebook.com/Jaa.Consulting.Official</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3da9e0664797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Dynamic Link — iOS Configuration]]></title>
            <link>https://medium.com/@aiehco/firebase-dynamic-link-ios-configuration-1b85219ae77f?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b85219ae77f</guid>
            <category><![CDATA[association-domain]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[firebasedynamiclinks]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 01:28:14 GMT</pubDate>
            <atom:updated>2023-02-20T20:36:15.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>Firebase Dynamic Link — iOS Configuration</h3><p>Below you start to set up the Firebase Dynamic link; ensure you have configured your iOS app and are ready to work with the Firebase Dynamic link. The rest of this document will walk you through how to do it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzcTFFMP64S7wS8K0KveWw.jpeg" /></figure><h4>Setup iOS project on Firebase</h4><p>Now, You have to add your iOS app to the firebase project to be available on the Dynamic link when setting up what happens when a user opens the dynamic link on iOS. Follow the highlight option on the screenshot below; you start by opening the <strong><em>Project Settings </em></strong>and clicking<strong><em> Add App </em></strong>from the top right corner. Have the following information ready to populate your app: <strong><em>Bundle ID</em></strong>, <strong><em>App Store ID</em></strong>, and <strong><em>Team ID</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjskUU-8XW6YpW3WeOH0Xw.jpeg" /><figcaption>Add iOS App to Firebase project.</figcaption></figure><h4>Validate the Dynamic link to confirm the iOS app.</h4><blockquote>Note: Enable the Firebase Dynamic link to confirm this step.</blockquote><p>Now we can test your Firebase Dynamic link that we set up on the first step (<a href="https://medium.com/@j.a.alves/firebase-dynamics-links-configuration-c324b95817ce">Firebase Dynamic Link — Configuration</a>). Let’s open our associate link on the browser. For my case, here is the full link to the test: <a href="https://businessnamedev.page.link/apple-app-site-association."><em>https://businessNameDev.page.link/apple-app-site-association.</em></a><em> </em>If everything works fine, you will have a response with a <strong><em>details</em></strong> array property containing an object with the property <strong><em>appID</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*r96XqRDoT7ZNsNKopsoYNA.jpeg" /><figcaption>Association Metadata</figcaption></figure><h4>Enable Association Domain capability on Provisioning Profile</h4><p>As we have confirmed that our domain is registered, you need to head over to your apple developer console and create a provisioning profile for your app. We must enable the <strong><em>Associate Domain</em></strong> capability, which we should check before proceeding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rWyHwu8cLJ7B7rpn9W7wJA.jpeg" /><figcaption>Add Association Domains to Provisioning Profile.</figcaption></figure><p>NOTE: When updating the provisioning profile, either add/remove capability will invalidate it, then you need to download and install it so your Xcode can use it again.</p><h4>Add Association Capability to your Xcode project.</h4><p>Open your project in Xcode and open your app under the TARGETS header. Click the Signing &amp; Capabilities tab. You must ensure your Team is registered and your Provisioning Profile field is completed. Please add the domain you created in your Firebase console to the Associated Domains and prefix it with <strong><em>applinks</em></strong>:</p><p>You can add as many association domains as you have configured for your project. Since my URI Scheme, I have already configured its <strong><em>jlrecharge, </em></strong>and my dynamic link is<strong><em> </em></strong><a href="https://businessnamedev.page.link/apple-app-site-association."><em>https://businessNameDev.page.link</em></a> so that the Association Domain value would be:</p><pre>// Association Domain: uri-scheme: dynamic link<br>applinks:businessNameDev.page.link</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rG4FosxLx09LuI64EvAd5A.jpeg" /><figcaption>App Links on Association Domains</figcaption></figure><h4>Add Apple Bundle ID to URL Types</h4><p>Then next, go ahead and add new URL Types based on your bundle ID. So, Click the Info tab, and add a URL Type to your project. The Identifier can be called Bundle Id or whatever you wish. Add your bundle identifier to the URL Schemes property.</p><p><strong>For Support or if you have any questions, please reach out.</strong></p><p>If you have questions or need help, reach out — info@jaalves.com.</p><p><strong>Collaboration</strong>:</p><p>DM on Instagram : <a href="https://www.instagram.com/jaa.consulting/">https://www.instagram.com/jaa.consulting/</a></p><p>DM on Facebook: <a href="https://www.facebook.com/Jaa.Consulting.Official">https://www.facebook.com/Jaa.Consulting.Official</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b85219ae77f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure DeepLinking with React Navigation]]></title>
            <link>https://medium.com/@aiehco/configure-deeplinking-with-react-navigation-1d0ca74efe8d?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d0ca74efe8d</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-navigation-6]]></category>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[deeplink]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 21:14:37 GMT</pubDate>
            <atom:updated>2023-02-20T02:26:14.932Z</atom:updated>
            <content:encoded><![CDATA[<p>You can handle the Deep Linking by using the linking library available on react-native out-of-the-box; however, it’s a little complex task and so many edge cases to take. As you might already use React Navigation, it would be straightforward to rely on React Navigation to handle your DeepLinking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4RhMVgmw_dX7z05w-5uzw.jpeg" /></figure><p>First, you must configure your DeepLinking for iOS and Android App before configuring the DeepLink Schema to work with React Navigation.</p><h4><a href="https://medium.com/@j.a.alves/deep-linking-react-navigation-setup-for-android-b2b798cf93ef">Deep Linking — Setup for Android</a></h4><h4><a href="https://medium.com/@j.a.alves/deep-linking-react-navigation-setup-for-ios-667df8903792">Deep Linking — Setup for iOS</a></h4><p>Below I will walk you through how to configure your DeepLinking using React Navigation. You will create a plugin to pass to React Navigation through the linking property.</p><h4>Configure the Prefix</h4><p>The prefixes are the schema url we must choose when setting deep linking for iOS and Android apps.</p><pre>prefixes: [&#39;jlrecharge://&#39;, &#39;https://jlrecharge.com&#39;],</pre><h4>Configure the Get Initial URL function</h4><p>The function is that when you open the app, it will retrieve the initial url and redirect to the screen associated with deep linking. This function takes a deep link and returns the deep link path to the schema. The url passed into <em>getInitialUrl</em> is the one that opens the app. In our case, it should look like this:</p><pre>async getInitialURL() {<br>    const url = await Linking.getInitialURL();<br>    if (url !== null) {<br>      return url;<br>    }<br>    return &#39;jlrecharge://home&#39;;<br>  },</pre><h4>Configure the Subscribe function.</h4><p>The <em>subscribe</em> function listens for urls while the app is active and deep links the user:</p><pre>subscriber(listener) {<br>    const onReceiveURL = ({url}) =&gt; listner(url);<br><br>    Linking.addEventListener(&#39;url&#39;, onReceiveURL);<br><br>    return () =&gt; {<br>      Linking.removeAllListeners(&#39;url&#39;, onReceiveURL);<br>    };<br>  },</pre><h4>Config Mapping between DeepLinking and Screen</h4><p>The config states where each link should go in the app. The key in each case is the string we want to redirect to. The value is the path that turns there. In our case, it should look like this:</p><pre>// file route names:<br>export const REQUEST_SCREEN = &#39;request&#39;;<br><br>config: {<br>    screens: {<br>      [REQUEST_SCREEN]: {<br>        path: REQUEST_SCREEN,<br>      },<br>    },<br>  },</pre><p>Then the complete linking schema for DeepLinking would be the following.</p><pre>import {Linking} from &#39;react-native&#39;;<br>import {REQUEST_SCREEN} from &#39;./routerNames&#39;;<br><br>export const linking = {<br>  prefixes: [&#39;jlrecharge://&#39;, &#39;https://jlrecharge.com&#39;],<br><br>  async getInitialURL() {<br>    const url = await Linking.getInitialURL();<br>    if (url !== null) {<br>      return url;<br>    }<br>    return &#39;jlrecharge://home&#39;;<br>  },<br><br>  subscriber(listner) {<br>    const onReceiveURL = ({url}) =&gt; listner(url);<br><br>    Linking.addEventListener(&#39;url&#39;, onReceiveURL);<br><br>    return () =&gt; {<br>      Linking.removeAllListeners(&#39;url&#39;, onReceiveURL);<br>    };<br>  },<br><br>  config: {<br>    screens: {<br>      [REQUEST_SCREEN]: {<br>        path: REQUEST_SCREEN,<br>      },<br>    },<br>  },<br>};</pre><h4>Connecting DeepLinking Schema to React Navigation</h4><p>Below is how to pass the deep linking schema to React Navigation.</p><pre><br>// import deep linkshema<br>import {linking} from &#39;./deepLinkSchema&#39;;<br><br>return (<br>    &lt;NavigationContainer linking={linking}&gt;<br>      {isAuthenticated ? &lt;DrawerAppRoutters /&gt; : &lt;OnboardingRouters /&gt;}<br>    &lt;/NavigationContainer&gt;<br>  );</pre><h4>Validation &amp; Test</h4><p>Close your app and then run the command below.</p><pre>npx uri-scheme open &quot;jlrecharge://request&quot; --ios</pre><p>You should be taken directly to the request screen.</p><p><strong>For Support or if you have any questions, please reach out.</strong></p><p>If you have questions or need help, reach out — info@jaalves.com.</p><p><strong>Collaboration</strong>:</p><p>DM on Instagram : <a href="https://www.instagram.com/jaa.consulting/">https://www.instagram.com/jaa.consulting/</a></p><p>DM on Facebook: <a href="https://www.facebook.com/Jaa.Consulting.Official">https://www.facebook.com/Jaa.Consulting.Official</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d0ca74efe8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Linking & React Navigation — Setup for Android]]></title>
            <link>https://medium.com/@aiehco/deep-linking-react-navigation-setup-for-android-b2b798cf93ef?source=rss-dfa002f2368a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2b798cf93ef</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[deeplink]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[react-navigation]]></category>
            <dc:creator><![CDATA[AIEcho]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 05:55:57 GMT</pubDate>
            <atom:updated>2023-02-19T23:42:22.489Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deep Linking — Setup for Android</h3><p>This Part is for setting up DeepLink, this time for Android. I have written a post on how to set up Deep Link on iOS, and you can find the page <a href="https://medium.com/@j.a.alves/deep-linking-react-navigation-setup-for-ios-667df8903792.">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1ZUP2TMjS3jOh6EAfCB-Q.jpeg" /></figure><p>Setting up a deep link on android is very simple; you can do it manually or through the command.</p><h4>Setup using command</h4><p>To configure the external linking in Android, you can create a new intent in the manifest. The easiest way to do this is with the uri-scheme package:</p><pre>npx uri-scheme add jlrecharge --android<br><br>RESULTED:<br>jalves@Justimianos-MacBook-Pro jlrecharge % npx uri-scheme add jlrecharge --android<br>› Android: Added URI protocol &quot;jlrecharge&quot; to project<br>jalves@Justimianos-MacBook-Pro jlrecharge %</pre><h4>Setup Manually</h4><p>If you want to add it manually, open up SimpleApp/android/app/src/main/AndroidManifest.xml, and make the following adjustments:</p><ol><li>Set launchMode of MainActivity to singleTask to receive intent on existing MainActivity (this is the default, so you may not need actually to change anything).</li><li>Add the new <a href="http://developer.android.com/training/app-indexing/deep-linking.html#adding-filters">intent-filter</a> inside the MainActivity entry with a VIEW type action:</li></ol><pre>  &lt;activity <br>    android:name=&quot;.MainActivity&quot; <br>    android:label=&quot;@string/app_name&quot; <br>    android:configChanges=&quot;keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode&quot; <br>    android:launchMode=&quot;singleTask&quot; <br>    android:windowSoftInputMode=&quot;adjustResize&quot; <br>    android:exported=&quot;true&quot;&gt;<br>      &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;<br>        &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;<br>      &lt;/intent-filter&gt;<br>      &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.VIEW&quot;/&gt;<br>        &lt;category android:name=&quot;android.intent.category.DEFAULT&quot;/&gt;<br>        &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot;/&gt;<br>        &lt;data android:scheme=&quot;jlrecharge&quot;/&gt;<br>      &lt;/intent-filter&gt;<br>    &lt;/activity&gt;<br></pre><h4>Validate the Deep Linking</h4><p>The adb command can be used as follows to test deep links with the Android emulator or a connected device:</p><pre>adb shell am start -W -a android.intent.action.VIEW -d [your deep link] [your android package name]</pre><p>For example:</p><pre>adb shell am start -W -a android.intent.action.VIEW -d &quot;jlrecharge://home&quot; com.jlrecharge.dev</pre><p><strong>For Support or if you have any questions, please reach out.</strong></p><p>If you have questions or need help, reach out — info@jaalves.com.</p><p><strong>Collaboration</strong>:</p><p>DM on Instagram : <a href="https://www.instagram.com/jaa.consulting/">https://www.instagram.com/jaa.consulting/</a></p><p>DM on Facebook: <a href="https://www.facebook.com/Jaa.Consulting.Official">https://www.facebook.com/Jaa.Consulting.Official</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2b798cf93ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>