Can't connect to Firebase on device (simulator works fine): Complaining about certificate)

2,434 views
Skip to first unread message

Joris Weimar

unread,
Nov 8, 2016, 6:53:05 AM11/8/16
to Firebase Google Group

<FIRInstanceID/WARNING> Failed to fetch default token Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “device-provisioning.googleapis.com” which could put your confidential information at risk." UserInfo=0x1706fb70 {NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “device-provisioning.googleapis.com” which could put your confidential information at risk., NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorCodeKey=-9807, NSErrorFailingURLStringKey=https://device-provisioning.googleapis.com/checkin, _kCFStreamErrorDomainKey=3, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x15f8d480>, NSUnderlyingError=0x15fb35f0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1202.)", NSErrorFailingURLKey=https://device-provisioning.googleapis.com/checkin}


Any subsequent calls fail:


<FIRAnalytics/ERROR> Encounter network error. Error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo=0x15d280b0 {NSErrorFailingURLKey=https://play.googleapis.com/log, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSLocalizedDescription=cancelled}


Joris Weimar

unread,
Nov 8, 2016, 6:54:26 AM11/8/16
to Firebase Google Group
I've already set the 

<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</plist>

key in the info.plist

Ian Barber

unread,
Nov 8, 2016, 2:48:01 PM11/8/16
to Firebase Google Group
Any chance the time might be off on the device? That can throw off cert validity checks.

Joris Weimar

unread,
Nov 8, 2016, 2:49:36 PM11/8/16
to fireba...@googlegroups.com
can't believe i didn't think of that (has happened to me before!) thanks ian.


--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/Snd0Hxtj7BM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c665a462-c340-4020-b30c-bc5321e99211%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

edisonywh

unread,
Nov 9, 2016, 12:51:19 AM11/9/16
to Firebase Google Group
Did that solve it for you? It hasn't for me, the time is the same on my mac and iOS device..


On Tuesday, November 8, 2016 at 7:49:36 PM UTC, Joris Weimar wrote:
can't believe i didn't think of that (has happened to me before!) thanks ian.

On Tue, Nov 8, 2016 at 8:48 PM, 'Ian Barber' via Firebase Google Group <fireba...@googlegroups.com> wrote:
Any chance the time might be off on the device? That can throw off cert validity checks.

On Tuesday, 8 November 2016 03:54:26 UTC-8, Joris Weimar wrote:
I've already set the 

<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</plist>

key in the info.plist

On Tuesday, November 8, 2016 at 12:53:05 PM UTC+1, Joris Weimar wrote:

<FIRInstanceID/WARNING> Failed to fetch default token Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “device-provisioning.googleapis.com” which could put your confidential information at risk." UserInfo=0x1706fb70 {NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “device-provisioning.googleapis.com” which could put your confidential information at risk., NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorCodeKey=-9807, NSErrorFailingURLStringKey=https://device-provisioning.googleapis.com/checkin, _kCFStreamErrorDomainKey=3, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x15f8d480>, NSUnderlyingError=0x15fb35f0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1202.)", NSErrorFailingURLKey=https://device-provisioning.googleapis.com/checkin}


Any subsequent calls fail:


<FIRAnalytics/ERROR> Encounter network error. Error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo=0x15d280b0 {NSErrorFailingURLKey=https://play.googleapis.com/log, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSLocalizedDescription=cancelled}


--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/Snd0Hxtj7BM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Joris Weimar

unread,
Nov 9, 2016, 2:07:49 AM11/9/16
to fireba...@googlegroups.com
yes, what is the error you are getting?
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7d42c392-f01e-4ada-a579-a2abcbe221b4%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages