add log method to utility module
This commit is contained in:
parent
364de592fa
commit
966dd2bf2c
2 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,7 @@ public class LbrynetMessagingService extends FirebaseMessagingService {
|
|||
String channelUrl = payload.get("channel_url");
|
||||
//String publishTime = payload.get("publish_time");
|
||||
String publishTime = null;
|
||||
|
||||
if (type != null && getEnabledTypes().indexOf(type) > -1 && body != null && body.trim().length() > 0) {
|
||||
// only log the receive event for valid notifications received
|
||||
if (firebaseAnalytics != null) {
|
||||
|
|
|
@ -482,4 +482,9 @@ public class UtilityModule extends ReactContextBaseJavaModule {
|
|||
String platform = String.format("Android %s (API %s)", Utils.getAndroidRelease(), Utils.getAndroidSdk());
|
||||
promise.resolve(platform);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void log(String tag, String message) {
|
||||
android.util.Log.d(tag, message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue