Example usage for org.apache.cordova.firebase Utils handlePush

List of usage examples for org.apache.cordova.firebase Utils handlePush

Introduction

In this page you can find the example usage for org.apache.cordova.firebase Utils handlePush.

Prototype

public static void handlePush(String str, boolean isShow) 

Source Link

Usage

From source file:com.abcxo.tomato.MainActivity.java

License:Apache License

private void handlePush(Intent intent) {
    try {/*from ww  w  .  j  a v a 2  s.c  o  m*/
        if (intent.getExtras() != null) {
            JSONObject object = new JSONObject();
            object.put("title", "?");
            object.put("text", "?");
            object.put("type", intent.getExtras().getString("type"));
            object.put("content", intent.getExtras().getString("content"));
            Utils.handlePush(object.toString(), false);
        }
    } catch (Exception e) {

    }
}