Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using raix:push and cordova:com.phonegap.plugins.facebookconnect #192

Closed
itaibs opened this issue Mar 21, 2016 · 3 comments
Closed

Using raix:push and cordova:com.phonegap.plugins.facebookconnect #192

itaibs opened this issue Mar 21, 2016 · 3 comments

Comments

@itaibs
Copy link

itaibs commented Mar 21, 2016

Hi!

I've left a post on the Meteor forums as well, but so far no replies. I thought it might be more suitable here as it has to do directly with this package (and many thanks for this package by the way! It rocks :)).

The issue:
I'm working on a mobile Meteor app for both iOS and Android. In the app I need to have push notifications and for that I'm using raix:push and it's great.
I also would like the users to sign up to the app using their Facebook account and following this great guide, I have successfully made that happen on iOS.

The problem is that the above broke my Android build. I am now getting an error when trying to run on Android:

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define

Researching this online, it was easy to conclude that this is because of a clash between the two plugins in the title of this issue (and in fact if I remove cordova:com.phonegap.plugins.facebookconnect Android runs just fine).
AFAIU, this happens because cordova:com.phonegap.plugins.facebookconnect uses android-support-v4.jar and not v13, but I wasn't able to understand how to fix this issue from a Meteor app.

Since signing up using Facebook and using push notifications are both very common needs, I'm hoping someone else dealt with this issue successfully on Meteor before... Any help would be greatly appreciated!

Thanks.

@raix
Copy link
Collaborator

raix commented Mar 30, 2016

Hey @itaibs it sounds like theres a conflict between the two cordova plugins
It seems like its in the facebook plugin judging by Wizcorp/phonegap-facebook-plugin#1183 (comment)

@itaibs
Copy link
Author

itaibs commented Mar 30, 2016

Thanks a lot for the reply. I'll try to implement the solution in the link soon. I'm currently working on updating my app to use Meteor 1.3 so it'll probably take me a day or two to get to this. I hope it will be possible to implement this on Meteor, since it sounds like everyone on that thread is using Cordova directly and not via Meteor.

I'll post back with an update soon :).

@itaibs
Copy link
Author

itaibs commented Mar 31, 2016

I forked the facebook plugin (seems like many others have done the same :)) and changed it as it says there. Things are looking good on Android now. I'll chek iOS as well soon and reports back.

Thanks a lot for the help!

@itaibs itaibs closed this as completed Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants