Giter Site home page Giter Site logo

wizpanda / cordova-plugin-firebase-lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arnesson/cordova-plugin-firebase

68.0 68.0 38.0 247.62 MB

This repository is moving & merging to https://github.com/wizpanda/cordova-plugin-firebase-lib to avoid confusion to developers.

Home Page: https://www.wizpanda.com/

License: MIT License

JavaScript 21.00% Java 48.94% Objective-C 27.15% Shell 2.91%
cordova cordova-plugin cordova9 firebase

cordova-plugin-firebase-lib's People

Contributors

aikei avatar andrewlively avatar briantq avatar c4software avatar distinctdan avatar dpa99c avatar erikdju avatar freezyexp avatar ginkgomzd avatar gvieduc avatar hardikinfodesk avatar hardikthakkar3 avatar hilljh82 avatar hirbod avatar jestcastro avatar jonsmart avatar juliocbcotta avatar keyz182 avatar lora-reames avatar m6246 avatar manuelsc avatar markterrill avatar noeldemartin avatar robertarnesson avatar sagrawal31 avatar soumak77 avatar swindex avatar taracque avatar thomas-alrek avatar troystopera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-firebase-lib's Issues

I don't seem to find a way to use this plugin in ionic 4

I Can't use @ionic-native/firebase integration for ionic 4 since the integration looks for the original cordova-plugin-firebase package. I tried using the window object and declaring the name of the plugin globally, but none of them work for me

Any suggestions? Thanks!

These are my dependencies:

Ionic:
   ionic (Ionic CLI)             : 4.10.3 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.2.4
   @ionic/angular-toolkit        : 1.3.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 8.0.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 22 other plugins)

plugins:

    "@ionic-native/firebase": "^4.20.0",
    "cordova-plugin-firebase-lib": "^5.1.1",

Failed to install 'cordova-plugin-firebase-lib': undefined

Describe the bug

im using ionic1, xcode 10.1

after put "cordova platform [email protected]" in terminal

it is shown


Failed to install 'cordova-plugin-firebase-lib': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/Users/ci/.nvm/versions/node/v8.12.0/lib/node_modules/cordova/bin/cordova:29:15)
at
at process._tickCallback (internal/process/next_tick.js:189:7)


it can't set ios platform perpectly.
also build failed in xcode.

Run cordova plugin list to find out what version of cordova-plugin-firebase-lib you are running with

com.ourcodeworld.preventscreenshots 1.0.0 "Our Code World Prevent Screenshots"
com.ourcodeworld.sftpplugin 0.5.0 "Our Code World SFTP Plugin"
com.plugin.inca.keypad.IncaKeypadPlugin 0.0.0 "IncaKeypadPlugin"
com.plugin.insafe.fido.InsafeFidoPlugin 0.0.0 "InsafeFidoPlugin"
com.plugin.xecure.appshield.XecureAppShieldPlugin 0.0.0 "XecureAppShieldPlugin"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-app-event 1.2.0 "Application Events"
cordova-plugin-badge 0.7.2 "Badges"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-dialogs 1.2.1 "Notification"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-firebase-lib 5.1.1 "Google Firebase Plugin"
cordova-plugin-inappbrowser 1.5.1-dev "InAppBrowser"
cordova-plugin-network-information 1.3.0 "Network Information"
cordova-plugin-spinner 1.1.0 "Spinner Plugin"
cordova-plugin-splashscreen 3.2.2 "Splashscreen"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-vibration 2.1.1 "Vibration"
cordova-plugin-whitelist 1.2.2 "Whitelist"
cordova-sqlite-storage 3.2.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
ionic-plugin-keyboard 2.2.1 "Keyboard"

Additional context

Add any other context about the problem here.

Compiling error v4.0.1

Error compiling project (compiles ok before adding this plugin)

To Reproduce

My plugins are:

cordova-plugin-advanced-geolocation 1.1.0 "Cordova Advanced Geolocation Plugin - Android"
cordova-plugin-background-download 0.0.2 "Background Download"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-headsetdetection 3.0.0 "Headset Detection"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-native-spinner 1.1.3 "Native Spinner"
cordova-plugin-purchase 8.1.1 "Purchase"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"

I compile fine with these, then

cordova plugin add cordova-plugin-firebase-lib

Expected behavior

The project fails to compile

Console Logs

`
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.app.INotificationSideChannel

`

Plugin Version

4.0.1

Desktop (please complete the following information):

  • OS: Ubuntu 18.04

Cordova platform add fails with 5.0.0

Describe the bug

If I want to run cordova platform add ios it failes with "Error: pod: Command failed with exit code 31"

Steps to reproduce

Run cordova platform add ios

Console Logs

Failed to install 'cordova-plugin-firebase-lib': Error: pod: Command failed with exit code 31
    at ChildProcess.whenDone (/Users/vsts/agent/2.153.2/work/1/s/packages/app/node_modules/cordova-common/src/superspawn.js:135:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:606:12)

Plugin Version

5.0.0

Using cordova cli 9.0.0

AppStore Connect Warning

Describe the bug

The summited archive to AppStore Connect produced a warning at Apple's automatic validation.

To Reproduce

Steps to reproduce the behavior:

  1. Open Xcode
  2. Click on Product > Archive
  3. Click on Distrubute App and follow the steps

Expected behavior

No warning email should be generated.

Screenshots

App Store Connect

Console Logs (email from Apple)

Dear Developer,

We identified one or more issues with a recent delivery for your app, [...]. Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90381: Too many symbol files - These symbols have no corresponding slice in any binary [04C4B655-CD1C-36E8-963A-C6F34F3D2627.symbols, 61FE3AD3-4673-3B26-8014-8B128447D3E4.symbols, A31BA2D7-4410-34E8-8CAC-2D52394DC154.symbols, B1AFFA43-A569-3896-B995-30BDC8B4B0BE.symbols, C5C00D87-E21D-3EFD-AE48-4686E519431E.symbols].

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.

Best regards,

The App Store Team

Plugin Version

cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-firebase-lib 5.1.0 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"

Desktop (please complete the following information):

  • OS: Mac OS 10.14.5
  • Xcode: 10.2.1
  • Pods: 1.7.2
  • cordova-cli: 9.0.0
  • cordova-ios: 5.0.1

Smartphone (please complete the following information):

None

Additional context

None

Compilation error on v3.3.0 with cordova-android 6.4.0

Describe the bug

We are getting compilation errors when building for Android.

To Reproduce

Steps to reproduce the behavior:

  1. cordova build android
  2. We get a compilation error.

Expected behavior

Build should be successful.

Console Logs

/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/org/apache/cordova/firebase/FirebasePlugin.java:578: error: local variable message is accessed from within inner class; needs to be declared final
                        Exception e = new JavaScriptException(message, stackTrace);
                                                              ^
/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/org/apache/cordova/firebase/FirebasePlugin.java:581: error: local variable message is accessed from within inner class; needs to be declared final
                        Crashlytics.logException(new JavaScriptException(message));
                                                                         ^
/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/org/apache/cordova/firebase/FirebasePlugin.java:585: error: local variable message is accessed from within inner class; needs to be declared final
                    Crashlytics.log("logError errored. Orig error: " + message);
                                                                       ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/com/crypho/plugins/SharedPreferencesHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 30s
40 actionable tasks: 40 executed
Command finished with error code 1: /Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/gradlew cdvBuildDebug,-b,/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
(node:12379) UnhandledPromiseRejectionWarning: Error: /Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/org/apache/cordova/firebase/FirebasePlugin.java:578: error: local variable message is accessed from within inner class; needs to be declared final
                        Exception e = new JavaScriptException(message, stackTrace);
                                                              ^
/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/org/apache/cordova/firebase/FirebasePlugin.java:581: error: local variable message is accessed from within inner class; needs to be declared final
                        Crashlytics.logException(new JavaScriptException(message));
                                                                         ^
/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/org/apache/cordova/firebase/FirebasePlugin.java:585: error: local variable message is accessed from within inner class; needs to be declared final
                    Crashlytics.log("logError errored. Orig error: " + message);
                                                                       ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/src/com/crypho/plugins/SharedPreferencesHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 30s
    at ChildProcess.whenDone (/Users/jonatansouza/projects/tecnico-virtual/front-end/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:557:12)

Plugin Version

3.3.0

Desktop (please complete the following information):

  • OS: MacOS Mojave

iOS fails to build, says API key not valid

Describe the bug
iOS is failing to build for me. Here's the error I'm getting:

2019-06-05 16:31:39.209 uploadDSYM[6583:121355] Fabric.framework/run 1.7.1 (209)
error: Fabric: Configuration Issue

Fabric API key not valid. Your Fabric run script build phase should contain your API key:
./Fabric.framework/run INSERT_YOUR_API_KEY INSERT_YOUR_BUILD_SECRET

However, the firebase docs said that you should put your GoogleService-Info.plist into your app's root directory. This plugin copies it to the Resources folder instead. So, I manually dragged the file to the root directory, and that fixed the build. But, when I dragged it back to the Resources folder, the build continued to work, so I'm not sure why that fixed it.

To Reproduce
Steps to reproduce the behavior:

  1. Install the plugin.
  2. Download GoogleService-Info.plist into my cordova root directory.
  3. Build.

Merge plugin

Is your feature request related to a problem? Please describe.

Ionic users are all using the good old cordova-plugin-firebase Ionic Native firebase

Which is not a good solution as described here: Issue 3038

Your repository and the dpa99's repository are trying to achieve the same thing.

Describe the solution you'd like

Merge both repository would be ideal.

Describe alternatives you've considered

Not merge, and create an ionic native "plugin" with only one repository. This solutions leads to dupplication of solutions and the end of the unchoosen plugin, which is sad as you both seems invested into this plugin.

Additional context

I also posted on dpa99 repo

Plugin not installed

I did the following operations respectively. But I get the plugin not installed.
How can I solve this problem?

ionic cordova platform rm android
cordova plugin remove cordova-plugin-firebase
cordova plugin add cordova-plugin-firebase-lib
ionic cordova plugin add cordova-plugin-androidx
ionic cordova plugin add cordova-plugin-androidx-adapter
ionic cordova run android

Link

hata1

Android notification not working when app is closed

Describe the bug

Push notification not working when app is closed, when in foreground or open it works perfectly, tested in 2 devices (zenfone 5z, moto g5), with the following versioning setups:

cordova: 9.0.0, firebase-plugin: 5.1.1, cordova-android: 8.0.0;

cordova 8.1.2, firebase-plugin: 3.3.0, cordova-android: 7.0.0

Expected behavior

Push notification working when app is closed

Plugin Version

5.1.1 currently

Smartphone :

  • Device: Asus zenfone 5z
  • OS: Android 9.0

Drowning in "NSInvalidArgumentException / updateTraceWithSessionId" errors after publishing app with this plugin

Describe the bug
After installing this plugin I suddenly get LOTS of crashes reported to Firebase Crashlytics. I previously had cordova-plugin-firebase installed, but I believe that plugin doesn't have the Crashlytics SDK included, so I haven't seen anything reported in Crashlytics before. Kinda ironic that Crashlytics shows that Crashlytics is failing :)

Expected behavior
No crashes

Screenshots
Screenshot from Crashlytics:
error_screen

Console Logs

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x1f7ebc518 __exceptionPreprocess
1  libobjc.A.dylib                0x1f70979f8 objc_exception_throw
2  CoreFoundation                 0x1f7e35f8c _CFArgv
3  CoreFoundation                 0x1f7dac40c -[__NSSetM addObject:]
4  WOD Roulette                   0x101697ba4 __36-[FIRTrace updateTraceWithSessionId]_block_invoke
5  libdispatch.dylib              0x1f78fca38 _dispatch_call_block_and_release
6  libdispatch.dylib              0x1f78fd7d4 _dispatch_client_callout
7  libdispatch.dylib              0x1f78a6320 _dispatch_lane_serial_drain$VARIANT$mp
8  libdispatch.dylib              0x1f78a6e3c _dispatch_lane_invoke$VARIANT$mp
9  libdispatch.dylib              0x1f78af4a8 _dispatch_workloop_worker_thread
10 libsystem_pthread.dylib        0x1f7add114 _pthread_wqthread
11 libsystem_pthread.dylib        0x1f7adfcd4 start_wqthread

Plugin Version
cordova-plugin-firebase-lib 3.0.0 "Google Firebase Plugin"

Smartphone (please complete the following information):

  • Device: Several iPhones
  • OS: 12.2 at least

Module 'FirebaseInstanceID' not found

Describe the bug

iOS xcode build is failing due to FirebaseInstanceID is missing.

To Reproduce

Steps to reproduce the behavior:

  1. Installed the plugin, added platform, no errors.
  2. Did pod install & pod update, no efect.
  3. Tried to run the app on iPhone.
  4. Build failed.

Expected behavior

Project should build.

Screenshots

Captura de pantalla 2019-06-25 a las 11 11 21

Console Logs

Module 'FirebaseInstanceID' not found

Plugin Version

call-number 0.0.2 "Cordova Call Number Plugin"
cordova-background-geolocation-lt 3.0.7 "BackgroundGeolocation"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-background-fetch 5.5.0 "CDVBackgroundFetch"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-firebase-lib 5.0.0 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-telerik-imagepicker 2.3.2 "ImagePicker"
cordova-plugin-whitelist 1.3.3 "Whitelist"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

Desktop (please complete the following information):

  • OS: Mac OS 10.14.5
  • Xcode: 10.2.1
  • Pods: 1.7.2

Smartphone (please complete the following information):

Irrelevant

Additional context

No addition context, I guess.

BTW, thanks for your work, seems promising.

Why does this fork exist?

What does this fork provide over the original cordova-plugin-firebase plugin? Shouldn't these two be merged back into one? There's too much to weed through but from a 10,000 foot level they look to be pretty much identical.

ios build fails if 'name' field has cyrillic letters in config.xml

If in config.xml you set the name tag to something like <name>кромид</name>, running cordova build ios will fail with:

ld: framework not found Pods_______

Here's a minimal example:
config.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.gotaguyapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>мојЧоек</name>
    <description>Get things done</description>
    <author email="[email protected]" href="https://mojcoek.mk">The мојЧоек Team</author>
    <content src="index.html" />
    <allow-intent href="https://*/*" />
    <allow-intent href="mailto:*" />
</widget>

package.json:

{
  "name": "com.gotaguyapp",
  "version": "0",
  "displayName": "мојЧоек",
  "cordova": {
    "platforms": [
      "ios"
    ],
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-firebase-lib": {}
    }
  },
  "dependencies": {
    "cordova-ios": "^5.0.1",
    "cordova-plugin-androidx-adapter": "^1.1.0",
    "cordova-plugin-firebase-lib": "^5.1.1"
  },
  "devDependencies": {
    "cordova-plugin-whitelist": "^1.3.3"
  }
}

Remote Config: activateFetched returns null in iOS

Describe the bug

Using remote config activateFetched returns null in iOS but returns true in android

