<?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 Ionic Angular Development on Medium]]></title>
        <description><![CDATA[Stories by Ionic Angular Development on Medium]]></description>
        <link>https://medium.com/@ionicAngular?source=rss-346abc3241fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Qk8cEgGI-NyF0-1N</url>
            <title>Stories by Ionic Angular Development on Medium</title>
            <link>https://medium.com/@ionicAngular?source=rss-346abc3241fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:21:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ionicAngular/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[Fixing the ERR_INVALID_URL Error in Angular 17 SSR When Using ngx-translate for Server-Side…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">To resolve this error, you should create a custom translation loader to retrieve language files using the system&#x2019;s absolute path instead&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@ionicAngular/fixing-the-err-invalid-url-error-in-angular-17-ssr-when-using-ngx-translate-for-server-side-24453cbcb964?source=rss-346abc3241fc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@ionicAngular/fixing-the-err-invalid-url-error-in-angular-17-ssr-when-using-ngx-translate-for-server-side-24453cbcb964?source=rss-346abc3241fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/24453cbcb964</guid>
            <category><![CDATA[ngx-translate]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[server-side-rendering]]></category>
            <category><![CDATA[angular-17]]></category>
            <category><![CDATA[ionic]]></category>
            <dc:creator><![CDATA[Ionic Angular Development]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 08:16:48 GMT</pubDate>
            <atom:updated>2024-07-02T08:16:48.436Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Adding SSR support to Ionic 7 and Angular 17]]></title>
            <link>https://medium.com/@ionicAngular/adding-ssr-support-to-ionic-7-and-angular-17-4c84e9b4039e?source=rss-346abc3241fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c84e9b4039e</guid>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[ionic-7]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[server-side-rendering]]></category>
            <dc:creator><![CDATA[Ionic Angular Development]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 19:08:23 GMT</pubDate>
            <atom:updated>2024-07-02T17:57:55.249Z</atom:updated>
            <content:encoded><![CDATA[<p>Before starting, make sure your project is not a standalone project</p><h3>1.Install @angular/ssr and @ionic/angular-server</h3><blockquote>Open terminal and goto the path of project root. Input the following command for installing @angular/localize</blockquote><pre>ng add @angular/ssr</pre><p>This command will prompt you as follows and ask whether you want to continue installing @angular/ssr, which is compatible with your version of Angular. Anyway, don’t rush into entering ‘Y’ to continue the process.”</p><pre>✔ Found compatible package version: @angular/ssr@17.3.5.<br>✔ Package information loaded.<br><br>The package @angular/ssr@17.3.5 will be installed and executed.<br>Would you like to proceed? (Y/n) </pre><p>Before continuing with the process to install @angular/ssr, you should check and upgrade @angular/cli and other related packages to version 17.3.5 to ensure they match the suggested version for @angular/ssr.</p><h3>2. Import provideHttpClient</h3><p>Add the following code to app.module.ts.</p><pre>import { provideHttpClient, withFetch } from &#39;@angular/common/http&#39;;//Add this line</pre><pre>@NgModule({<br>  providers: [<br>    provideHttpClient(withFetch()), //Add this line<br>    ....,<br>    ....<br>  ]<br>})</pre><pre>export class AppModule {}</pre><h3>3. Disable Hydration</h3><p>Unfortunately, the @angular/ssr module in Angular v17 does not support web components, and there are many unresolved issues with Hydration. We need to disable Hydration by commenting out or removing provideClientHydration() in app.module.ts. Although this means losing the benefits of Hydration, we can still enjoy the SEO advantages provided by Server-Side Rendering (SSR).</p><pre>@NgModule({<br>  providers: [<br>    ...., <br>    ....,<br>    //provideClientHydration()<br>  ]<br>})<br>export class AppModule {}</pre><h3>4. Run SSR for the first time</h3><p>After @angular/ssr has been successfully installed, you can run the following command to start building your SSR project in development mode:</p><pre>npm run dev:ssr</pre><p>If your project is not a blank project, there might be some errors. You should fix those issues first. Below, I provide some tips to fix errors when running the build command.</p><ul><li>You should remove any plugins that use browser-native commands like ‘window’.</li></ul><h3><strong>5. </strong>Rendering HTML on the server-side</h3><p>After you have solved the issues in the previous step, you should now see your project running successfully in the browser. However, we need to do one more thing to ensure the server returns an HTML page with HTML elements and rendered Ionic components like ion-button.</p><p>Use this command to install @ionic/angular-server@7 in your Ionic 7 project. Please note that you shouldn’t install the latest version of @ionic/angular-server. Otherwise, some Ionic components may not render properly on the server-side.</p><pre>npm i @ionic/angular-server@7 --force<br></pre><p>After the installation is successful, we should now import IonicServerModule into app.module.server.ts as follows.</p><pre>import { NgModule } from &#39;@angular/core&#39;;<br>import { ServerModule } from &#39;@angular/platform-server&#39;;<br><br>import { AppModule } from &#39;./app.module&#39;;<br>import { AppComponent } from &#39;./app.component&#39;;<br>import { IonicServerModule } from &#39;@ionic/angular-server&#39;; //Add this line<br><br>@NgModule({<br>  imports: [<br>    AppModule,<br>    ServerModule,<br>    IonicServerModule //Add this line<br>  ],<br>  bootstrap: [AppComponent],<br>})<br>export class AppServerModule {}</pre><h3><strong>6. Run SSR again</strong></h3><p>Everything should be done now. Build your project again, and you should see the rendered HTML page that is returned from the server on the first load.</p><pre>npm run dev:ssr<br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c84e9b4039e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Ionic 7 app with Angular 17 and implementing Firebase Phone Authentication]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">This article assumes that you have already created an web app in the Firebase console. If you haven&#x2019;t done so yet, you can find many&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@ionicAngular/building-an-ionic-7-app-with-angular-17-and-implementing-firebase-phone-authentication-ac79ce6b183c?source=rss-346abc3241fc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@ionicAngular/building-an-ionic-7-app-with-angular-17-and-implementing-firebase-phone-authentication-ac79ce6b183c?source=rss-346abc3241fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac79ce6b183c</guid>
            <category><![CDATA[ionic-7]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[phone-authentication]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[angular-17]]></category>
            <dc:creator><![CDATA[Ionic Angular Development]]></dc:creator>
            <pubDate>Sat, 23 Mar 2024 17:02:21 GMT</pubDate>
            <atom:updated>2024-10-15T16:57:20.178Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Add Icons and Splash Screens to Your Ionic 7 Application.]]></title>
            <link>https://medium.com/@ionicAngular/%E5%9C%A8%E6%82%A8%E7%9A%84-ionic-7-%E6%87%89%E7%94%A8%E7%A8%8B%E5%BC%8F%E4%B8%AD%E6%B7%BB%E5%8A%A0%E5%9C%96%E7%A4%BA%E5%92%8C%E5%95%9F%E5%8B%95%E7%95%AB%E9%9D%A2%E7%9A%84%E6%96%B9%E6%B3%95-fe301d86b1c7?source=rss-346abc3241fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe301d86b1c7</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[splash-screen]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[icons]]></category>
            <dc:creator><![CDATA[Ionic Angular Development]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 11:05:12 GMT</pubDate>
            <atom:updated>2024-04-25T19:24:03.334Z</atom:updated>
            <content:encoded><![CDATA[<p>Alright, let’s get started! First, we need the Ionic CLI. If you don’t have it installed on your desktop, open your terminal and enter the following command:</p><pre>npm install -g @ionic/cli</pre><p><strong>Creating a Project: </strong>Once the installation is complete, keep your terminal open, navigate to the folder where you want to create your project, and then enter the following command:</p><pre>ionic start myApp blank --type=vue --package-id=io.my.app --capacitor</pre><p>This will create a new blank Ionic/Vue project in the folder named ‘myApp’ and enable Capacitor. Our application name will be ‘myApp’, with the package ID ‘io.my.app’. Of course, you can choose a different name and package ID for your application.</p><p><strong>Plugins to Install: </strong>We need to install the @capacitor/splash-screen and @capacitor/assets plugins. So, navigate to the ‘myApp’ folder and enter the following command:</p><pre>npm install @capacitor/splash-screen</pre><pre>npm install @capacitor/assets</pre><p><strong>Add Android Platform: </strong>Now, let’s add the Android platform by using the following command:</p><pre>ionic cap add android<br>ionic cap sync</pre><p><strong>Creating the Icon:</strong> In the root directory of your project, create an ‘assets’ folder. This is where we will store the app’s icon and splash screen. Ensure that the icon has equal width and height and has a transparent background. Resize this image to 1024x1024 pixels and save it as ‘assets/logo.png’.</p><p><strong>Creating the Splash Screen:</strong> Now, we’re going to do the same to create our splash screen. We need to place our icon in the center of a 2732x2732 pixel canvas and save it as ‘assets/splash.png’.</p><p><strong>Splash Screen Configuration:</strong> Open the capacitor.config.ts file in the root directory and add the following “SplashScreen:” section to the plugins, or replace your entire capacitor.config.ts file with the following code.</p><pre>import { CapacitorConfig } from &#39;@capacitor/cli&#39;;<br><br>const config: CapacitorConfig = {<br>  plugins: {<br>    SplashScreen: {<br>      launchShowDuration: 3000,<br>      launchAutoHide: true,<br>      launchFadeOutDuration: 3000,<br>      backgroundColor: &quot;#ffffffff&quot;,<br>      androidSplashResourceName: &quot;splash&quot;,<br>      androidScaleType: &quot;CENTER_CROP&quot;,<br>      showSpinner: true,<br>      androidSpinnerStyle: &quot;large&quot;,<br>      iosSpinnerStyle: &quot;small&quot;,<br>      spinnerColor: &quot;#999999&quot;,<br>      splashFullScreen: true,<br>      splashImmersive: true,<br>      layoutName: &quot;launch_screen&quot;,<br>      useDialog: true,<br>    },<br>  },<br>};<br><br>export default config;</pre><p>Now that we’ve created our icons and splash screens, it’s time to add them to our project. In the terminal, enter the following command:</p><pre>npx @capacitor/assets generate --iconBackgroundColor &#39;#ffffff&#39; --iconBackgroundColorDark &#39;#ffffff&#39; --splashBackgroundColor &#39;#ffffff&#39; --splashBackgroundColorDark &#39;#ffffff&#39;</pre><p>This will create all the necessary Android formats in the “android/app/src/main/res/drawable” folder. If the project also includes the iOS platform, it will also create the corresponding icons for iOS.</p><p><strong>Creating PWA Icons:</strong> Unfortunately, @capacitor/assets@3.0.4 may have some bugs and may not create the PWA icons correctly. You will need to manually place the icons in the “src/assets/icons” directory.</p><p><strong>Preparing PWA Icons:</strong> Use an image editing tool to create square icons of the following pixel sizes and place them in the “src/assets/icons” directory.</p><p>icon-48.png <br>icon-72.png<br>icon-92.png<br>icon-128.png<br>icon-192.png<br>icon-256.png<br>icon-512.png</p><p><strong>Let’s see the results of what we’ve done! <br></strong>We need a real device connected to our computer via USB. This is important because icons and splash screens might not display correctly on an emulator. But more importantly, the corrective actions we will take later can yield safe results only on a real device. Once you’ve connected your device with a USB cable, enter the following command in the terminal, and select your device when prompted.</p><pre>npx cap sync<br>ionic capacitor run android -l --external</pre><p><strong>To make the launch screen display in full screen:</strong> We need to edit the “android/app/src/main/res/values/styles.xml” file. By modifying the following code</p><pre>&lt;style name=&quot;AppTheme.NoActionBarLaunch&quot; parent=&quot;AppTheme.NoActionBar&quot;&gt;<br>    &lt;item name=&quot;android:background&quot;&gt;@drawable/splash&lt;/item&gt;<br>&lt;/style&gt;</pre><p>to the following</p><pre>&lt;style name=&quot;AppTheme.NoActionBarLaunch&quot; parent=&quot;AppTheme.NoActionBar&quot;&gt;<br>    &lt;item name=&quot;android:background&quot;&gt;@drawable/splash&lt;/item&gt;&lt;item name=&quot;android:windowIsTranslucent&quot;&gt;true&lt;/item&gt;<br>&lt;/style&gt;</pre><p><strong>We have completed all the steps! <br></strong>Now, we can restart our application. Just run the following command, and everything will work</p><pre>npx cap sync<br>ionic capacitor run android -l --external</pre><p><strong>Let’s wrap it up for today!</strong><br>I hope this article was helpful to you. If you have any questions or suggestions, please feel free to contact me. Finally, if you liked this article, please click “Follow” next to my name at the top of this page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe301d86b1c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>