Deploy Firebase to my application

Hello
I am trying to receive notification through firebase services
I have applied the steps described in the following link:
https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/GettingStarted.md

I can see in the logging that the remote notification has been started, but i am not able to get a token or CrossFirebasePushNotification.Current.OnTokenRefresh is not initializing

You can check the log lines bellow

2018-12-12 10:52:07.790546+0200 myproject[53733:3025743] [Firebase/InstanceID][I-IID007004] Unable to save checkin info, resetting checkin preferences in memory.
2018-12-12 10:52:08.132684+0200 myproject[53733:3025849] [Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
2018-12-12 10:52:08.133397+0200 myproject[53733:3025849] [Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
2018-12-12 10:52:08.396036+0200 myproject[53733:3025849] [Firebase/InstanceID][I-IID010003] Unable to generate keypair.
2018-12-12 10:52:08.396674+0200 myproject[53733:3025849] [Firebase/InstanceID][I-IID010009] Keypair could not be loaded from Keychain. Error: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-12 10:52:08.397273+0200 myproject[53733:3025849] [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-12 10:52:12.746310+0200 myproject[53733:3026075] [Firebase/InstanceID][I-IID007004] Unable to save checkin info, resetting checkin preferences in memory.
Thread finished: #12
2018-12-12 10:52:15.463021+0200 myproject[53733:3026319] [Firebase/InstanceID][I-IID007004] Unable to save checkin info, resetting checkin preferences in memory.
2018-12-12 10:52:15.463662+0200 myproject[53733:3026319] [Firebase/InstanceID][I-IID003009] Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)" UserInfo={NSUnderlyingError=0x6000020945d0 {Error Domain=com.google.iid Code=-34018 "(null)"}}
2018-12-12 10:52:21.520493+0200 myproject[53733:3026075] [Firebase/InstanceID][I-IID007004] Unable to save checkin info, resetting checkin preferences in memory.

It has been 4 hours without arriving to a solution.

  • Is there anything related to the singing? I am new to ios?
  • What are the missing steps?

PLease help, and thanks in advance

Best Answers

  • XAMARINROCKXAMARINROCK ✭✭
    Accepted Answer

    Thank you Landlu for your answer
    i have created the p12 file and uploaded and everything works great

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai
    edited December 2018

    Have you followed this documentation: https://docs.microsoft.com/en-us/xamarin/ios/platform/user-notifications/deprecated/remote-notifications-in-ios to register a notification certification on the Apple Development portal?
    If you want to use push notification service, you should create that certification firstly.
    Then you also need to upload the corresponding p12 file to FCM. Here is a detailed blog telling how to generate a p12 certification.

  • XAMARINROCKXAMARINROCK Member ✭✭

    Hello Thank you Landlu for your response.
    I think that the link shared above in your response is to register to IOS notification center.
    What i need to work with is google firebase, because my android app is already integrated and still the iphone

    But you also mentioned also is that you have to upload p.12 to FCM. Did u mean google FCM..
    I am confused..
    Still not generating token : :/

  • XAMARINROCKXAMARINROCK Member ✭✭
    Accepted Answer

    Thank you Landlu for your answer
    i have created the p12 file and uploaded and everything works great

Sign In or Register to comment.