window.FirebasePlugin.fetch(600, () => { window.FirebasePlugin.activateFetched(function (activated) { console.log('Activate fetch result', activated) //Always null on iOS window.FirebasePlugin.getValue(configName, (res) => { console.log("Get value result", res) resolve(res); }, error => { console.log("Get value error ", error); reject(error); }); },error => { console.log('Activate fetch error', error); reject(error); }); },error =>{ console.log('Ferch Error', error) reject(error); });

Plugin Version

"cordova-plugin-firebase-lib": "3.3.0",

Desktop (please complete the following information):

  • OS: iOS

Build issue on Android

cordova-plugin-firebase-lib version: 3.1.0
cordova-android version: 8.0.0
cordova version: 9.0.0

Describe the bug
The build fails (cordova build android)

Here's the output:

BUILD FAILED in 1s
33 actionable tasks: 5 executed, 28 up-to-date
<dir>/platforms/android/gradlew: Command failed with exit code 1 Error output:
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:11: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:9: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
                             ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:17: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:144: error: package NotificationCompat does not exist
            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
                              ^
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:144: error: package NotificationCompat does not exist
            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
                                                                                   ^
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:153: error: cannot find symbol
                    .setPriority(NotificationCompat.PRIORITY_MAX);
                                 ^
  symbol:   variable NotificationCompat
  location: class FirebasePluginMessagingService
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:149: error: package NotificationCompat does not exist
                    .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody))
                                                    ^
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:148: error: cannot find symbol
                    .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
                                   ^
  symbol:   variable NotificationCompat
  location: class FirebasePluginMessagingService
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:119: error: cannot find symbol
        int visibility = channel.optInt(VISIBILITY, NotificationCompat.VISIBILITY_PUBLIC);
                                                    ^
  symbol:   variable NotificationCompat
  location: class FirebasePlugin
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:452: error: cannot find symbol
                    NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);
                    ^
  symbol: class NotificationManagerCompat
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:452: error: cannot find symbol
                    NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);
                                                                          ^
  symbol: variable NotificationManagerCompat
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
11 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Then I added cordova-plugin-android-support-v4 and now I'm getting this:

BUILD FAILED in 1s
33 actionable tasks: 7 executed, 26 up-to-date
<dir>/platforms/android/gradlew: Command failed with exit code 1 Error output:
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:144: error: constructor Builder in class Builder cannot be applied to given types;
            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
                                                             ^
  required: Context
  found: FirebasePluginMessagingService,String
  reason: actual and formal argument lists differ in length
<dir>/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:453: error: cannot find symbol
                    boolean areNotificationsEnabled = notificationManagerCompat.areNotificationsEnabled();
                                                                               ^
  symbol:   method areNotificationsEnabled()
  location: variable notificationManagerCompat of type NotificationManagerCompat
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Strange thing is that I haven't changed anything in the project and it was compiling without issues last week.
Ideas or suggestions more than welcome.

Installing for ios

Installing "cordova-plugin-firebase-lib" for IOS produces warning message:

Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-firebase-lib': CordovaError: Uh oh!
File already exists at destination "/Users/varda/Desktop/Projects/user-portal-cordova/platforms/ios/Смарт-гроші/Resources/GoogleService-Info.plist" for resource file specified by plugin cordova-plugin-firebase-lib in iOS platform
    at install (/Users/varda/Desktop/Projects/user-portal-cordova/platforms/ios/cordova/lib/plugman/pluginHandlers.js:64:23)
    at ActionStack.process (/Users/varda/Desktop/Projects/user-portal-cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/Users/varda/Desktop/Projects/user-portal-cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.addPlugin (/Users/varda/Desktop/Projects/user-portal-cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
    at Api.addPlugin (/Users/varda/Desktop/Projects/user-portal-cordova/platforms/ios/cordova/Api.js:245:10)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:854:54)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:13)
Failed to restore plugin "cordova-plugin-firebase-lib" from config.xml. You might need to try adding it again. Error: Uh oh!

setBadgeNumber blocks the app on startup since iOs 12

Hi !
I have a problem on iOS since iOS 12. The plugin causes an abnormal loading time when startup.

To Reproduce

run the app on ios 12+

run on ios 12 or ios 12.+
Expected behavior
I wish there was no blocking for several seconds

Console Logs

Main Thread Checker: UI API called on a background thread: -[UIApplication setApplicationIconBadgeNumber:]
PID: 17006, TID: 3973410, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 BaseChat 0x0000000100e09f04 __33-[FirebasePlugin setBadgeNumber:]_block_invoke + 104
5 libdispatch.dylib 0x00000001023df1f8 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x00000001023e0778 _dispatch_client_callout + 20
7 libdispatch.dylib 0x00000001023e3720 _dispatch_queue_override_invoke + 912
8 libdispatch.dylib 0x00000001023f1a34 _dispatch_root_queue_drain + 352
9 libdispatch.dylib 0x00000001023f243c _dispatch_worker_thread2 + 144
10 libsystem_pthread.dylib 0x00000001fc078b38 _pthread_wqthread + 468
11 libsystem_pthread.dylib 0x00000001fc07edc4 start_wqthread + 4
2019-07-04 12:56:24.587723+0200 BaseChat[17006:3973410] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setApplicationIconBadgeNumber:]
PID: 17006, TID: 3973410, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 BaseChat 0x0000000100e09f04 __33-[FirebasePlugin setBadgeNumber:]_block_invoke + 104
5 libdispatch.dylib 0x00000001023df1f8 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x00000001023e0778 _dispatch_client_callout + 20
7 libdispatch.dylib 0x00000001023e3720 _dispatch_queue_override_invoke + 912
8 libdispatch.dylib 0x00000001023f1a34 _dispatch_root_queue_drain + 352
9 libdispatch.dylib 0x00000001023f243c _dispatch_worker_thread2 + 144
10 libsystem_pthread.dylib 0x00000001fc078b38 _pthread_wqthread + 468
11 libsystem_pthread.dylib 0x00000001fc07edc4 start_wqthread + 4

