Open buzz-uion opened 5 years ago
have you resolved issue?
I have the same issue. For me the notifications stopped displaying after I installed the cordova-plugin-deeplinks plugin.
The messages show up in the XCode console and the callback is triggered when the app is open, but the notification is not displayed.
Cordova iOS: cordova-ios@4.5.5 Cordova CLI: 8.1.2 (cordova-lib@8.1.1) Build System: Legacy Build System Plugins: cordova-plugin-advanced-http 2.0.4 "Advanced HTTP plugin" cordova-plugin-deeplinks 1.1.0 "Cordova Deeplinks Plugin" cordova-plugin-file 6.0.1 "File" cordova-plugin-firebase 2.0.5 "Google Firebase Plugin" cordova-plugin-geolocation 4.0.1 "Geolocation" cordova-plugin-googlemaps 2.5.0 "cordova-plugin-googlemaps" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-web-share 1.2.0 "WebShare" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-plugin-wkwebview-engine 1.1.4 "Cordova WKWebView Engine"
When the cordova-plugin-deeplinks plugin is installed, the notification in the XCode console looks like this:
2019-02-27 15:13:30.898157+0100 MyApp[380:45899] Received data message: {
defBody = "My default body";
defTitle = "My default title";
from = 324170331014;
group = GHdUQcSvDi1rkJpRE0wO;
id = aCg9IjQpVknV4yO9G5xd;
}
When the cordova-plugin-deeplinks plugin is not installed, the notification in the XCode console looks like this:
2019-02-27 16:51:42.472750+0100 MyApp[493:61009] {
aps = {
alert = {
body = "My body";
"loc-args" = (
"My",
"body"
);
"loc-key" = "notification_body";
title = Title;
"title-loc-args" = (
Title
);
"title-loc-key" = "notification_title";
};
"content-available" = 1;
};
defBody = "My default body";
defTitle = "My default title";
"gcm.message_id" = 1551282701834484;
"google.c.a.e" = 1;
group = GHdUQcSvDi1rkJpRE0wO;
id = xescBwo24sqEfci9gO7Y;
tap = 0;
}
Ok, I solved my problem. There was a conflict in how the two plugins managed the ios entitlements. After I fixed that, the notifications still didn't show up. I had to remove the app from the device and rebuild and reinstall it to fix the problem. Now the notifications work properly.
have you resolved issue?
No. The problem still continues =/
Ok, I solved my problem. There was a conflict in how the two plugins managed the ios entitlements. After I fixed that, the notifications still didn't show up. I had to remove the app from the device and rebuild and reinstall it to fix the problem. Now the notifications work properly.
In my case, my project does not have any additional plugins. I am using the demo project, believed that there is no conflicting plugin at the moment.
@buzz-uion ever managed to fix this? @petert37 Care to elaborate on the ios entitlements? I've spent 3 days on trying to get notifications to work on iOS without any success. Entitlements is the only thing I haven't really looked into yet, but then again, i tried to install a fresh cordova app to test this, so there wouldn't be any conflicts with other plugins.
I have the same issue. Tried to remove other plugins but still not working
@buzz-uion ever managed to fix this? @petert37 Care to elaborate on the ios entitlements? I've spent 3 days on trying to get notifications to work on iOS without any success. Entitlements is the only thing I haven't really looked into yet, but then again, i tried to install a fresh cordova app to test this, so there wouldn't be any conflicts with other plugins.
The deeplinks plugin created its own Entitlements.plist file and changed XCode settings to use the new file (XCode project settings / Build settings / Code Signing Entitlements
). So whatever the firebase plugin put into the entitlements was ignored.
You could check that the XCode settings are set to the default entitlements files (platforms/ios/<ProjectName>/Entitlements-Debug.plist
) (and the same with Entitlements-Release.plist).
Also you could check that these files have something like this in them:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
Finally you could check that in XCode Project settigns / Capabilities
the Push Notifications are ON
But the notifications only started working for me after I Manually Removed the app from the device and then reinstalled it.
I'm creating a test application, but I can not see the push notifications on the device. Messages triggered through the Firebase console arrive to the App, but the application can not display them.
The console shows that the App has connected correctly to the Firebase (token) and that there are incoming messages:
See on: "Received data message:.."
[Using]
Plugin version: 2.0.5 Cordova iOS: cordova-ios@4.5.5 Cordova CLI: 8.1.2 (cordova-lib@8.1.1) Build System: Legacy Build System