Giter Site home page Giter Site logo

Comments (16)

meghanadixit1 avatar meghanadixit1 commented on June 12, 2024 1

Hi,
Thanks for reverting back!!

Below is a demo repo created. In this new project, only FCM plugin is installed and on launch the app is crashing
https://github.com/meghanadixit1/FCMDemo

When for the first time, app is installed to the device via xcode, it works well, for the subsequent launches, it crashes everytime.

Since it is crashing on app launch, we are not able to test any functionality.

Attached are the XCode logs and the mobile device logs and my environement info

IonicInfo.docx
FcmDemoLog.docx

Please let me know if any other info is required.

.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

The thread dying is concerning, yes, but did experience functionality issues?

Would you be able to share a repository of which the app presents this error?

I'll investigate as soon as possible.
But until then, if you can send your findings.

Thank you

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

I've found the thread firebase/firebase-ios-sdk#1399 that mentions that, this issue occurs due to keychain deadlocks.

I'll investigate possible solutions.

from cordova-plugin-fcm-with-dependecy-updated.

meghanadixit1 avatar meghanadixit1 commented on June 12, 2024

Hello There,
Any updates on this??

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Hi, I've written a simple experiment, that just delay the Firebase initialisation by 10 seconds. Just to check if a solution like this could work in your case (master...andrehtissot:delayed-firebase-initialization-experiment).

So, from the root app directory, execute something like:

cd ..
git clone https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated.git
cd -
cd ../cordova-plugin-fcm-with-dependecy-updated
git checkout delayed-firebase-initialization-experiment
cd -
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
ionic cordova plugin add ../cordova-plugin-fcm-with-dependecy-updated

And please let me know if the crashes still happen.

from cordova-plugin-fcm-with-dependecy-updated.

meghanadixit1 avatar meghanadixit1 commented on June 12, 2024

Will check and revert to you!
Thanks

from cordova-plugin-fcm-with-dependecy-updated.

meghanadixit1 avatar meghanadixit1 commented on June 12, 2024

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

This is an error due to Androidx migration.

I suggest you to try some of the solutions found in https://stackoverflow.com/questions/51918301/program-type-already-present-android-support-v4-app-inotificationsidechannelst.

If those don't work, let me know, then you might have to use a special version of the plugin, of which won't require androidx, by not importing androidx.core.app.NotificationCompat.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

But it's good to know that this solution avoids crashing on iOS.

In the near future, I intend on implement the feature requested in #31, which, in theory would also fix the issue you found.

from cordova-plugin-fcm-with-dependecy-updated.

meghanadixit1 avatar meghanadixit1 commented on June 12, 2024

HI

Tried the solution in below link-
https://stackoverflow.com/questions/51918301/program-type-already-present-android-support-v4-app-inotificationsidechannelst.

But still could not be successful.
ALso tried something as below

arnesson/cordova-plugin-firebase#1083 (comment)

But then also ran into an error

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

I'll try to minimize the reliance on AndroidX dependency to avoid these compatibility issues. I'll update here, when I get it working.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Also, just to let you know, a small delay was added to the main release version, so the first issue you mentioned (ios thread crashing), should not occur anymore.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Hi @meghanadixit1, I published a new version of cordova-plugin-fcm-with-dependecy-updated@beta, which, besides a lot refactoring on the ios side, has fewer androidx dependencies.

Would you give it a try, and let me know if it fixes the build on Android, and if for iOS it still works as expected?

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

The new release v5.0.0 has the changes I mentioned.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Issue closed due to inactivity.

from cordova-plugin-fcm-with-dependecy-updated.

meghanadixit1 avatar meghanadixit1 commented on June 12, 2024

Hey,
Sorry about the delayed response -
Here is the observation -
With the code in branch "delayed-firebase-initialization-experiment" the code builds and notifications are also received.
But when tested with below versions-

V5.0.0 beta
V5.0.0
V5.1.0
V6.0.0
V6.0.1

The code is built but notification is not received in iOS devices.
Can you please look into further.

from cordova-plugin-fcm-with-dependecy-updated.

Related Issues (20)

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.