Plugin Version
cordova-plugin-firebase-lib 3.3.0

Smartphone (please complete the following information):

Device: iPhone SE | iPhone6 | iPhone6+ IphoneX/XS
OS: iOS 12 | iOS 12.x
Additional context

Error trying to uninstall plugin

Describe the bug

I had installed version 5 of the plugin but I'm using Cordova Android 8.0.
Trying to remove the plugin gave me an error.
I thought I had installed version 4, but I get the same error.

cordova plugin remove cordova-plugin-firebase-lib --save
cordova-android-support-gradle-release: removed Gradle config file: platforms/android/app/cordova-android-support-gradle-release/properties.gradle
cordova-android-support-gradle-release: removed Gradle config file: platforms/android/app/src/main/cordova-android-support-gradle-release/properties.gradle
Uninstalling cordova-plugin-firebase-lib from android
Error during processing of action! Attempting to revert...
(node:7346) UnhandledPromiseRejectionWarning: Error: Uh oh!
ENOENT: no such file or directory, open '/home/dev/Ionic-app/apps/newapp/platforms/android/app/src/main/AndroidManifest.xml'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (/home/dev/Ionic-app/apps/node_modules/cordova-common/src/util/xml-helpers.js:181:36)
at new AndroidManifest (/home/dev/Ionic-app/apps/newapp/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName (/home/dev/Ionic-app/apps/newapp/platforms/android/cordova/lib/AndroidProject.js:92:12)
at AndroidProject.getCustomSubprojectRelativeDir (/home/dev/Ionic-app/apps/newapp/platforms/android/cordova/lib/AndroidProject.js:98:28)
at uninstall (/home/dev/Ionic-app/apps/newapp/platforms/android/cordova/lib/pluginHandlers.js:104:46)
at ActionStack.process (/home/dev/Ionic-app/apps/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/dev/Ionic-app/apps/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.removePlugin (/home/dev/Ionic-app/apps/node_modules/cordova-common/src/PluginManager.js:148:17)
(node:7346) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7346) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

To Reproduce

Set up an ionic app with Cordova 8.0 (just updated to it). Ionic 3.20.1 and new Android 8.0.0 (updated).
Install the cordova-pligin-firebase-lib and remove it.
causes error.

Expected behavior

Not delete the AndroidManafest.xml file when removing the plugin.

Plugin version

I installed the latest and got the error that I was using the wrong version.
Tried to uninstall got the error above. Tried to manually remove any trace and install version 4.
Config.xml had this version.

Cleared plugin folder, removed and added android 8.0 to let it installed the plugins.
But it installed 5.1 again.
Config.xml yes 4.1.0

plugin list says
cordova-plugin-firebase-lib 5.1.1 "Google Firebase Plugin"

Desktop (please complete the following information):

Windows 10
Chrome 72

Smartphone (please complete the following information):

NA

Additional context

The real problem I'm having is getting Google Analytics to show data. Trying to get the versions correct.

Android notification while app is in foreground not calling callback function

On Android when application is in foreground, incoming push notification is not calling callback function which is set by:

window.FirebasePlugin.onNotificationOpen(function (notification) {
        console.log(notification);
      }, function (error) {
        console.log("onNotificationOpen error " + error);
      });

and also not showing notification.
On iOS notification shows and also callback if fired.

In Android native application method onMessageReceived(RemoteMessage remoteMessage) is called when app is in foreground and we can access to incoming notification by calling remoteMessage.getNotification()

Cordova lib should also run callback as in native application when in foreground.

fatal error: 'Firebase.h' file not found during building ios platform

Describe the bug

fatal error: 'Firebase.h' file not found during building ios platform

Hello,

I trying to build the IOS platform but get this fatal error about firebase.h file.

Did you already get this kind of error ?

Thanks

Here is my ionic info :

Ionic:

Ionic CLI : 5.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic1 1.3.1
@ionic/v1-toolkit : 1.0.22

Cordova:

Cordova CLI : 9.0.0 ([email protected])
Cordova Platforms : android 8.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 22 other plugins)

Utility:

cordova-res : 0.3.0 (update available: 0.5.1)
native-run : not installed

System:

Android SDK Tools : 26.1.1 (/Library/Android/sdk/)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v11.9.0 (/usr/local/Cellar/node/11.9.0/bin/node)
npm : 6.5.0
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001

Setting for notifications when app in foreground

Is your feature request related to a problem? Please describe.

On iOS push notifications are shown even when the app is in foreground, while on Android they are not. These different default behaviors make it impossible to create the same look and feel for iOS and Android.

Describe the solution you'd like

There exists a issue (possible even more than one) in ernesson plugin with multiple PRs to solve the problem:

Android build failure

Describe the bug

After adding this plugin, my Android build fails with the following message:

Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

Cordova version: 9.0.0 ([email protected])
cordova-android version: 8.0.0

