Vanar 2 Posted September 13 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 Share this post Link to post
John van de Waeter 6 Posted Monday at 02:28 PM Hi Vanar, I'm facing the same problem... did you find a solution? cheers, John Share this post Link to post
Dave Nottage 549 Posted Monday at 07:37 PM See this documentation. Authorization is now via an OAuth2 token - there is a link in the documentation to details about methods for obtaining the token. Share this post Link to post
John van de Waeter 6 Posted 15 hours ago I wonder why Google and Apple are making things more difficult.... :/ Share this post Link to post