File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed 
androidApp/src/androidMain/kotlin/org/jetbrains/kotlinconf/android Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,18 @@ class MainActivity : ComponentActivity() {
6868    private  fun  processIntent (intent :  Intent ? ) {
6969        if  (intent ==  null ) return 
7070
71-         val  notificationId =  intent.getStringExtra(EXTRA_LOCAL_NOTIFICATION_ID )
72-         if  (notificationId !=  null ) {
73-             //  Local notification clicked
74-             navigateByLocalNotificationId(notificationId)
71+         try  {
72+             val  notificationId =  intent.getStringExtra(EXTRA_LOCAL_NOTIFICATION_ID )
73+             if  (notificationId !=  null ) {
74+                 //  Local notification clicked
75+                 navigateByLocalNotificationId(notificationId)
76+                 return 
77+             }
78+ 
79+             //  Process push notifications
80+             NotifierManager .onCreateOrOnNewIntent(intent)
81+         } catch  (e:  Exception ) {
7582            return 
7683        }
77- 
78-         //  Process push notifications
79-         NotifierManager .onCreateOrOnNewIntent(intent)
8084    }
8185}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments