firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

BoringSSL iOS 11 error

Open Aurazion opened this issue 9 years ago • 18 comments

Hi, Many users have problem with firebase since iOS 11 with boringssl (google boringssl ios 11). I'm using FirebaseMessaging in my App, and here is my logs :

2017-09-26 12:15:34.078197+0200 myApp[6009:786492] [DYMTLInitPlatform] platform initialization successful
2017-09-26 12:15:39.761677+0200 myApp[6009:786585] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40003000 started
2017-09-26 12:15:39.761720+0200 myApp[6009:786585] [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-09-26 12:15:39.827000+0200 myApp[6009:786507] [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-09-26 12:15:39.832230+0200 myApp[6009:786585] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length
2017-09-26 12:15:39.878970+0200 myApp[6009:786585] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length
2017-09-26 12:15:40.216274+0200 myApp[6009:786188] refreshPreferences: HangTracerEnabled: 0
2017-09-26 12:15:40.216322+0200 myApp[6009:786188] refreshPreferences: HangTracerDuration: 500
2017-09-26 12:15:40.216346+0200 myApp[6009:786188] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
2017-09-26 12:15:40.323994+0200 myApp[6009:786485] TIC Read Status [1:0x0]: 1:57
2017-09-26 12:15:40.324454+0200 myApp[6009:786485] TIC Read Status [1:0x0]: 1:57
2017-09-26 12:15:40.429959+0200 myApp[6009:786607] TIC Read Status [4:0x0]: 1:57
2017-09-26 12:15:40.429985+0200 myApp[6009:786607] TIC Read Status [4:0x0]: 1:57
2017-09-26 12:15:40.473050+0200 myApp[6009:786507] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-09-26 12:15:40.478608+0200 myApp[6009:786507] [MC] Reading from public effective user settings.
Firebase registration token: cAkYMzkcmIA:APA91bH7U9E3z7bS-OCf9kmFADRPdjlzsVScnhd_0Nk_INsHw1-ZmvxVyS1D5WYKX5155T7YFW21sbCVuE367REsugdAjqGvKxBWph091aHdiXRzF_zTCuoUGbQ5rFTv_yaVg5yYk1GC
2017-09-26 12:15:43.606715+0200 myApp[6009:786188] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-09-26 12:15:43.606985+0200 myApp[6009:786188] [MC] Loaded MobileCoreServices.framework
APNs token retrieved: 32 bytes

App don't retrieve notifications sent from the Firebase console but it retrieve the Firebase registration token...

Do you have an explanation ?

Thanks

  • Xcode version: 9
  • Firebase SDK version: 4.2.0

Aurazion avatar Sep 26 '17 10:09 Aurazion

Same issue here.

berlininsomniac avatar Sep 26 '17 12:09 berlininsomniac

"BoringSSL" is an output by Xcode 9 when an SSL connection is established (which FCM and IID SDKs do, as others), but is not related to whether something is working or not.

There is a bug which has been fixed related to when the APNs token is retrieved, and that should be coming out soon. I think what you're describing is related.

rsattar avatar Sep 26 '17 21:09 rsattar

Thanks @rsattar, it works for me now. Waiting for the future release.

Aurazion avatar Sep 27 '17 09:09 Aurazion

i have a same problem how should i solve it?

mehransahandi avatar Oct 02 '17 12:10 mehransahandi

@mehransahandi Here : https://github.com/firebase/firebase-ios-sdk/issues/315#issuecomment-333454986

Aurazion avatar Oct 02 '17 12:10 Aurazion

@Aurazion tnx sir, but how should I use pod 'FirebaseInstanceID', '2.0.0' ? Im new to it

mehransahandi avatar Oct 02 '17 12:10 mehransahandi

Fix released today in Firebase 4.3.0, FirebaseMessaging 2.0.4, and FirebaseInstanceID 2.0.4

paulb777 avatar Oct 03 '17 16:10 paulb777

Hello @paulb777 , I'm testing Firebase 4.3.0 with Xcode 9 and iOS 11 but I have the same problem (TIC Read Status):

2017-10-04 18:18:29.854703+0200 flatfitapp[38450:1753669] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40004000 started 2017-10-04 18:18:29.888693+0200 flatfitapp[38450:1753669] [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2017-10-04 18:18:29.963718+0200 flatfitapp[38450:1753675] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length 2017-10-04 18:18:30.096274+0200 flatfitapp[38450:1753675] TIC Read Status [1:0x0]: 1:57 2017-10-04 18:18:30.096436+0200 flatfitapp[38450:1753675] TIC Read Status [1:0x0]: 1:57 2017-10-04 18:18:31.120869+0200 flatfitapp[38450:1753386] [MC] Lazy loading NSBundle MobileCoreServices.framework 2017-10-04 18:18:31.121636+0200 flatfitapp[38450:1753386] [MC] Loaded MobileCoreServices.framework 2017-10-04 18:18:31.124366+0200 flatfitapp[38450:1753386] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/Bamby/Library/Developer/CoreSimulator/Devices/E9C887D4-F3FD-4E25-BB9C-B5B32D825B95/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

jlandyr avatar Oct 04 '17 16:10 jlandyr

@jlandyr See https://github.com/firebase/firebase-ios-sdk/issues/314#issuecomment-332339019 above

paulb777 avatar Oct 04 '17 16:10 paulb777

I have installed firebase version 4.4.0. still getting the logs TIC Read Status [7:0x0]: 1:57

vanitaladkat avatar Oct 27 '17 06:10 vanitaladkat

I am trying to send a Remote PushNotification

Xcode Version 9.0 (9A235) Developement Traget : 10.0

pod 'Firebase', '4.3.0'
pod 'FirebaseMessaging', '2.0.4'
pod 'FirebaseInstanceID', '2.0.4.'
[Firebase/Analytics][I-ACS023007] Firebase Analytics v.40003000 started
[Firebase/Analytics][I-ACS023007] Firebase Analytics v.40003000 started
[Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
<Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
*********************************************************************************************************************
FCM token: ecrBl5Cqe-s:APA91bEgEDv7R_avMASrcldSEUmiJNVjQBRZw0V2M767r05u_1_xlEkfssaFgEPlPxB4uwmqJ4t8BHYVNDvX2FiaqsZkQRrvvPnvRHhPUvAAniuGTeYQE0Q7qrNWEmINHzk9IYsCKaqG
*********************************************************************************************************************
- [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length
- [MC] Lazy loading NSBundle MobileCoreServices.framework
- [MC] Loaded MobileCoreServices.framework
- [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
- refreshPreferences: HangTracerEnabled: 0
- refreshPreferences: HangTracerDuration: 500
- refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
- TIC Read Status [1:0x0]: 1:57
- TIC Read Status [1:0x0]: 1:57

sathya-Baman avatar Nov 04 '17 07:11 sathya-Baman

I'm using Firebase 4.5.0, still got this [BoringSSL] error.

whereiswhere avatar Nov 11 '17 15:11 whereiswhere

Hy i fixed the issue by using

        pod 'Firebase/Core', '4.0.4'
        pod 'Firebase/Database', '4.0.4'
        pod 'Firebase/Messaging', '4.0.4'
        pod 'FirebaseInstanceID', '2.0.0'

And adding this method in appDelegate

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
        Messaging.messaging().apnsToken = deviceToken
        Messaging.messaging().subscribe(toTopic: hubId)
    }

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
        print(userInfo)
    }
    
    func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],
                     fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
        print(userInfo)
        let aps = userInfo["aps"] as! NSDictionary
        let message = aps["alert"]  as? String
        let msglabel = "label"
        print(aps["alert"]  as? String ?? "")
        completionHandler(UIBackgroundFetchResult.newData)
   
    }

It works fine for me in background and foreground

sathya-Baman avatar Nov 12 '17 11:11 sathya-Baman

Same problem, please fix it!

yangyang2049 avatar Nov 19 '17 04:11 yangyang2049

I am facing the same issue.

imstkgp avatar Nov 27 '17 19:11 imstkgp

Yes....I'm Using Firebase (4.6.0) and I'm hitting this today in Xcode 9

Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length Using Firebase (4.6.0) Using FirebaseAnalytics (4.0.5) Using FirebaseAuth (4.3.2) Using FirebaseCore (4.0.11) Using FirebaseDatabase (4.1.1) Using FirebaseInstanceID (2.0.6) Using FirebaseMessaging (2.0.6)

dgaedcke avatar Nov 28 '17 19:11 dgaedcke

Does someone have a fix for this (4 months after the previous report above)?

Using Firebase (4.11.0) Using FirebaseAnalytics (4.1.0) Using FirebaseCore (4.0.18) Using FirebaseInstanceID (2.0.10) Using GoogleToolboxForMac (2.1.3) Using nanopb (0.3.8)

meaning-matters avatar Mar 24 '18 17:03 meaning-matters

Closing due to lack of recent activity. Please open a new issue if this is occurring on Firebase 5.x.

paulb777 avatar Jul 20 '18 19:07 paulb777