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 Tuesday at 08:49 AM I wonder why Google and Apple are making things more difficult.... :/ Share this post Link to post
John van de Waeter 6 Posted Wednesday at 10:24 AM On 10/14/2024 at 9:37 PM, Dave Nottage said: 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. Dave, I'm trying Kastri now. Again 🙂 One thing I must do is download a copy of firebase.zip (SDK for iOS) from github. But both 11.2.0 as 11.3.0 give me an error when I try to unzip them: Invalid Zip-file. Tried on both win10 and win11. I tried to ask a question in the issues section of this github-repo, but my question does not appear in the discussion. Dunno why, no error reported. So I'm trying here: do you know an alternative to download this firebase.zip? Thanks, John Share this post Link to post
Dave Nottage 549 Posted Wednesday at 11:07 AM 36 minutes ago, John van de Waeter said: So I'm trying here: do you know an alternative to download this firebase.zip? There's this link at this page, however it might just be a redirect to the latest version (11.3.0) I notice a huge difference in size between 11.2.0 and 11.3.0 - 319MB vs 612MB!! Share this post Link to post
John van de Waeter 6 Posted Wednesday at 12:44 PM Yep, lots of other code in this file. But it contains the original firebase.zip, which in turn has the same problem.... Share this post Link to post
Dave Nottage 549 Posted Wednesday at 07:21 PM 6 hours ago, John van de Waeter said: Yep, lots of other code in this file. But it contains the original firebase.zip, which in turn has the same problem.... Both unzip OK on macOS, so I tried to "re-zip" the 11.2.0 version on Windows, but that causes Explorer to crash 😞 I've asked a question about it in their Slack workspace, since all the other reporting mechanisms don't seem to cover this category. Share this post Link to post
Vanar 2 Posted 2 hours ago On 10/14/2024 at 5:28 PM, John van de Waeter said: Hi Vanar, I'm facing the same problem... did you find a solution? cheers, John Hi, John I didn't find a normal solution I temporarily solved the problem like this: They give me a ready-made authorization key: ya29.c.c0ASRK0Ga_4Z1QIYsqufOCVdT ...., created on the server using PHP And I slip it into my request ... Share this post Link to post
John van de Waeter 6 Posted 2 hours ago 12 minutes ago, Vanar said: Hi, John I didn't find a normal solution I temporarily solved the problem like this: They give me a ready-made authorization key: ya29.c.c0ASRK0Ga_4Z1QIYsqufOCVdT ...., created on the server using PHP And I slip it into my request ... Lol.... I too had a hard fight to send those notifications to the v1-google fcm server.... I never realized that the converting part (apns->fcm) also required this new approach... Having apps online that suddenly don't receive pn's anymore forces one to be creative.... I'm now trying the Kastri-path. Share this post Link to post