Skip to content

Fix oreo notification sound#70

Open
andreybeta wants to merge 11 commits intomorinel:masterfrom
andreybeta:fix-oreo-notification-sound
Open

Fix oreo notification sound#70
andreybeta wants to merge 11 commits intomorinel:masterfrom
andreybeta:fix-oreo-notification-sound

Conversation

@andreybeta
Copy link

Add sound to notification channel in oreo

cr0ybot and others added 11 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
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