提交 d5dcfe66 authored 作者: 史晓晨's avatar 史晓晨

feat:调试代码

上级 52e48ba0
...@@ -607,6 +607,13 @@ class RammusPlugin : FlutterPlugin, MethodCallHandler { ...@@ -607,6 +607,13 @@ class RammusPlugin : FlutterPlugin, MethodCallHandler {
gottenApplication = flutterPluginBinding.applicationContext gottenApplication = flutterPluginBinding.applicationContext
channel = MethodChannel(flutterPluginBinding.binaryMessenger, "com.jarvanmo/rammus") channel = MethodChannel(flutterPluginBinding.binaryMessenger, "com.jarvanmo/rammus")
RammusPushHandler.methodChannel = channel RammusPushHandler.methodChannel = channel
inHandler.postDelayed({
RammusPushHandler.methodChannel?.invokeMethod("onNotificationOpened", mapOf(
"title" to "title",
"summary" to "summary",
"extras" to "extras"
))
},1500)
channel.setMethodCallHandler(this) channel.setMethodCallHandler(this)
} }
......
...@@ -53,7 +53,6 @@ class RammusPushIntentService : AliyunMessageIntentService() { ...@@ -53,7 +53,6 @@ class RammusPushIntentService : AliyunMessageIntentService() {
override fun onNotificationOpened(p0: Context?, title: String?, summary: String?, extras: String?) { override fun onNotificationOpened(p0: Context?, title: String?, summary: String?, extras: String?) {
LogUtils.d("onNotificationOpened title is $title, summary is $summary, extras: $extras") LogUtils.d("onNotificationOpened title is $title, summary is $summary, extras: $extras")
LogUtils.d("onNotificationOpened RammusPushHandler.methodChannel ${RammusPushHandler.methodChannel}")
handler.postDelayed({ handler.postDelayed({
RammusPushHandler.methodChannel?.invokeMethod("onNotificationOpened", mapOf( RammusPushHandler.methodChannel?.invokeMethod("onNotificationOpened", mapOf(
"title" to title, "title" to title,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论