How to Fix Failed to Fetch Default Token Error

firebase, swift, ios - Failed to fetch default token Error Domain=com.firebase.iid Code=6 (null)

Just to update, these errors should no longer appear in the latest version of Firebase when using the Xcode 8.2+ version of the simulator. There was an issue (in fact a couple) with the simulator, and some overly aggressive logging in InstanceID.

Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 (null) , FIRAnalytics/ERROR Encounter network error. Code, error: -999

Finally found solution :-
APNS certificate not properly create p12 file. Download file from apple developer account and create p12 file by concatenate command in terminal, follow below steps :-

1) create p12 of APNS certificate

2) create p12 of private key

3) open terminal and write concatenate command

4) cat apnsDev.p12 privateKey.p12 > certMerge.p12

This work for me

Reference from this link of stackoverflow :- https://stackoverflow.com/a/32470374/5242836

TypeError: Failed to execute 'fetch' on 'Window': Invalid name while fetching token of jwt to authorize

In the headers for your fetch call, you included a colon in the Content-Type header key:

'Content-Type:':'application/json',

should be

'Content-Type':'application/json',



Related Topics



Leave a reply



Submit