Compare commits

..
3 Commits
Author SHA1 Message Date
Akinwale Ariwodola 2699893581 bumpversion 0.10.2 --> 0.11.0 2019-11-04 08:49:41 +01:00
Akinwale Ariwodola 21914a0bd7 Merge pull request #752 from lbryio/fcm-data
handle FCM data-only messages
2019-11-04 08:48:50 +01:00
Akinwale Ariwodola d83667682d handle FCM data-only messages 2019-11-01 06:54:32 +01:00
3 changed files with 9 additions and 14 deletions

No files matched your search

+1 -1
Submodule app updated: 5915919560...a127e14a0f.
@@ -41,19 +41,14 @@ public class LbrynetMessagingService extends FirebaseMessagingService {
Log.d(TAG, "From: " + remoteMessage.getFrom());
Map<String, String> payload = remoteMessage.getData();
String type = null;
String url = null;
if (payload != null) {
type = payload.get("type");
url = payload.get("target");
}
if (type != null && getEnabledTypes().indexOf(type) > -1) {
// Check if message contains a notification payload.
RemoteMessage.Notification remoteNotification = remoteMessage.getNotification();
if (remoteNotification != null) {
Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody());
sendNotification(remoteNotification.getTitle(), remoteNotification.getBody(), type, url);
String type = payload.get("type");
String url = payload.get("target");
String title = payload.get("title");
String body = payload.get("body");
if (type != null && getEnabledTypes().indexOf(type) > -1 && body != null && body.trim().length() > 0) {
Log.d(TAG, "Message Notification Body: " + body);
sendNotification(title, body, type, url);
}
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
__version__ = "0.10.2"
__version__ = "0.11.0"
class ServiceApp(App):
def build(self):