• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Flutter 게시판 notification이 뜨지 않습니다.

notification이 뜨지 않습니다.

3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 글쓴이
  • #57002

    진동현
    참가자
    안녕하세요 코딩애플님.
    
    notification 에서 + 버튼을 눌렀을때 알림이 오지 않습니다.
    https://codingapple.com/forums/topic/%eb%b2%84%ed%8a%bc-%eb%88%8c%eb%9f%ac%eb%8f%84-%ec%95%8c%eb%a6%bc%ec%9d%b4-%eb%9c%a8%ec%a7%80-%ec%95%8a%ec%8a%b5%eb%8b%88%eb%8b%a4/
    이전에도 비슷한 질문이 올라와 댓글 달아주신것처럼
    notification 파일에 오타가 있는지 - 없음.
    icon 파일 이름이 제대로 되어있는지 - 제대로 되어있음
    
    해결 방법이 있을까요?
    위 질문과 똑같은 에러가 발생합니다.
    
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): Failed to handle method call
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.setSmallIcon(FlutterLocalNotificationsPlugin.java:326)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.createNotification(FlutterLocalNotificationsPlugin.java:233)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.showNotification(FlutterLocalNotificationsPlugin.java:1035)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.show(FlutterLocalNotificationsPlugin.java:1376)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.onMethodCall(FlutterLocalNotificationsPlugin.java:1245)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at android.os.Handler.handleCallback(Handler.java:938)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at android.os.Looper.loopOnce(Looper.java:226)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at android.os.Looper.loop(Looper.java:313)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at android.app.ActivityThread.main(ActivityThread.java:8669)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at java.lang.reflect.Method.invoke(Native Method)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    E/MethodChannel#dexterous.com/flutter/local_notifications( 8120): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
    E/flutter ( 8120): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
    E/flutter ( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.setSmallIcon(FlutterLocalNotificationsPlugin.java:326)
    E/flutter ( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.createNotification(FlutterLocalNotificationsPlugin.java:233)
    E/flutter ( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.showNotification(FlutterLocalNotificationsPlugin.java:1035)
    E/flutter ( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.show(FlutterLocalNotificationsPlugin.java:1376)
    E/flutter ( 8120): 	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.onMethodCall(FlutterLocalNotificationsPlugin.java:1245)
    E/flutter ( 8120): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
    E/flutter ( 8120): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
    E/flutter ( 8120): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
    E/flutter ( 8120): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
    E/flutter ( 8120): 	at android.os.Handler.handleCallback(Handler.java:938)
    E/flutter ( 8120): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    E/flutter ( 8120): 	at android.os.Looper.loopOnce(Looper.java:226)
    E/flutter ( 8120): 	at android.os.Looper.loop(Looper.java:313)
    E/flutter ( 8120): 	at android.app.ActivityThread.main(ActivityThread.java:8669)
    E/flutter ( 8120): 	at java.lang.reflect.Method.invoke(Native Method)
    E/flutter ( 8120): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    E/flutter ( 8120): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
    E/flutter ( 8120): )
    E/flutter ( 8120): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
    E/flutter ( 8120): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:296:18)
    E/flutter ( 8120): <asynchronous suspension>
    E/flutter ( 8120): #2      FlutterLocalNotificationsPlugin.show (package:flutter_local_notifications/src/flutter_local_notifications_plugin.dart:215:7)
    E/flutter ( 8120): <asynchronous suspension>
    E/flutter ( 8120): 
    
    
    #57006

    진동현
    참가자
    자답입니다. app_icon으로 되어있으나 mimmap/ic_launcher.png 즉 기본 아이콘으로 수정하니 됩니다..
    app_icon일때 왜 안되는지는 파악이 안되네요
    #57064

    codingapple
    키 마스터
    https://stackoverflow.com/a/72226349
    넴 이름바꾸거나 하면 될 수도 있다는군요
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