iOS Firebase: Error Unable to generate keypair - ios

In our ios Swift app we use Firebase Analytics. (Firebase 3.16.0, Firebase Analytics 3.8.0, Firebase Core 3.6.0, FirebaseInstanceID 1.0.10)
Our app gets background launched from significant location changes but can be launched and used normally in the foreground. Sometimes we see the following error and warning pop up multiple (a lot of) times in our log.
<Error> [Firebase/Messaging][I-IID010003] Unable to generate keypair.
<Warning> [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-25308 "(null)"
It looks like those errors and warnings only pop up if the app was actually background launched by the SLC. Where do these errors come from?
Note: Keychain Sharing is setup correctly
thank you.

Related

Firebase Swift iOS: "Cannot get flag for unregistered flag" error

I am using Firebase analytics with Xcode and iOS. Only recently, firebase started printing this error, sometimes spamming it tens, if not hundreds of times in a row:
9.6.0 - [FirebaseAnalytics][I-ACS800014] Cannot get flag for unregistered flag. SDK name, flag name: app_measurement, session_stitching_token_feature_enabled
The app works fine, events are logged fine. What is causing this error?

Missing data in Fabric for IOS "Crashed: com.apple.root.default-qos"

I'm using Fabric.io to monitor and collect crash data for a IOS app.
I'm receiving now a lot of crash reports for this error "Crashed: com.apple.root.default-qos" but when I check Fabric to analyze it I got the following report:
where the stack-trace of the crash is missing.
What should I do to receive the complete stack-trace?
App uses some libraries imported using CocoaPods.
I'm attaching here also a screenshot with linked libraries:
I have discovered that this report was sent because of missing "Privacy - Face ID Usage Description" (NSFaceIDUsageDescription) in Info.plist.
I have no idea why the report was not complete, but after adding this key my app has stopped crashing.

Firebase error 2001. How can I fix it?

I am developing a cordova app for ios and i am using the cordova plugin named "cordova-plugin-firebase" on npm. I have both certificates on fcm console.
When I start my application, in xcode's console it says "connected to fcm" and when I send a notification I get:
Unable to connect to FCM. Error Domain=com.google.fcm Code=2001 "(null)"
It appears only when I send a notification from firebase console.
did you try to using different FIRInstanceIDAPNSTokenType?
you can found more info about this issue in the link:
https://firebase.google.com/docs/reference/ios/firebaseinstanceid/api/reference/Enums/FIRInstanceIDAPNSTokenType

FireBase FIRMessagingSecureSocket crashing iOS app

I have built an app where people can send messages to other users. My server then makes requests to Firebase to send a notification to the receiving user's device. During internal testing, it works fine. But now that we have open beta testers, there is an error that shows up in Crashlytics for:
UIApplicationMain
signalEventSync
[FIRMessagingSecureSocket stream:handleEvent:]
[FIRMessagingSecureSocket performRead]
[NSData(NSData) subdataWithRange:]
Fatal Exception: NSRangeException
*** -[NSConcreteMutableData subdataWithRange:]: range {0, 18446744073709551423} exceeds data length 16384
Crashyltics logs it about 3-5 times an hour for iOS 10.0.2, 10.0.3, and 10.1.0. So it appears only a small minority is problematic. I've been logging the requests my server makes to Firebase and none of the payloads (JSON, only text) are exceeding a couple hundred characters. I'm using FireBaseCore 3.4.3 and developing with XCode 8.0, Swift 3.0. I have the same app for Android and there are no logs of this crash happening.
Emails I have had with FireBase support have not given any insights to this issue. Has anyone had an issue similar to this? Or any ideas of where to look next?

iOS Push Notification issue with Mobile First 7.0 (Hybrid)

We are facing issue with "iOS Push Notification" functionality with Mobile First 7.0.
We have downloaded push notification sample app from
Sample App. As MF 7.0 doesn't have any sample app. So we used sample app of MF 6.3.
After installation we have tried to "subscribe" through iOS device. Its throwing below error and app is crashing.
[ERROR ] FWLSE0020E: Ajax request exception: The transaction has been rolled back. See the nested exceptions for details on the errors that occurred. [project PushNotifications][ERROR ] FWLSE0117E: Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0069E: An internal error occurred during gadget request [project PushNotifications]The transaction has been rolled back. See the nested exceptions for details on the errors that occurred., User Identity {wl_directUpdateRealm=(name:null, loginModule:WLDirectUpdateNullLoginModule), SubscribeServlet=null, wl_authenticityRealm=null, wl_remoteDisableRealm=(name:null, loginModule:WLRemoteDisableNullLoginModule), SampleAppRealm=null, wl_antiXSRFRealm=(name:mibphsqb0hb1bfcko7t0nfstts, loginModule:WLAntiXSRFLoginModule), PushAppRealm=(name:Test1, loginModule:PushAppLoginModule), wl_deviceAutoProvisioningRealm=null, wl_deviceNoProvisioningRealm=(name:89E62244-B169-4C8E-BB83-BD7F6868310E, loginModule:WLDeviceNoProvisioningLoginModule), myserver=(name:b71e8870-df42-424a-bc38-924c645d621e, loginModule:WeakDummy), wl_anonymousUserRealm=(name:b71e8870-df42-424a-bc38-924c645d621e, loginModule:WeakDummy)}. [project PushNotifications]
com.worklight.common.log.filters.ErrorFilte
Why are you saying MFP 7.0 doesn't have any sample? it is linked to in the tutorials for MFP 7.0, here: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/notifications/push-notifications-hybrid-applications/event-source-based-notifications/
So first try to the appropriate sample.
Additionally the error log does not reveal anything... provide logs from Xcode.
As for the crash - make sure you are using the latest MFPF 7.0 iFix from IBM Fix Central as an iOS push-related fix was delivered some time ago. You may be using a version affected by the bug.

Resources