dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
571 stars 466 forks source link

Specs satisfying the FirebaseInAppMessaging (= 11.2.0-beta) dependency were found, but they required a higher minimum deployment target. #895

Open Afnan0711 opened 1 day ago

Afnan0711 commented 1 day ago
Still facing the issue even after following the below steps?

17.0.0 works well for me, with such configuration:

"IOS_FIREBASE_SDK_VERSION": "11.2.0",
"IOS_FIREBASE_IN_APP_MESSAGING_VERSION": "11.2.0-beta",
"IOS_GOOGLE_SIGIN_VERSION": "7.0.0",
"IOS_GOOGLE_TAG_MANAGER_VERSION": "8.0.0",

and config.xml

<platform name="ios">
        <preference name="deployment-target" value="13.0" />
</platform>

Build succeeds! 🎉

And for Android builds. Could you please check that build succeed at example project? Right now I got this:

Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 2 issues were found when checking AAR metadata:

       1.  Dependency 'androidx.credentials:credentials:1.2.0-rc01' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :app is currently compiled against android-33.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.4.2 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       2.  Dependency 'androidx.credentials:credentials-play-services-auth:1.2.0-rc01' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :app is currently compiled against android-33.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.4.2 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

Originally posted by @roman-rr in https://github.com/dpa99c/cordova-plugin-firebasex/issues/892#issuecomment-2375552992

dpa99c commented 1 day ago

@Afnan0711 please provide the console output of the build failure of the example project and if possible a zip file of the project (without node_modules)

Afnan0711 commented 10 hours ago

@dpa99c

image

dpa99c commented 10 hours ago

This screenshot doesn't tell me anything: please provide the console output of the build failure of the example project and if possible a zip file of the project (without /node_modules, /plugins or /platforms)

roman-rr commented 18 minutes ago

@Afnan0711

image

Set this to your cordova config.xml

<platform name="ios">
        <preference name="deployment-target" value="13.0" />
</platform>