Ionic Firebase ios unable to subscribe to topic
I have a Ionic app where in I want to be able to push notifications using Firebase, we have used FCM library for the same.
The notifications work seamlessly on android, however on the iOS I am facing the challenge that the device is not able to subscribe to the topic and hence not getting any notifications.
Steps followed:
- On the apple developer account created an APP ID.
- Created a profile and loaded it on my mac
- Created a key uploaded it and then generated a .p12 key for it(certificate).
- Uploaded this key on the firebase app for ios under my project.
- Run my app on the device.
- Token is generated but cant subscribe to topic.
Below are the excerpts from XCode logs:
2018-11-21 16:48:17.808: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
2018-11-21 16:48:17.810: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
and:
2018-11-21 16:48:28.629527+0530 safe-school-app[3421:1163750] InstanceID token: frO-ryN8Yu8:APA91bG0WkMaAxAAVIsW33A21kvv8n27ehjcPOw3QunOuN0gylfK4EROB8JkhInJ7mnGoY68Jqf8YjGE6E6FYUq7H38qa5c3axW9LnScw0iOLtZ52EQZn3DR3SLC_7RTqrEwRNvbUtbX
2018-11-21 16:48:29.404: <FIRMessaging/WARNING> Failed to subscribe to topic Error Domain=com.google.fcm Code=5 "(null)"
I have tried FirebaseAppDelegateProxyEnabled to both be Yes and No.
Any help in this regard will be highly appreciated.
-Vaibhav
ios firebase ionic-framework firebase-cloud-messaging cordova-plugin-fcm
add a comment |
I have a Ionic app where in I want to be able to push notifications using Firebase, we have used FCM library for the same.
The notifications work seamlessly on android, however on the iOS I am facing the challenge that the device is not able to subscribe to the topic and hence not getting any notifications.
Steps followed:
- On the apple developer account created an APP ID.
- Created a profile and loaded it on my mac
- Created a key uploaded it and then generated a .p12 key for it(certificate).
- Uploaded this key on the firebase app for ios under my project.
- Run my app on the device.
- Token is generated but cant subscribe to topic.
Below are the excerpts from XCode logs:
2018-11-21 16:48:17.808: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
2018-11-21 16:48:17.810: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
and:
2018-11-21 16:48:28.629527+0530 safe-school-app[3421:1163750] InstanceID token: frO-ryN8Yu8:APA91bG0WkMaAxAAVIsW33A21kvv8n27ehjcPOw3QunOuN0gylfK4EROB8JkhInJ7mnGoY68Jqf8YjGE6E6FYUq7H38qa5c3axW9LnScw0iOLtZ52EQZn3DR3SLC_7RTqrEwRNvbUtbX
2018-11-21 16:48:29.404: <FIRMessaging/WARNING> Failed to subscribe to topic Error Domain=com.google.fcm Code=5 "(null)"
I have tried FirebaseAppDelegateProxyEnabled to both be Yes and No.
Any help in this regard will be highly appreciated.
-Vaibhav
ios firebase ionic-framework firebase-cloud-messaging cordova-plugin-fcm
add a comment |
I have a Ionic app where in I want to be able to push notifications using Firebase, we have used FCM library for the same.
The notifications work seamlessly on android, however on the iOS I am facing the challenge that the device is not able to subscribe to the topic and hence not getting any notifications.
Steps followed:
- On the apple developer account created an APP ID.
- Created a profile and loaded it on my mac
- Created a key uploaded it and then generated a .p12 key for it(certificate).
- Uploaded this key on the firebase app for ios under my project.
- Run my app on the device.
- Token is generated but cant subscribe to topic.
Below are the excerpts from XCode logs:
2018-11-21 16:48:17.808: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
2018-11-21 16:48:17.810: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
and:
2018-11-21 16:48:28.629527+0530 safe-school-app[3421:1163750] InstanceID token: frO-ryN8Yu8:APA91bG0WkMaAxAAVIsW33A21kvv8n27ehjcPOw3QunOuN0gylfK4EROB8JkhInJ7mnGoY68Jqf8YjGE6E6FYUq7H38qa5c3axW9LnScw0iOLtZ52EQZn3DR3SLC_7RTqrEwRNvbUtbX
2018-11-21 16:48:29.404: <FIRMessaging/WARNING> Failed to subscribe to topic Error Domain=com.google.fcm Code=5 "(null)"
I have tried FirebaseAppDelegateProxyEnabled to both be Yes and No.
Any help in this regard will be highly appreciated.
-Vaibhav
ios firebase ionic-framework firebase-cloud-messaging cordova-plugin-fcm
I have a Ionic app where in I want to be able to push notifications using Firebase, we have used FCM library for the same.
The notifications work seamlessly on android, however on the iOS I am facing the challenge that the device is not able to subscribe to the topic and hence not getting any notifications.
Steps followed:
- On the apple developer account created an APP ID.
- Created a profile and loaded it on my mac
- Created a key uploaded it and then generated a .p12 key for it(certificate).
- Uploaded this key on the firebase app for ios under my project.
- Run my app on the device.
- Token is generated but cant subscribe to topic.
Below are the excerpts from XCode logs:
2018-11-21 16:48:17.808: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
2018-11-21 16:48:17.810: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
and:
2018-11-21 16:48:28.629527+0530 safe-school-app[3421:1163750] InstanceID token: frO-ryN8Yu8:APA91bG0WkMaAxAAVIsW33A21kvv8n27ehjcPOw3QunOuN0gylfK4EROB8JkhInJ7mnGoY68Jqf8YjGE6E6FYUq7H38qa5c3axW9LnScw0iOLtZ52EQZn3DR3SLC_7RTqrEwRNvbUtbX
2018-11-21 16:48:29.404: <FIRMessaging/WARNING> Failed to subscribe to topic Error Domain=com.google.fcm Code=5 "(null)"
I have tried FirebaseAppDelegateProxyEnabled to both be Yes and No.
Any help in this regard will be highly appreciated.
-Vaibhav
ios firebase ionic-framework firebase-cloud-messaging cordova-plugin-fcm
ios firebase ionic-framework firebase-cloud-messaging cordova-plugin-fcm
edited Nov 21 '18 at 13:09
KENdi
5,7992821
5,7992821
asked Nov 21 '18 at 12:31
vaibhavvaibhav
96832044
96832044
add a comment |
add a comment |
0
active
oldest
votes
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%2f53412100%2fionic-firebase-ios-unable-to-subscribe-to-topic%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53412100%2fionic-firebase-ios-unable-to-subscribe-to-topic%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