Attribute application@allowBackup value=(false) from AndroidManifest.xml is also present at [:barcodescanner:] AndroidManifest.xml value=(true)

You have to tell the compiler to ignore the attribute from the external library. The way to do that is to add this line in application tag: tools:replace=”android:allowBackup” PS: To access the tools add xmlns:tools=”http://schemas.android.com/tools” in the manifest tag at the top.

Ionic iOS build fails, error archive not found

Currently cordova-ios is not compatible with Xcode 10 You can try to disable the new build system that Xcode 10 uses and use the old one by adding this to your build.json file “buildFlag”: [ “-UseModernBuildSystem=0″ ] or adding –buildFlag=”-UseModernBuildSystem=0″ to the build command The full command should be cordova build ios –buildFlag=”-UseModernBuildSystem=0″. Or for … Read more

how to check app running in foreground or background in ionic/cordova/phonegap

Use the two Events “Pause” and “Resume“. You will find all Events here in the Apache Cordova Events Documentation. Event – Pause: The pause event fires when the native platform puts the application into the background, typically when the user switches to a different application. Event – Resume The resume event fires when the native … Read more

How to get device width and height in Ionic using TypeScript?

You can use the Platform information for this. Internally the platform uses the window.innerWidth and window.innerHeight but Using this method is preferred since the dimension is a cached value, which reduces the chance of multiple and expensive DOM reads. Ionic 4/5 Docs: https://ionicframework.com/docs/angular/platform#width-number import { Component } from ‘@angular/core’; import { Platform } from ‘@ionic/angular’; … Read more

Problem with play-services-measurement-base on ionic

No solutions posted here worked for me. A wonderful person opened a pull request in the cordova-firebase-plugin official repo and it works. Steps I did: 1 – Remove cordova-firebase-plugin with ionic cordova plugin remove cordova-plugin-firebase 2 – Install: ionic cordova plugin add cordova-plugin-firebasex 3 – rm -rf node_modules/ plugins/ platforms/android package-lock.json 4 – ionic cordova … Read more