Category : angular

Some Android devices gives me the following error when trying to access my backend server: CORS Access to XMLHttpRequest at ‘XXXXXX’ from origin ‘ionic://’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header has a value ‘ionic://’ that is not equal to the supplied origin. As you can see above, the origin is ‘ionic://’ and ..

Read more

Can’t able to install any ionic-native plugins into the app. Error: ./node_modules/@ionic-native/market/ivy_ngcc/ngx/index.js 10:54-61 "export ‘cordova’ was not found in ‘@ionic-native/core’ My package.json "dependencies": { "@angular/common": "~11.2.0", "@angular/core": "~11.2.0", "@angular/fire": "^6.1.4", "@angular/forms": "~11.2.0", "@angular/platform-browser": "~11.2.0", "@angular/platform-browser-dynamic": "~11.2.0", "@angular/router": "~11.2.0", "@capacitor/android": "^2.4.6", "@capacitor/core": "2.4.6", "@ionic-native/core": "^4.20.0", "@ionic-native/device": "^5.31.1", "@ionic-native/firebase-authentication": "^5.31.1", "@ionic-native/market": "^5.31.1", "@ionic-native/splash-screen": "^5.31.1", "@ionic-native/status-bar": "^5.31.1", "@ionic/angular": ..

Read more

if i go to my webapplication on a android device, the keyboard hides the inputfields of my form. Is there a way to avoid that? It is possible to scroll to focused input field, but only on mobile devices? For the webapplication i used angular and primeng. Here is my manifest.xml <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" ..

Read more

I am trying to build a simple functionality using Ionic and background mode plugin, when the application is sent to background after N seconds to bring the application back to foreground. npm i cordova-plugin-background-mode npm install @ionic-native/background-mode app.modules.ts import { IonicModule, IonicRouteStrategy } from ‘@ionic/angular’; import { AppComponent } from ‘./app.component’; import { AppRoutingModule } ..

Read more