Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push notifications from firebase in iOS simulator

I have an app that uses cordova-plugin-firebasex for the push notifications. But they don't appear in notification center while app is in the background. I'm using iOS simulator in XCode.

Can I test Firebase notifications in simulator while app is in the background? Or I need real device for this?

like image 579
Shadowman Avatar asked Oct 28 '25 08:10

Shadowman


1 Answers

Simulators are not supporting push notifications. You can see this output text from Firebase SDK in yuor console output Like

6.27.0 - [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: remote notifications are not supported in the simulator

like image 199
Kstin Avatar answered Oct 31 '25 00:10

Kstin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!