List of usage examples for org.apache.cordova.firebase Utils handlePush
public static void handlePush(String str, boolean isShow)
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) { } }