jpush / jpush-flutter-plugin

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
842 stars 352 forks source link

使用dev-3.x分支,当安卓端程序处于后台时,点击通知无法成功打开app #448

Open zinc357 opened 11 months ago

zinc357 commented 11 months ago

报错:startActivity called from non-Activity context;

zinc357 commented 11 months ago

startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=cn.jpush.android.intent.NOTIFICATION_OPENED flg=0x800000 cmp=com.maintain.smartwater/cn.jpush.android.service.JNotifyActivity (has extras) }

lan2000 commented 2 months ago

jpush_flutter: ^3.0.6

安卓手机(nova6),app在后台,点击通知栏消息,app无法返回前台。

我直接下载和运行jpush_flutter: ^3.0.6 的example 1.极光控制台发送的测试通知,点击通知栏消息,app无法返回前台。 2.点击“发本地推送”按钮发送的本地通知,点击通知栏消息,app无法返回前台。

5c10985f09f96261af5d74052db56cd

[!] Flutter (Channel stable, 3.22.3, on Microsoft Windows [版本 10.0.19042.630], locale zh-CN)
    • Flutter version 3.22.3 on channel stable at D:\flutter\flutter                                                                                         
    ! Upstream repository unknown source is not a standard remote.                                                                                           
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.                                                                    
    • Framework revision b0850beeb2 (4 weeks ago), 2024-07-16 21:43:41 -0700                                                                                 
    • Engine revision 235db911ba                                                                                                                             
    • Dart version 3.4.4                                                                                                                                     
    • DevTools version 2.34.3                                                                                                                                
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[√] Connected device (5 available)
    • WLZ AL10 (mobile) • FMLDU19C13016286 • android-arm64  • Android 12 (API 31)