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

Fix for new cordova paths #213 #439

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Grohden
Copy link

@Grohden Grohden commented Jan 8, 2018

This should fix the new cordova folder structures ( #213 )

Cordova 7.0+ changed the android paths structure, this should fix that problem and also maintain compatibility with older versions
@notreniev
Copy link

Works for me.

@mburger81
Copy link

Can someone of the team jump into this PR to resolving also issues #436 and #438

@fechanique @aparedes @lp1bp

@Grohden
Copy link
Author

Grohden commented Jan 12, 2018

@mburger81 this plugin seems to be abandoned :/ i gave up and used the other firebase plugin (https://github.com/arnesson/cordova-plugin-firebase), which i gave up too when i saw that it needs the local notifications plugin that doesn't support ios 9, so i gave up on firebase and went to onesignal that's really simple to setup to push notifications for cordova.

@mburger81
Copy link

@Grohden you could fork the plugin and release it on npm resolving the issue and make the plugin open to onayone which would like to use it?

For us the problem using cordova-plugin-firebase is not, not supporting ios9, today only about 5% are less then ios10. But this plugin is still only in beta.

We had used before onesignal, but we removed it for this reason: Using onesignal put's another cloud service in the middle. onesignal makes a push on firebase, so you have this iter "our server -> onesignal server -> firebase server -> device" a lot of point of failures in my opinion :)
What do you think about it?

@Grohden
Copy link
Author

Grohden commented Jan 12, 2018

@mburger81 I'm aware of that detail, but from my point of view the jedi are evil onesignal implements what we need to deal with notifications (like badge count on ios) with only one cordova plugin, which is "official" (they need to update it and keep it working for their clients), is really easy to deal with and is open source. Firebase only has the native SDKs so we depend on plugins like this.. (of course i had other reasons to choose it, but we shouldn't discuss this here)

My only concern about onesignal is the company future, but that doesn't seems to be uncertain.

About keeping a version of the plugin: i don't know Objective-C or Swift, neither do i own an apple device (including a mac), so can't help in that part. I would help with Android and JS part in my spare time, which will be almost nonexistent in the next month when i get back to university, so i can't maintain any projects for the next year.. but i still can help anyone's fork

Copy link

@doejon doejon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please get this fix merged;

@aparedes
Copy link
Contributor

I would love to help but I'm not a part of the team. I ended up just doing my locally. It seems that @fechanique is not interested in this project anymore.

@Grohden
Copy link
Author

Grohden commented Mar 28, 2018

@doejon i've merged the fix (there were a lot of changes on the file since i fixed), but i don't use this plugin anymore and i could not test, i would appreciate if anyone can test it and confirm if it's still working.

Copy link

@antirius antirius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need reverse strings (or !isNewFolderStructures) and replace "platforms/android/app" on "platforms/android/app/"

var gServicesWritePath = isNewFolderStructures ? "platforms/android/" : "platforms/android/app" ;
var stringsPath = (isNewFolderStructures ? "platforms/android" : "platforms/android/app/src/main") + "/res/values/strings.xml"

@Grohden
Copy link
Author

Grohden commented Apr 19, 2018

@antirius which lines do you refer? i reversed that in the third commit (d63e2f3) and i removed the gServicesWritePath & stringsPath variables after the merge..

@antirius
Copy link

@Grohden All right, I'm sorry

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

Successfully merging this pull request may close these issues.

6 participants