Jump to content
Sign in to follow this  
Vanar

Authorization to the firebase's https://iid.googleapis.com/iid/v1:batchImport

Recommended Posts

I always received FDeviceToken from the request https://iid.googleapis.com/iid/v1:batchImport


HTTP HEADERS: 
    Content-Type: application/json 
    Authorization: key=YOUR_SERVER_KEY 
BODY: 
    { 
    "application": "com.company.app", 
        "sandbox":true, 
        "apns_tokens":[ "7c6811bfa1e89c739c5862122aa7ab68fc4972dea7372242f74276a5326f...." ] 
        } 

 

Answer: 
        { "results": 
        [ { 
          "registration_token": "ejXQlECjCeI:APA91bE7oaUhaFnGyl77lFrySdEaWxocM0oj81uNezACX1wsZXiTyL4OYo5ssvFjjWYpFymMVyqBccboVcwTTW2rvykOmV_CABDM7rTIRCiJFl_9ngf7SrDSYoFouwNj69JSwlH.....",
                  "apns_token": "7c6811bfa1e89c739c5862122aa7ab68fc4972dea7372242f74276a5326f....",
                  "status": "OK"
                  }
                ]
        }

 

But recently this request stopped working (authorization required).

I get the answer:
    { "error": "Not authenticated or unauthorized"}

 

How to solve this problem?
How to rewrite the query?

 

Most likely it is related to this

5413367030758891349.thumb.jpg.a6547273a8370f991aa7a7de1ae21c60.jpg

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×