-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Co-existing with cordova-plugin-firebase-analytics: iOS doesn't receive any push notifications #2112
Comments
Seems like removing and readding |
Unfortunately, I was too quick in closing this issue. Now it's not working again :-( @macdonst and everybody else: Do you have an idea what this is about? |
@JaneDawson thanks for the detailed issues, it will really help when I get a chance to sit down and take a look at it. I'm assuming that the https://github.com/chemerisuk/cordova-plugin-firebase-analytics |
Hi @macdonst, yes, exactly, that's it. |
@JaneDawson it may not be super quick as we are rolling into the holiday shutdown and my family has already descended upon my house like a pack of ravenous wolves. |
@macdonst: That sounds like a lovely Christmas Party! :D |
@macdonst: I hope you had a good start in 2018! ;-) |
@macdonst: Don't want to annoy you. However, in case it may help to find the source of the problem, one observation I made: In my case (Ionic3 app), push notifications didn't work at all, when I inititated both push and analytics in Obviously, this is much better, but still not good enough. I really hope, you'll find the time to look into this. I really appreciate the work you are doing here. Thank you and best regards. |
I have the same error logs in Xcode, but I'm not using any Firebase plugin (I use the APNS). So in my case this is not a conflict with another plugin, I guess. The App is not receiving notifications in background or foreground but Registration is successful. I'm using Xcode (9.2) logs (iOS11) - Workspace build
I have read other similar issues related to this Warning, like #1988 but the problem is not solved (unlike it's said for the plugin version 2.1.0). |
I think the reason is that firebase analytics plugin uses |
@Yuripetusko we think the same |
@Yuripetusko i find a way to use apns having GoogleService-Info.plist. You have to change the value of the key IS_GCM_ENABLED to false |
@javitoxhz Thank you! I actually found it out also, but forgot to post it here :) 👍 |
@Yuripetusko @javitoxhz setting IS_GCM_ENABLED to false is not solving my issue. Is there anything else which also need to be done in order to use both firebase analytics & APNS through push plugin? |
@hariomtechnologies4u Check if the token that you get has no a colon mark (:), if the token has it, it's mean is a firebase token, and maybe you have to re-build the app after update the settings in the .plist file. If the token has no colon mark, maybe the problem is in your notification server. BTW, I solved the problem just changing the value IS_GCM_ENABLED. |
@javitoxhz IS_GCM_ENABLED never worked for me even after re-build. So, I had changed file path of Googleservices-info.plist in pushplugin.m file so that push plugin never get googleservices-info.plist file of firebase and both APNS & firebase work simultaneously. |
I had recently this issue. The only solution worked for me is this:
Now both works normally. |
@ardabeyazoglu Trying to follow this but there isn't a podspec for firebase-messaging in the analytics plugin.xml? |
@crawft it must be core not messaging, sorry. |
cordova-plugin-firebase-analytics@0.12.0 seems working with phonegap-plugin-push@2.2.3. |
Are you planning on actually fixing this issue in the near future???? |
If anyone manage to resolve this issue, please help to resolve below issues. Versions
On Android
on IOS
|
I am having these same plugin incompatibility problems. The steps above allowed me to add both the analytics and push plugins on iOS, but I still get a build error in Xcode: "Module 'FirebaseInstanceID' not found". I have already done the manual pod install, i.e.
which runs successfully, but still the "Module 'FirebaseInstanceID' not found" error persists. I have done a Where do I go from here? |
Expected Behaviour
Use the two plugins (
phonegap-plugin-push
andcordova-plugin-firebase-analytics
) in parallel && be able to receive Push Notifications on iOS.Actual Behaviour
Hi @macdonst,
when I use both
phonegap-plugin-push
andcordova-plugin-firebase-analytics
in my app, I'm not able to receive any Push Notifications on iOS. Android works fine.I was looking for the mistake for three days now (see: #2110) and was wondering why it wasn't working anymore.
I'm using Ionic 3. In my
app.components.ts
file I was usingcordova-plugin-firebase-analytics
to enable and disable the tracking with Firebase Analytics andphonegap-plugin-push
to manage Push Notifications. In this scenario, on iOS the push registration works just fine, but no notification is ever received (see: #2110).Now I commented out everything in
app.components.ts
that belongs tocordova-plugin-firebase-analytics
. I did not uninstall the plugin, just comment out everything in this single file, where my Push Notification logic is. Now iOS is receiving the push notifications as expected.Hence, it must be about the plugin. I did read the documentation part about the co-existence with Firebase Analytic plugins (Link: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#co-existing-with-plugins-that-use-firebase). However, this seems to be outdated, since it is about the sender ID which changed since 2.0.0 of
phonegap-plugin-push
, right? Additionally, I don't get any error logs likeInvalid google_app_id. Firebase Analytics disabled.
I'm quite happy, that I now at least know, where to look at. That's one step forward. However, I don't know how to proceed and what to try next. I'm really desperate for your ideas on what we can try! I hope we can manage to make the two plugins work together, smoothly.
THANK YOU for your help!
Steps to Reproduce
see above
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iPad, iOS 11.2.1
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
The same payload worked with the old version of this plugin. For testing purposes I commented out most parts, but it still doesn't work
Initializing PushNotifications:
Logs taken while reproducing problem
FCM Registration and Firebase Analytics initialization both seem to work just fine (as you'll see in the following logs), however
push.on("notification", data => { ... })
is never called, when using both plugins at the same time.The text was updated successfully, but these errors were encountered: