docs: private void _showNotificationIfAvailable(Context context) {
          SharedPreferences prefs = StorageHelper.getPreferences(context);
          try {
              if (!canShowInAppOnActivity()) {
                  Logger.v("Not showing notification on blacklisted activity");
                  return;
              }
  
              checkPendingNotifications(context, config);  // see if we have any pending notifications
  
              JSONArray inapps = new JSONArray(getStringFromPrefs(Constants.PREFS_INAPP_KEY, "[]"));
              if (inapps.length() < 1) {
                  return;
              }
  
              JSONObject inapp = inapps.getJSONObject(0);
              prepareNotificationForDisplay(inapp);
  
              // JSON array doesn't have the feature to remove a single element,
              // so we have to copy over the entire array, but the first element
              JSONArray inappsUpdated = new JSONArray();
              for (int i = 0; i < inapps.length(); i++) {
                  if (i==0) continue;
                  inappsUpdated.put(inapps.get(i));
              }
              SharedPreferences.Editor editor = prefs.edit().putString(storageKeyWithSuffix(Constants.PREFS_INAPP_KEY), inappsUpdated.toString());
              StorageHelper.persist(editor);
          } catch (Throwable t) {
              // We won't get here
              getConfigLogger().verbose(getAccountId(),"InApp: Couldn't parse JSON array string from prefs", t);
          }
      }