I can't get push notifications to work on iOS. (Requested entity was not found) #4287
Unanswered
vikjovanov
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Not sure what's happening but:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I learned a lot about FCM and how to contact APNS. As a result, from what I understood, it correctly retrieves the token from APNS and firebase also receives it because it returns an FCM Token to me with the "getToken()" function. So, I have the feeling that the token returned to me is not valid. As if FCM would generate a bad token (which I find hard to believe). So I was wondering:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I can't get push notifications to work on iOS. On android, everything is OK which confirms that the problem comes from my configuration.
I am able to retrieve a token with iOS (which is 163 characters long) by using the
firebase.messaging().getToken()
function.However, when I use this token to send a push notification, nothing happens (in the Firebase console). And when my partner (back-end) sends a push notification from our server, he receives a
Failed: 1, success: 0. Requested entity was not found
.I added the Push notification capability to my project. I created an "APN" key from my Apple Developer account that I added correctly in the Firebase console. I also added a development and production certificate for the push notifications (to make sure the problem couldn't come from the fact that he couldn't send the pushes with the APN key).
The problem is that I'm having trouble debugging from where exactly this can come from!
Is it my iOS configuration? Is it a problem in my code?
Knowing that I used to use version 6 of GCM in duo with React-native-push-notifications (for interaction management). Since then, I upgraded to Messaging 7 and I can't get it to work anymore.
I have completely removed the entire installation of React-native-push-notifications and React-native-push-notifications-ios because I didn't need it anymore! Maybe I removed too much code?
AppDelegate.h
AppDelegate.m
React-native info
Package.json
I can't see what I might have missed! I guess it must already be due to a general understanding problem on my part about how the push notifications works exactly.
Hope you can help me! thank you!
Viktor
Beta Was this translation helpful? Give feedback.
All reactions