-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Cordova-ios 4.4.0 Problems #1701
Comments
i'm not getting with push notifications with FCM on iOS. Both in Dev (Sandbox) or with Prod certs. Are there any workarounds you would suggest or debugging steps? thanks Edit: I had an issue with pem certs and provisioning certs. |
Using cordova-ios 4.4.0 as engine. |
@markos92i I'm working on an rc3 which does the copying of the Google Services without a hook. |
With the rc3 still the file isn't copied, I've taken a look at the new and I think the origin path is different than before (it was copied from the root of the project, not from src/ios/) And if you use cordova 7.0.0 it doesnt even install:
|
I've been trying to go back to rc2 and cordova-ios 4.3.1 as it worked in the past, but now it says that it cannot work with 4.3.1, that rc2 needs 4.4.0??? |
@markos92i with RC3 I'm noticing two Google-services.plist files. The one directly under Resources seems to have all the right values. The one under Resources/Resources seems to be the stub file included with the plugin. I'm trying to use FCM but it looks like the emtpy .plist file is causing the SENDER_ID to be empty when running on a device. Is there a way to explicitly set ios to use FCM or fix this issue? I'm also using cordova-ios 4.4.0. |
The hook is gone now, you have to use |
I seem to be running into this issue quite often when trying to build iOS:
I have this in my config.xml:
|
That worked, and the GoogleService-Info.plist file is now correctly added to the project, thank you. Now im facing the entitlements problem, the two things that i think might be the cause are: |
Yeah, if another plugin is using .entitlements file that will cause problems with this plugin, as, as you said, it uses .plist for entitlements. I think there is a feature request open for cordova-ios to use .entilements file instead of .plist. For now the only thing you can do is to fork the other plugin and change it to write on the .plist instead of creating a .entitlements file. |
I added in a plugin.xml of a custom plugin that I have, the following:
And it adds the entitlement and enables de capability correctly, along with the others of deeplinks or whatever other plugin. |
@shazron thoughts on the entitlements issue? |
If the other plugin is adding a .entitlements file then Xcode will use it instead of the entitlements.plist. We should move to the .entitlements file on cordova-ios, I think there was an issue open for it. |
cordova-ios issue: https://issues.apache.org/jira/browse/CB-12316 |
Please add comments into the JIRA issue. Problem is -- an older version of the push plugin (and possibly others) might already depend on the filename being ??.plist so we would break them, we might need a proper migration path. @markos92i does that create an .entitlements file or just modify an existing one? |
@shazron I'm happy to break things with the 2.0.0 release as it will be a major version bump. |
@shazron it modifies the existing one, but I didn't really try if when it does not exist it is created. |
With the latest rc4 i cant put a "data" object inside de payload, as before. If I send it with whatever other name it works... what did you do T_T. This is the payload: {
"to": "/topics/_android_",
"priority": "high",
"data": {
"app": "MOV_PROD",
"title": "TEST",
"message": "This is a Firebase Cloud Messaging Topic Message!",
"icon": "rtve_logo_push_color",
"data": {
"idMensaje": "2611",
"servicio": "MOV_NOTIC",
"infopopup": "Tiene nuevas noticias"
}
}
} And this is the only way to make "data" be received: {
"to": "/topics/_android_",
"priority": "high",
"data": {
"app": "MOV_PROD",
"title": "TEST",
"message": "This is a Firebase Cloud Messaging Topic Message!",
"icon": "rtve_logo_push_color",
"WHATEVER": {
"idMensaje": "2611",
"servicio": "MOV_NOTIC",
"infopopup": "Tiene nuevas noticias"
}
}
} |
I'm having a problem, in my folders, Resources folders in ios platform does not contain Resources/Resources, inside the first Resources is only GoogleMapsbundle, for this reason my app only generates APN push, any guesses what might be? |
There shouldn't be a Resources folder inside Resources folder, only one Resources folder. But I don't think I understand your question, what does the GoogleMapsbundle has to do with push? |
I configured plugin.xml as it says in the plugin docs for Google.plist, but the plugin is not copying the .plist inside the Resources folder, inside the Resources folder there's only GoogleMaps.bundle (from another plugin), when I try to manually copy the .plist nothing happens and he's not initializing fcm for me just APN push. When I get the registration is only from APN |
You have to put it on the config.xml, not in the plugin.xml |
The documentation is a little bit ambiguous... But now I'll try that
|
@jcesarmobile Thanks man, worked like a charm, I was in this issue for weeks!! |
where is that text? can you link it? here it says config.xml https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md |
ah, that's old, v2.0.x branch was merged into master, so new changes are on master branch now instead of v2.0.x. We should probably delete it. |
@jcesarmobile I'm installing the plugin using phonegap-plugin-push@v2.0.0-rc5 is that correct? |
Still running into this issue quite often. Only solution I have found is recreating that whole iOS platform. |
The fix is: ionic-team/ionic-plugin-deeplinks#99 (comment) |
@tlaverdure same here |
worked for me:
|
Still waiting for fix in cordova-ios |
I'm having the same issue, push is always OFF under the Capabilities tab. If I understand this thread correctly, this is a cordova ios version (I'm using the latest 4.5.3) and not an issue with this plugin? |
I'm using XCode 9.0, Cordova-CLI (7.1.0), with Cordova-IOS (4.5.3) and the Phonegap-Plugin-Push (2.1.0) and Push Notifications are not working. The XCode project 'Capabilities' tab shows 'Push Notifications' as OFF. Any guidance would be greatly appreciated. |
The way cordova-ios works, it doesn't enable capabilities in Xcode, that doesn't mean that push notifications don't work because of that. If you use another plugin that adds a .entitlements file, it will conflict with this plugin and push won't work. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This thread has been automatically locked. |
Expected Behaviour
Actual Behaviour
Google-services.plist copied in wrong folder
Push Notification capabilities not activated
APS Environment not setted to development
Reproduce Scenario (including but not limited to)
Steps to Reproduce
cordova platform add ios
cordova build ios --release
Open xcode.workspace
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Xcode 8.3.2
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Plugin version
2.0.0-rc2
Sample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: