Notifications do not arrive to my iOS app
My code is in Objective-C
Firebase side
- App created
- General settings --> done
- APNs Auth Key --> done
Apple developer account side
- App ID --> done
- Dev and Distribution certificates --> done
- Dev and Distribution profiles --> done
App side
- 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);
- First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!
- 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. - 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
add a comment |
My code is in Objective-C
Firebase side
- App created
- General settings --> done
- APNs Auth Key --> done
Apple developer account side
- App ID --> done
- Dev and Distribution certificates --> done
- Dev and Distribution profiles --> done
App side
- 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);
- First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!
- 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. - 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
FirebaseAppDelegateProxyEnabled added and setted as 'NO'
– lilip4Z
Nov 24 '18 at 16:38
add a comment |
My code is in Objective-C
Firebase side
- App created
- General settings --> done
- APNs Auth Key --> done
Apple developer account side
- App ID --> done
- Dev and Distribution certificates --> done
- Dev and Distribution profiles --> done
App side
- 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);
- First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!
- 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. - 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
My code is in Objective-C
Firebase side
- App created
- General settings --> done
- APNs Auth Key --> done
Apple developer account side
- App ID --> done
- Dev and Distribution certificates --> done
- Dev and Distribution profiles --> done
App side
- 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);
- First item confirms that my app is able to reach Firebase Server and APNs because a TOKEN returns always!
- 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. - 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
ios objective-c firebase push-notification firebase-cloud-messaging
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
Here you said two points in your question.
- Notification is not receiving in your app.
- 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.
Thank you! I answered in the thread in order to be more clear!
– lilip4Z
Nov 25 '18 at 10:45
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Here you said two points in your question.
- Notification is not receiving in your app.
- 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.
Thank you! I answered in the thread in order to be more clear!
– lilip4Z
Nov 25 '18 at 10:45
add a comment |
Here you said two points in your question.
- Notification is not receiving in your app.
- 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.
Thank you! I answered in the thread in order to be more clear!
– lilip4Z
Nov 25 '18 at 10:45
add a comment |
Here you said two points in your question.
- Notification is not receiving in your app.
- 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.
Here you said two points in your question.
- Notification is not receiving in your app.
- 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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
FirebaseAppDelegateProxyEnabled added and setted as 'NO'
– lilip4Z
Nov 24 '18 at 16:38