capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

Remote notifications are not supported in the simulator #34

Closed wobsoriano closed 4 years ago

wobsoriano commented 4 years ago

Hi!

Just want to ask something. I'm getting this error:

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

when trying to run

PushNotifications.addListener('registration', (data) => {
      console.log('REGISTRATION', data);
 });

Here's my xcode and device infos:

Xcode: Version 11.3.1 (11C504) Iphone 11 Pro Max with IOS 13.3

Any help would be much appreciated.

wobsoriano commented 4 years ago

Sorry, online pushed notifications are not doable in simulators. Thank you.