Closed andyts93 closed 4 years ago
Same here...
Could u provide a repo to reproduce the problem?
Also double check that you opened the .xcworkspace
file as described in the doc https://github.com/jeduan/cordova-plugin-facebook4/tree/master/docs/ios
@peterpeterparker Yes I'm using the .xcworkspace
file. I've found out that it was a problem of incompatibility with the plugin cordova-plugin-firebasex
, I've replaced it with cordova-plugin-fcm-with-dependecy-updated
to solve it
Cool happy to hear you resolved your issue 👍
Any chance to re-open this issue? I'm having the same problem and can't find any solutions. In my case I'm not using firebasex.
Thanks
Same error, without using cordova-plugin-firebasex.
The problem seems to be caused by the fact that some params (FacebookAppID etc.) are not added to the appropriate plist file and not available when the app is running. For example, these must be present in
The problem is that some cordova plugins (for example, cordova-plugin-facebook4, cordova-plugin-googleplus etc.) use config-file tag in plugin.xml to update your *-Info.plist file and due to the bug in cordova (see https://github.com/apache/cordova-common/issues/88) those changes are applied to the wrong plist file and not working.
The dirty and quick fix is to change the below line at 179 in
var plistName = getIOSProjectname(project_dir) + '-Info.plist';
to
var plistName = '/' + getIOSProjectname(project_dir) + '-Info.plist';
For more details about the fix please see https://github.com/apache/cordova-common/issues/88#issuecomment-531129778
IMPORTANT: it must be done before restoring/adding platforms and plugins or remove and restore platforms/plugins after this change is made.
The file @ryaa refers to seems to changed a bit, there's no matching line nor variable names.
What I did was in xCode, open info tab and add FacebookAppID : id FacebookDisplayName : app package name
also on the bottom, add url type with fb*****(your id)
I get this error in an Ionic application when I call the login function. I've tried to remove and re-create the iOS platform but it doesn't solve the problem.
Cordova 9.0.0 Cordova-iOS 5.0.1 Plugin version 6.2.0
Here's my package.json cordova array