Plugins:

  • card.io.cordova.mobilesdk 2.1.0 "CardIO"
  • cordova-plugin-apprate 1.4.0 "AppRate"
  • cordova-plugin-appsflyer-sdk 4.4.15 "AppsFlyer"
  • cordova-plugin-compat 1.2.0 "Compat"
  • cordova-plugin-device 2.0.2 "Device"
  • cordova-plugin-dialogs 2.0.1 "Notification"
  • cordova-plugin-facebook4 4.2.1 "Facebook Connect"
  • cordova-plugin-firebase-lib 4.0.1 "Google Firebase Plugin"
  • cordova-plugin-geolocation 2.4.3 "Geolocation"
  • cordova-plugin-geolocation-permission-status 1.0.0 "Cordova Plugin Geolocation Permission Status"
  • cordova-plugin-globalization 1.11.0 "Globalization"
  • cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
  • cordova-plugin-nativestorage 2.3.2 "NativeStorage"
  • cordova-plugin-speechrecognition 1.1.2 "Speech Recognition"
  • cordova-plugin-splashscreen 5.0.2 "Splashscreen"
  • cordova-plugin-statusbar 2.4.2 "StatusBar"
  • cordova-plugin-whitelist 1.3.3 "Whitelist"

If I downgrade cordova-android to 7.0.0 the app builds successfully, but I get runtime errors because window.FirebasePlugin is undefined

Any ideas about how to resolve would be greatly appreciated.

Other custom plugin with swizzled didFinishLaunchingWithOptions

I have another Cordova plugin (custom for my organization) that swizzles the didFinishLaunchingWithOptions as we need to run some items on app startup. However when I installed this plugin I am getting issues as they both try and swizzle the same method. If I comment out one or the other, the uncommented one works. I'm using the latest version of this plugin (5.1.1).

Our code base is quite large so I will try and create a separate repo the demonstrates this. In the meantime, I wanted to see if there were any recommendations on how to handle this situation.

Thank you very much for taking over this plugin. It is very nice to be able to have an option that is active and updated!

iOS not displaying notification when app in background/closed

Describe the bug

Push notification working fine on Android but on iOS notification are not displaying when app is in background or closed. When app i opend and i push notification from Firebase console notification is visible but when i exit from app and do the same thing, notification is not visible.

Steps to reproduce the behavior:

  1. Go to Firebase Console
  2. Trigger notification
  3. iOS not displaying notification when app is closed or in background

Plugin Version

cordova-plugin-firebase-lib 3.0.0 "Google Firebase Plugin"

Smartphone (please complete the following information):

  1. Device: iPad 3
  2. OS: iOS10.3

Additional context

When i open the application after sending notification from Firebase console and app was in the background, suddenly notification is visible...

Can some1 help?

Version 3.3.0 not building for android 6.4.0

Describe the bug

Will not build under Android. Note this does not seem to be quite the same issues as this one. In my case there is no real error message given. I'm using the same version of the cordova-android and cordova-plugin-firebase-lib they are.

To Reproduce

Add the plugin and build for android.

Steps to reproduce the behavior:

cordova plugin add [email protected] --save
cordova build android

Expected behavior

Should build.

Console Logs

me$ cordova build android
Preparing Firebase on Android
ANDROID_HOME=/Users/me/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
Subproject Path: CordovaLib
Configuration 'compile' in project ':' is deprecated. Use 'implementation' instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_5mn13fbytbeodrevlz8q7dmtz.run(/Users/me/my-app/platforms/android/build.gradle:148)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
:preBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:preDebugBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

No real reason appears to be given. Including -d --debug or -d --stacktrace don't provide any more info.

Plugin Version

cordova-plugin-firebase-lib 3.3.0 "Google Firebase Plugin"

Desktop (please complete the following information):

  • OS: macOS 10.14.5
  • Browser n/a
  • Version n/a

Additional context

cordova version: 7.1.0
cordova-android version: 6.4.0

iOS12 compatibility (messaging:didReceiveRegistrationToken)

Hi guys,
first of all I would like to thank you to have forked this repository and maintained it !

I am actually struggling over all the pushes plugins to get notifications working on ios 12, every plugin gives this error :
5.7.0 - [Firebase/Messaging][I-FCM002023] The object <AppDelegate: 0x2803b34c0> does not respond to -messaging:didReceiveRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.

It seems a new method is required on ios to receive notifications, here is a plugin which implemented it, and actually it is the only plugin with which I got notifications working on ios12 :
https://github.com/chemerisuk/cordova-plugin-firebase-messaging

ref to the file with implemented method : https://github.com/chemerisuk/cordova-plugin-firebase-messaging/blob/f84757b3a86b7240d731e0368cf9e0aaaf5fffcb/src/ios/AppDelegate%2BFirebaseMessagingPlugin.m

Unfortunately this plugin is only compatible with cordova9, so if you could implement it that could be awesome !

Thanks in advance for your help !

Livereload not working

Hello,

I can't compile my app using the --livereload flag. The build progress seems to stuck at a certain point.
This is the command I'm using:
ionic cordova run ios --livereload

I'm using the Ionic CLI 4.12.0, because Version 5.X is really buggy and it's using the npm package "native-run" which doesn't seem to work very well.

Does someone else has this problem with Ionic?

Best Regards
Marius

Execution failed for task ':app:processDebugResources' - Failed to execute aapt

Hello,

I have an ionic v3 application and I am trying to implement firebase analytics to it.

I have installed the plugin but I cannot seem to get it to work. I've tried adding both cordova-android-play-services-gradle-release and/or cordova-android-firebase-gradle-release, with no luck.

I have installed this plugin and npm install @ionic-native/firebase@4 as stated on the v3 ionic docs. On Friday, after a long time struggling, I had managed to make the plugin work, and even logged some events on my firebase account, but this morning, without me having touched the code or anything at all, it wasn't working.

If I remove the plugin the application runs smoothly.
What I am doing is run ionic cordova run android -l and I get the following error:

Error

[cordova]  publishNonDefault is deprecated and has no effect anymore. All variants are now published.
[cordova]  +-----------------------------------------------------------------
[cordova]  | cordova-android-support-gradle-release: 27.+
[cordova]  +-----------------------------------------------------------------
[cordova]  Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
[cordova]  The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
[cordova]       at build_cxskoufx39z4y9wjava9sa375.run(C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\build.gradle:146)
[cordova]  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
[cordova]  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
[cordova]  :CordovaLib:preBuild UP-TO-DATE
[cordova]  :CordovaLib:preDebugBuild UP-TO-DATE
[cordova]  :CordovaLib:compileDebugAidl
[cordova]  :CordovaLib:compileDebugRenderscript
[cordova]  :CordovaLib:checkDebugManifest
[cordova]  :CordovaLib:generateDebugBuildConfig
[cordova]  :CordovaLib:prepareLintJar
[cordova]  :CordovaLib:generateDebugResValues
[cordova]  :CordovaLib:generateDebugResources
[cordova]  :CordovaLib:packageDebugResources
[cordova]  :CordovaLib:platformAttrExtractor
[cordova]  :CordovaLib:processDebugManifest
[cordova]  :CordovaLib:javaPreCompileDebug
[cordova]  :CordovaLib:processDebugJavaRes NO-SOURCE
[cordova]  :app:preBuild UP-TO-DATE
[cordova]  :app:preDebugBuild
[cordova]  :app:compileDebugAidl
[cordova]  :CordovaLib:packageDebugRenderscript NO-SOURCE
[cordova]  :app:compileDebugRenderscript
[cordova]  :app:checkDebugManifest
[cordova]  :app:generateDebugBuildConfig
[cordova]  :app:prepareLintJar
[cordova]  :CordovaLib:mergeDebugShaders
[cordova]  :CordovaLib:compileDebugShaders
[cordova]  :CordovaLib:generateDebugAssets
[cordova]  :CordovaLib:mergeDebugAssets
[cordova]  :app:mergeDebugShaders
[cordova]  :app:compileDebugShaders
[cordova]  :app:generateDebugAssets
[cordova]  :app:mergeDebugAssets
[cordova]  :app:processDebugGoogleServices
[cordova]  Parsing json file: C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\google-services.json
[cordova]  :app:createDebugCompatibleScreenManifests
[cordova]  :app:processDebugManifest
[cordova]  C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\src\main\AndroidManifest.xml:24:9-31:50 Warning:
[cordova]       activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
[cordova]  :app:fabricGenerateResourcesDebug
[cordova]  :app:generateDebugResValues
[cordova]  :app:generateDebugResources
[cordova]  :app:mergeDebugResources
[cordova]  :app:splitsDiscoveryTaskDebug
[cordova]  :app:compileDebugNdk NO-SOURCE
[cordova]  :CordovaLib:compileDebugNdk NO-SOURCE
[cordova]  :CordovaLib:mergeDebugJniLibFolders
[cordova]  :CordovaLib:processDebugResources
[cordova]  :CordovaLib:generateDebugSources
[cordova]  Note: Some input files use or override a deprecated API.
[cordova]  Note: Recompile with -Xlint:deprecation for details.
[cordova]  :CordovaLib:compileDebugJavaWithJavac
[cordova]  :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
[cordova]  C:\Users\User\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\5d7cee76bb1a64a7793c2fc432538f53\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
[cordova]
[cordova]  C:\Users\User\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\5d7cee76bb1a64a7793c2fc432538f53\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found.
[cordova]
[cordova]  C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:266: error: resource android:attr/fontVariationSettings not found.
[cordova]  C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:266: error: resource android:attr/ttcIndex not found.
[cordova]  error: failed linking references.
[cordova]
[cordova]  :app:processDebugResources FAILED
[cordova]  34 actionable tasks: 34 executed
[cordova]  Failed to execute aapt
[cordova]  com.android.ide.common.process.ProcessException: Failed to execute aapt
[cordova]       at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
[cordova]       at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
[cordova]       at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
[cordova]       at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
[cordova]       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[cordova]       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[cordova]       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[cordova]       at java.lang.reflect.Method.invoke(Method.java:498)
[cordova]       at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
[cordova]       at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
[cordova]       at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
[cordova]       at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
[cordova]       at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
[cordova]       at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
[cordova]       at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
[cordova]       at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
[cordova]       at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
[cordova]       at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
[cordova]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[cordova]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[cordova]       at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
[cordova]       at java.lang.Thread.run(Thread.java:748)
[cordova]  Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]       at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]       at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
[cordova]       at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]       at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
[cordova]       ... 48 more
[cordova]  Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]       at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]       at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
[cordova]       at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]       at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
[cordova]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[cordova]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[cordova]       ... 1 more
[cordova]  Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]       at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:454)
[cordova]       at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:411)
[cordova]       at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
[cordova]       at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
[cordova]
[cordova]  FAILURE: Build failed with an exception.
[cordova]
[cordova]  * What went wrong:
[cordova]  Execution failed for task ':app:processDebugResources'.
[cordova]  > Failed to execute aapt
[cordova]
[cordova]  * Try:
[cordova]  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova]  * Get more help at https://help.gradle.org
[cordova]
[cordova]  BUILD FAILED in 1m 44s
[cordova]  cmd: Command failed with exit code 1 Error output:
[cordova]  Note: Some input files use or override a deprecated API.
[cordova]  Note: Recompile with -Xlint:deprecation for details.
[cordova]  C:\Users\User\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\5d7cee76bb1a64a7793c2fc432538f53\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
[cordova]
[cordova]  C:\Users\User\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\5d7cee76bb1a64a7793c2fc432538f53\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found.
[cordova]
[cordova]  C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:266: error: resource android:attr/fontVariationSettings not found.
[cordova]  C:\Users\User\Desktop\apps\myApp\myApp-app\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:266: error: resource android:attr/ttcIndex not found.
[cordova]  error: failed linking references.
[cordova]
[cordova]  Failed to execute aapt
[cordova]  com.android.ide.common.process.ProcessException: Failed to execute aapt
[cordova]       at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
[cordova]       at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
[cordova]       at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
[cordova]       at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
[cordova]       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[cordova]       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[cordova]       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[cordova]       at java.lang.reflect.Method.invoke(Method.java:498)
[cordova]       at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
[cordova]       at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
[cordova]       at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
[cordova]       at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
[cordova]       at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
[cordova]       at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
[cordova]       at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
[cordova]       at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
[cordova]       at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
[cordova]       at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]       at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
[cordova]       at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
[cordova]       at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
[cordova]       at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
[cordova]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[cordova]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[cordova]       at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
[cordova]       at java.lang.Thread.run(Thread.java:748)
[cordova]  Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]       at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]       at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
[cordova]       at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]       at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
[cordova]       ... 48 more
[cordova]  Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]       at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]       at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
[cordova]       at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]       at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
[cordova]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[cordova]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[cordova]       ... 1 more
[cordova]  Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]       at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:454)
[cordova]       at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:411)
[cordova]       at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
[cordova]       at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
[cordova]
[cordova]  FAILURE: Build failed with an exception.
[cordova]
[cordova]  * What went wrong:
[cordova]  Execution failed for task ':app:processDebugResources'.
[cordova]  > Failed to execute aapt
[cordova]
[cordova]  * Try:
[cordova]  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova]  * Get more help at https://help.gradle.org
[cordova]
[cordova]  BUILD FAILED in 1m 44s

Ionic Info:

ionic (Ionic CLI)  : 4.1.2      
Ionic Framework    : ionic-angular 3.9.2      
@ionic/app-scripts : 3.2.0     

Cordova:

cordova (Cordova CLI) :   8.1.1 ([email protected])      
Cordova Platforms     : android 7.0.0, browser 5.0.4      
Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3,   cordova-plugin-ionic-webview 2.5.0, (and 10 other plugins)       

System:

NodeJS : v8.11.1 (C:\Program   Files\nodejs\node.exe)      
npm    : 6.5.0      
OS     : Windows 10

Plugins

cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 3.0.0 "cordova-android-support-gradle-release"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 3.1.0 "Facebook Connect"
cordova-plugin-firebase-lib 3.1.0 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.5.0 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
ionic-plugin-deeplinks 1.0.17 "Ionic Deeplink Plugin"
onesignal-cordova-plugin 2.4.5 "OneSignal Push Notifications"

Project Properties

# Project target.
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.android.support:support-annotations:27.+
cordova.system.library.2=com.facebook.android:facebook-android-sdk:4.37.0
cordova.system.library.3=com.onesignal:OneSignal:3.10.3
cordova.gradle.include.1=onesignal-cordova-plugin/nak-build-extras-onesignal.gradle
cordova.gradle.include.2=cordova-android-support-gradle-release/nak-cordova-android-support-gradle-release.gradle
cordova.gradle.include.3=cordova-plugin-firebase-lib/nak-build.gradle
cordova.system.library.4=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.5=com.google.firebase:firebase-core:17+
cordova.system.library.6=com.google.firebase:firebase-messaging:+
cordova.system.library.7=com.google.firebase:firebase-config:+
cordova.system.library.8=com.google.firebase:firebase-perf:+
cordova.gradle.include.4=cordova-android-play-services-gradle-release/nak-cordova-android-play-services-gradle-release.gradle

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public' } // Fabrics Maven repository from cordova-plugin-firebase-lib
        maven {
            url "https://maven.google.com"
        }
    }
    dependencies {

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.google.gms:google-services:4.2.0' // google-services dependency from cordova-plugin-firebase-lib
        classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase-lib
    }
}

allprojects {
    repositories {
        jcenter()
        google() // Google's Maven repository from cordova-plugin-firebase-lib
        maven {
            url "https://maven.google.com"
        }
    }
    //This replaces project.properties w.r.t. build settings
    project.ext {
      defaultBuildToolsVersion="25.0.2" //String
      defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
      defaultTargetSdkVersion=26 //Integer - We ALWAYS target the latest by default
      defaultCompileSdkVersion=26 //Integer - We ALWAYS compile with the latest by default
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.1'
            }
        }
    }
}

Additional context
I have tried various solutions I found online and on StackOverflow but nothing seems to solve my problem.
I hope the info I gave you is sufficient. If not I will provide you with whatever you might need in order to help me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.