Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • notifications_test_ndf
  • main_ud_local_ndf
  • crust-integration
  • new-client
  • internal_build
  • FE-1054_test_net_ndf
  • FE-1053_change_retry_behavior
  • app_modularization_refactor
  • FE_1020_remove_version_check
  • FE-992_android_migration
  • XX-4094_add_fact_panic
  • FE-990_retry_reset_request
  • development
  • 2.92
  • 2.9
  • 2.8
  • 2.7
  • 2.5
  • 2.3
  • 2.2
  • 2.1
  • 2.04
  • 2.03
  • 2.02
25 results

client-android

  • Clone with SSH
  • Clone with HTTPS
  • notifications-bot

    Notifications bot is used to send push notifications to users' devices via firebase. It continuously loops, polling gateway for users to notify and sending the notifications.

    Config File

    # ==================================
    # Notification Server Configuration
    # ==================================
    
    # START YAML ===
    # Verbose logging
    logLevel: "${verbose}"
    # Path to log file
    log: "${log_path}"
    
    # Notification params
    notificationRate: 30  # Duration in seconds
    notificationsPerBatch: 20
    
    # Database connection information
    dbUsername: "${db_username}"
    dbPassword: "${db_password}"
    dbName: "${db_name}"
    dbAddress: "${db_address}"
    
    # Path to this server's private key file
    keyPath: "${key_path}"
    # Path to this server's certificate file
    certPath: "${cert_path}"
    # The listening port of this server
    port: ${port}
    
    # Path to the permissioning server certificate file
    permissioningCertPath: "${permissioning_cert_path}"
    # Address:port of the permissioning server
    permissioningAddress: "${permissioning_address}:${port}"
    
    # Path to the firebase credentials file
    firebaseCredentialsPath: "{fb_creds_path}"
    
    # APNS parameters
    apnsKeyPath: ""
    apnsKeyID: ""
    apnsIssuer: ""
    apnsBundleID: ""
    apnsDev: true
    
    # Huawei Parameters
    huaweiClientID: ""
    huaweiClientSecret: ""
    huaweiAuthURL: ""
    huaweiPushURL: ""
    # === END YAML