Notifications do not arrive to my iOS app












2















My code is in Objective-C



Firebase side




  1. App created

  2. General settings --> done

  3. APNs Auth Key --> done


Apple developer account side




  1. App ID --> done

  2. Dev and Distribution certificates --> done

  3. Dev and Distribution profiles --> done


App side




  1. My AppDelegate calls registerForRemoteNotifications without any error and the method "didReceiveRegistrationToken" is able to return a string like in the following: NSLog(@"Remote instance ID token: %@", result.token);

  2. First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!

  3. I have implemented all functions didReceiveRemoteNotification both if I am receiving a notification message while the app is in the background and if it isn't.

  4. GoogleService-Info.plist --> moved inside my project


PROBLEM



The problem is my app is not able to receive any notification I am going to send by using the firebase console. didReceiveRemoteNotification never called!



I have read all your feedback on other questions but I didn't solve my problem.



UPDATE #1



Thank you iDev750 for your answer!



My problem is I do not receive notifications on my app when I send them from the firebase console or directly from my backend. In my opinion if I do not receive a notification it is impossible that didReceiveRemoteNotification is called, are you agree with me?



Anyway, as you said, I sent a push message directly to my token/device and the result is in the following:



{"multicast_id":6185922XXX,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1543141675131005%YYYY"}]}



So, it is sure the message has been sent, otherwise the output should be something like The request's Authentication (Server-) Key contained an invalid or malformed FCM-Token (a.k.a. IID-Token).



I hope I was clear with this my second message. Do you have any idea to help me?



Thank you so much!










share|improve this question

























  • FirebaseAppDelegateProxyEnabled added and setted as 'NO'

    – lilip4Z
    Nov 24 '18 at 16:38
















2















My code is in Objective-C



Firebase side




  1. App created

  2. General settings --> done

  3. APNs Auth Key --> done


Apple developer account side




  1. App ID --> done

  2. Dev and Distribution certificates --> done

  3. Dev and Distribution profiles --> done


App side




  1. My AppDelegate calls registerForRemoteNotifications without any error and the method "didReceiveRegistrationToken" is able to return a string like in the following: NSLog(@"Remote instance ID token: %@", result.token);

  2. First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!

  3. I have implemented all functions didReceiveRemoteNotification both if I am receiving a notification message while the app is in the background and if it isn't.

  4. GoogleService-Info.plist --> moved inside my project


PROBLEM



The problem is my app is not able to receive any notification I am going to send by using the firebase console. didReceiveRemoteNotification never called!



I have read all your feedback on other questions but I didn't solve my problem.



UPDATE #1



Thank you iDev750 for your answer!



My problem is I do not receive notifications on my app when I send them from the firebase console or directly from my backend. In my opinion if I do not receive a notification it is impossible that didReceiveRemoteNotification is called, are you agree with me?



Anyway, as you said, I sent a push message directly to my token/device and the result is in the following:



{"multicast_id":6185922XXX,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1543141675131005%YYYY"}]}



So, it is sure the message has been sent, otherwise the output should be something like The request's Authentication (Server-) Key contained an invalid or malformed FCM-Token (a.k.a. IID-Token).



I hope I was clear with this my second message. Do you have any idea to help me?



Thank you so much!










share|improve this question

























  • FirebaseAppDelegateProxyEnabled added and setted as 'NO'

    – lilip4Z
    Nov 24 '18 at 16:38














2












2








2








My code is in Objective-C



Firebase side




  1. App created

  2. General settings --> done

  3. APNs Auth Key --> done


Apple developer account side




  1. App ID --> done

  2. Dev and Distribution certificates --> done

  3. Dev and Distribution profiles --> done


App side




  1. My AppDelegate calls registerForRemoteNotifications without any error and the method "didReceiveRegistrationToken" is able to return a string like in the following: NSLog(@"Remote instance ID token: %@", result.token);

  2. First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!

  3. I have implemented all functions didReceiveRemoteNotification both if I am receiving a notification message while the app is in the background and if it isn't.

  4. GoogleService-Info.plist --> moved inside my project


PROBLEM



The problem is my app is not able to receive any notification I am going to send by using the firebase console. didReceiveRemoteNotification never called!



I have read all your feedback on other questions but I didn't solve my problem.



UPDATE #1



Thank you iDev750 for your answer!



My problem is I do not receive notifications on my app when I send them from the firebase console or directly from my backend. In my opinion if I do not receive a notification it is impossible that didReceiveRemoteNotification is called, are you agree with me?



Anyway, as you said, I sent a push message directly to my token/device and the result is in the following:



{"multicast_id":6185922XXX,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1543141675131005%YYYY"}]}



So, it is sure the message has been sent, otherwise the output should be something like The request's Authentication (Server-) Key contained an invalid or malformed FCM-Token (a.k.a. IID-Token).



I hope I was clear with this my second message. Do you have any idea to help me?



Thank you so much!










share|improve this question
















My code is in Objective-C



Firebase side




  1. App created

  2. General settings --> done

  3. APNs Auth Key --> done


Apple developer account side




  1. App ID --> done

  2. Dev and Distribution certificates --> done

  3. Dev and Distribution profiles --> done


App side




  1. My AppDelegate calls registerForRemoteNotifications without any error and the method "didReceiveRegistrationToken" is able to return a string like in the following: NSLog(@"Remote instance ID token: %@", result.token);

  2. First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!

  3. I have implemented all functions didReceiveRemoteNotification both if I am receiving a notification message while the app is in the background and if it isn't.

  4. GoogleService-Info.plist --> moved inside my project


PROBLEM



The problem is my app is not able to receive any notification I am going to send by using the firebase console. didReceiveRemoteNotification never called!



I have read all your feedback on other questions but I didn't solve my problem.



UPDATE #1



Thank you iDev750 for your answer!



My problem is I do not receive notifications on my app when I send them from the firebase console or directly from my backend. In my opinion if I do not receive a notification it is impossible that didReceiveRemoteNotification is called, are you agree with me?



Anyway, as you said, I sent a push message directly to my token/device and the result is in the following:



{"multicast_id":6185922XXX,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1543141675131005%YYYY"}]}



So, it is sure the message has been sent, otherwise the output should be something like The request's Authentication (Server-) Key contained an invalid or malformed FCM-Token (a.k.a. IID-Token).



I hope I was clear with this my second message. Do you have any idea to help me?



Thank you so much!







ios objective-c firebase push-notification firebase-cloud-messaging






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 16:13







lilip4Z

















asked Nov 24 '18 at 16:18









lilip4Zlilip4Z

113




113













  • FirebaseAppDelegateProxyEnabled added and setted as 'NO'

    – lilip4Z
    Nov 24 '18 at 16:38



















  • FirebaseAppDelegateProxyEnabled added and setted as 'NO'

    – lilip4Z
    Nov 24 '18 at 16:38

















FirebaseAppDelegateProxyEnabled added and setted as 'NO'

– lilip4Z
Nov 24 '18 at 16:38





FirebaseAppDelegateProxyEnabled added and setted as 'NO'

– lilip4Z
Nov 24 '18 at 16:38












1 Answer
1






active

oldest

votes


















0














Here you said two points in your question.




  1. Notification is not receiving in your app.

  2. didReceiveRemoteNotification never called.


First, which is your problem? becasue both are different issue.



You can do one thing that just install your app in iPhone and paste your device token on Firebase console and send test notification on that device. Just forget about "didReceiveRemoteNotification" method that calling or not.



Now, if you are getting notifications but didReceiveRemoteNotification is not calling then check my answer:
https://stackoverflow.com/a/53460880/1673192



If notification is receiving on the device, might be some other issue like -




  • Is push notification enable for your AppId created on AppStore?

  • Is push notification enable in your app -> Targets -> Capabilities -> Push Notifications


Check these points and let me know still you have any issue.






share|improve this answer
























  • Thank you! I answered in the thread in order to be more clear!

    – lilip4Z
    Nov 25 '18 at 10:45











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53460056%2fnotifications-do-not-arrive-to-my-ios-app%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Here you said two points in your question.




  1. Notification is not receiving in your app.

  2. didReceiveRemoteNotification never called.


First, which is your problem? becasue both are different issue.



You can do one thing that just install your app in iPhone and paste your device token on Firebase console and send test notification on that device. Just forget about "didReceiveRemoteNotification" method that calling or not.



Now, if you are getting notifications but didReceiveRemoteNotification is not calling then check my answer:
https://stackoverflow.com/a/53460880/1673192



If notification is receiving on the device, might be some other issue like -




  • Is push notification enable for your AppId created on AppStore?

  • Is push notification enable in your app -> Targets -> Capabilities -> Push Notifications


Check these points and let me know still you have any issue.






share|improve this answer
























  • Thank you! I answered in the thread in order to be more clear!

    – lilip4Z
    Nov 25 '18 at 10:45
















0














Here you said two points in your question.




  1. Notification is not receiving in your app.

  2. didReceiveRemoteNotification never called.


First, which is your problem? becasue both are different issue.



You can do one thing that just install your app in iPhone and paste your device token on Firebase console and send test notification on that device. Just forget about "didReceiveRemoteNotification" method that calling or not.



Now, if you are getting notifications but didReceiveRemoteNotification is not calling then check my answer:
https://stackoverflow.com/a/53460880/1673192



If notification is receiving on the device, might be some other issue like -




  • Is push notification enable for your AppId created on AppStore?

  • Is push notification enable in your app -> Targets -> Capabilities -> Push Notifications


Check these points and let me know still you have any issue.






share|improve this answer
























  • Thank you! I answered in the thread in order to be more clear!

    – lilip4Z
    Nov 25 '18 at 10:45














0












0








0







Here you said two points in your question.




  1. Notification is not receiving in your app.

  2. didReceiveRemoteNotification never called.


First, which is your problem? becasue both are different issue.



You can do one thing that just install your app in iPhone and paste your device token on Firebase console and send test notification on that device. Just forget about "didReceiveRemoteNotification" method that calling or not.



Now, if you are getting notifications but didReceiveRemoteNotification is not calling then check my answer:
https://stackoverflow.com/a/53460880/1673192



If notification is receiving on the device, might be some other issue like -




  • Is push notification enable for your AppId created on AppStore?

  • Is push notification enable in your app -> Targets -> Capabilities -> Push Notifications


Check these points and let me know still you have any issue.






share|improve this answer













Here you said two points in your question.




  1. Notification is not receiving in your app.

  2. didReceiveRemoteNotification never called.


First, which is your problem? becasue both are different issue.



You can do one thing that just install your app in iPhone and paste your device token on Firebase console and send test notification on that device. Just forget about "didReceiveRemoteNotification" method that calling or not.



Now, if you are getting notifications but didReceiveRemoteNotification is not calling then check my answer:
https://stackoverflow.com/a/53460880/1673192



If notification is receiving on the device, might be some other issue like -




  • Is push notification enable for your AppId created on AppStore?

  • Is push notification enable in your app -> Targets -> Capabilities -> Push Notifications


Check these points and let me know still you have any issue.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 24 '18 at 18:01









iDev750iDev750

5961316




5961316













  • Thank you! I answered in the thread in order to be more clear!

    – lilip4Z
    Nov 25 '18 at 10:45



















  • Thank you! I answered in the thread in order to be more clear!

    – lilip4Z
    Nov 25 '18 at 10:45

















Thank you! I answered in the thread in order to be more clear!

– lilip4Z
Nov 25 '18 at 10:45





Thank you! I answered in the thread in order to be more clear!

– lilip4Z
Nov 25 '18 at 10:45




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53460056%2fnotifications-do-not-arrive-to-my-ios-app%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen