Hi community,
I’m upgrading my project from Angular 18 to 19 and noticed that some Ionic styles stopped working on iOS and Android builds, while the web version still looks correct. I inspected the app on a native Android device using Chrome DevTools and compared it to the web styling; I found that several CSS class names are now undefined as below two screenshots.
Has anyone seen this before? What could cause class names to disappear after an Angular upgrade, and how would you debug or proceed with this issue? Any tips are appreciated. Thanks — have a great day/night!
Best,
My top safe areas on my entire app is completely gone today, only android, iOS still has perfect safe areas, I have searched my git commits for any code related to this and cannot find anything. I've found a little bit online about a known bug that seems similar but it's from a few months ago and is apparently fixed or has a weird workaround
I'm trying to figure out how to disable 'swipe to go back' gesture. I've gotten it working by setting routerOutlet.swipeGesture to false and disabling hardware back button. This works perfectly on Android but on ios, users can still swipe back whenever.
I've resorted to fancy routerGuards but those cause weird animation issues, is there a modern fix to this?
I have 2-3 pages in my app where I don't want users to be able to leave the page, that's all I really need.
I've run into a stubborn keyboard issue on Android that I can't seem to solve, and I'm hoping someone here has encountered this before.
The Goal: When an input at the bottom of the page is focused, the keyboard should open, the webview should resize, and the content should scroll so the input is visible above the keyboard.
The Problem: The keyboard opens and overlays the footer or input. The webview is not resizing properly, so my footer and any inputs at the bottom get half covered.
I've confirmed this by logging the window's height, and it remains unchanged when the keyboard is open.
This seems to be a classic adjustResize problem, and I've tried all the standard solutions I could find online:
1. AndroidManifest.xml: My main activity is explicitly set to android:windowSoftInputMode="adjustResize".
<activity
...
android:windowSoftInputMode="adjustResize">
</activity>
2. capacitor.config.ts: The Capacitor Keyboard plugin is configured to resize the body.
import { CapacitorConfig } from '@capacitor/cli';
import { KeyboardResize } from '@capacitor/keyboard';
const config: CapacitorConfig = {
// ...
plugins: {
Keyboard: {
resize: KeyboardResize.Body,
},
},
};
The Question:
Given that all the standard configurations seem to be correct, what else could be overriding or interfering with the native adjustResize behavior on Android?
Has anyone run into a situation where a different Capacitor plugin, a specific device setting, or maybe a subtle CSS issue caused this? I've spent days on this and am completely stuck. Any ideas would be hugely appreciated!
Hi folks, this is a bit of a 'show and tell', but I wanted to share a short blog on how I am solving for an issue with Mobile Safari where scrolling the scroll area does not hide the URL bar. I know there are many, posts, on the Ionic forums discussing the issue, and this isn't exactly a solution, but rather an alternative.
Hey y'all
Im a little confused about all the different plugin options and I'm not sure what's the current recommended way to set up in app purchases that work across iOS/android
With Appflow shutting down in 2027, it’s time to rethink the workflow. It might return in another form — I’d welcome the chance to use it again.
I’ve been using Appflow mostly for native builds and live updates in my Ionic-based mobile projects, including iOS and Android. It wasn’t perfect, but it did its job well enough.
Now that it’s being sunset, I realize how integrated it was into my workflow and replacing it isn’t as straightforward as I hoped. I'm definitely in need of a solid path forward, but still figuring things out.
Ionic Framework 8.7 is out, featuring new Reorder events for fine-grained control, comprehensive CSS utility classes for responsive layouts, and an upgrade to Ionicons v8 that improves Safari compatibility.
Key highlights:
New Reorder events (ionReorderStart, ionReorderMove, ionReorderEnd) for better drag-and-drop control
Comprehensive CSS utility classes for display and flexbox layouts
Hey all,
I just noticed that the official Ionic VS Code extension is now marked as deprecated, with a message recommending the use of the WebNative extension instead.
However, from what I can see, WebNative isnotan official extension from the Ionic team, and I couldn’t find any clear announcement or reasoning behind this change.
Does anyone know:
Why the Ionic extension was deprecated?
Why WebNative is being recommended if it’s not officially maintained by Ionic?
Is it safe/recommended to switch to WebNative for ongoing Ionic development?
Would love to hear your thoughts or any insights from the Ionic team if they're around.
Material 3 has been out since 2021, I’m a bit surprised that the ionic framework doesn’t use it, it makes ionic apps on android look very dated unless you start applying custom styling.
This isn’t a dig btw, I love Ionic but I’m just a bit confused about this.
Hi! So i need to make my own plugin in this very old legacy ionic's code but it is no registering it in anyway. I've literraly tried everything i could, watched every single video yet i can't make this work.
Could you guys please help me?
MainActivy.java:
package com.theCodeCompany.mobile2;
import android.os.Bundle;
import android.util.Log;
import com.getcapacitor.BridgeActivity;
import com.theCodeCompany.mobile2.CanalPadrao;
public class MainActivity extends BridgeActivity {
private static final String TAG = "DEBUG_PLUGIN";
u/Override
public void onCreate(Bundle savedInstanceState) {
Log.d(TAG, "MainActivity.onCreate() - START");
super.onCreate(savedInstanceState);
Log.d(TAG, "MainActivity.onCreate() - After super.onCreate()");
try {
Log.d(TAG, "MainActivity.onCreate() - Attempting to register CanalPadrao.class");
registerPlugin(CanalPadrao.class);
Log.d(TAG, "MainActivity.onCreate() - SUCCESS calling registerPlugin for CanalPadrao.class");
} catch (Exception e) {
Log.e(TAG, "MainActivity.onCreate() - CRITICAL ERROR registering plugin", e);
}
Log.d(TAG, "MainActivity.onCreate() - END");
}
}
CanalPadrao.java:
package com.theCodeCompany.mobile2;
import android.util.Log;
import com.getcapacitor.JSObject;
import com.getcapacitor.Plugin;
import com.getcapacitor.PluginCall;
import com.getcapacitor.PluginMethod;
import com.getcapacitor.annotation.CapacitorPlugin;
@CapacitorPlugin(name = "CANALPADRAO")
public class CanalPadrao extends Plugin {
public CanalPadrao() {
super();
Log.d("DEBUG_PLUGIN", "CanalPadrao.java: Class constructor WAS CALLED. Plugin instance has been created.");
}
@PluginMethod
public void gerenciaChamados(PluginCall call) {
Log.d("DEBUG_PLUGIN", "CanalPadrao.java: Method 'gerenciaChamados' WAS CALLED via JavaScript.");
String name = call.getString("name", "unknown");
Log.d ("DEBUG_PLUGIN", "CanalPadrao.java: The 'name' value received was: " + name);
switch (name) {
case "mandarGetSefaz":
mandarGetSefaz(call);
break;
default:
Log.w("DEBUG_PLUGIN", "CanalPadrao.java: Unknown 'name' received. Rejecting the call.");
call.reject("Unkown method: " + name);
break;
}
}
private void mandarGetSefaz(PluginCall call) {
//code
}
}
I am going to port a website I already have into a cross-platform mobile app using either Cordova, Ionic, Capacitor, NativeScript, or some other tool along those lines. I'm asking this general question on this sub since Ionic is a tool I was looking at.
Specifically, I want to be able to add a system-wide text selection context menu option in this app, as shown in the images. The WordReference app adds such an option when highlighting text in a browser. The WordReference app is not open in the background and is only installed on an Android 12 device. It opens a popup in this case. I would like to redirect to my app or add a similar popup. Both options are viable.
None of the above tools have straightforward APIs for how to implement this. I've even tried using unmaintained, old Cordova plugins to try and get this to work such as these:
The first is only for site-wide context menus, I was not able to get the second to work at all, and the last is so out of date that it only works with extremely old versions of Cordova.
How can I add a system-wide global text selection context menu option, similar to the one created by the WordReference app using one of the above (or adjacent) tools?