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

Migration to Firebase SDK #66

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

Migration to Firebase SDK #66

wants to merge 10 commits into from

Conversation

cr0ybot
Copy link
Contributor

@cr0ybot cr0ybot commented Jun 12, 2018

This is a major update that changes most of the internals to use the Firebase SDK. Upgrading to this version requires migrating your GCM project to Firebase, among other things. See the updated README and documentation for all the details.

Addresses issue #50

cr0ybot and others added 10 commits November 17, 2016 14:09
This is a doozy of a change, but it builds successfully. This may justify a hard fork, since GCM is no longer relevant.  Unsure if the module as built will actually work, and what the implications are for backwards compatibility.

Libs updated, version bumped, and build files removed since they are no longer needed after Ti SDK 7+.
SInce we have no control over Titanium's generated gradle file, and we cannot put the file where it should be anyways, we have to manually load the json and attempt to configure the FirebaseApp with it.
IIDService now broadcasts an Intent which GCMModule listens for. If during registration the token is not yet available, a flag is set, and once the token is refreshed the success callback is called. The way we aren't sending an error immediately, but there is no guarantee that success or error will be called.
You can now pass the google-services.json contents to the `firebaseConfig` parameter in `registerPush()`, which is useful if you have different configurations for development and production builds.

Updated documention with information about Firebase requiring SHA1 in order to receive messages and upgrade to v3 info.

Also removed unneccessarily complicated IID broadcast receiver.
moved creation of channelId up to take effect.
Update FCMService.java to properly handle Android O notification channels
@cr0ybot
Copy link
Contributor Author

cr0ybot commented Jul 30, 2019

OK, I see. Apologies for my confusion, I forked this a long time ago and haven't been back in since. My fork code is "version 3.0". It was meant to be a contribution back to the main repo here but it looks like maybe this is no longer being maintained. You'll have to build the module yourself if you want to use it, but if you're encountering errors there's not much I can do, since I'm rarely working with Titanium these days.

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.

3 participants