static void handleNotificationClicked ( Context context , Bundle notification ) { if ( notification == null ) return ; String _accountId = null ; try { _accountId = notification . getString ( Constants . WZRK_ACCT_ID_KEY ) ; } catch ( Throwable t ) { // no-op } if ( instances == null ) { CleverTapAPI instance = createInstanceIfAvailable ( context , _accountId ) ; if ( instance != null ) { instance . pushNotificationClickedEvent ( notification ) ; } return ; } for ( String accountId : instances . keySet ( ) ) { CleverTapAPI instance = CleverTapAPI . instances . get ( accountId ) ; boolean shouldProcess = false ; if ( instance != null ) { shouldProcess = ( _accountId == null && instance . config . isDefaultInstance ( ) ) || instance . getAccountId ( ) . equals ( _accountId ) ; } if ( shouldProcess ) { instance . pushNotificationClickedEvent ( notification ) ; break ; } } }
other static handlers