mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 02:04:57 +00:00
Add GCM push for pushing OneMDM app to devices
This commit is contained in:
@@ -37,3 +37,5 @@ module OnemdmServer
|
||||
end
|
||||
STATUS_CLASSES = {active: :ok,missing: :warning,dead: :error}
|
||||
GCM_KEY = "AIzaSyCZ3lVhV2CbIcZ22f1YI_MvPx3C7sMm_2g"
|
||||
DEFAULT_APP_PACKAGE_NAME = "com.multunus.onemdm"
|
||||
DEFAULT_APP_URL = "https://s3.amazonaws.com/onemdm/onemdm.apk"
|
||||
|
||||
@@ -42,5 +42,5 @@ Rails.application.configure do
|
||||
|
||||
ACTIVE_TIMEFRAME = 1.hours
|
||||
MISSING_TIMEFRAME = 2.hours
|
||||
|
||||
#DEFAULT_APP_URL = "http://192.168.2.92:3000/onemdm.apk"
|
||||
end
|
||||
|
||||
@@ -119,7 +119,7 @@ ActiveAdmin.setup do |config|
|
||||
# This allows your users to comment on any resource registered with Active Admin.
|
||||
#
|
||||
# You can completely disable comments:
|
||||
# config.comments = false
|
||||
config.comments = false
|
||||
#
|
||||
# You can disable the menu item for the comments index page:
|
||||
# config.show_comments_in_menu = false
|
||||
@@ -259,6 +259,7 @@ ActiveAdmin.setup do |config|
|
||||
# You can enable or disable them for all resources here.
|
||||
#
|
||||
# config.filters = true
|
||||
config.current_filters = false
|
||||
#
|
||||
# By default the filters include associations in a select, which means
|
||||
# that every record will be loaded for each association.
|
||||
@@ -266,4 +267,6 @@ ActiveAdmin.setup do |config|
|
||||
# of those filters by default here.
|
||||
#
|
||||
# config.include_default_association_filters = true
|
||||
|
||||
config.before_filter :set_timezone_for_admin
|
||||
end
|
||||
|
||||
@@ -5,7 +5,7 @@ Rollbar.configure do |config|
|
||||
config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']
|
||||
|
||||
# Here we'll disable in 'test':
|
||||
if Rails.env.test?
|
||||
if Rails.env.test? || Rails.env.development?
|
||||
config.enabled = false
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Rails.application.routes.draw do
|
||||
# See how all your routes lay out with "rake routes".
|
||||
|
||||
# You can have the root of your site routed with "root"
|
||||
# root 'welcome#index'
|
||||
root 'admin/dashboard#index'
|
||||
|
||||
# Example of regular route:
|
||||
# get 'products/:id' => 'catalog#view'
|
||||
|
||||
Reference in New Issue
Block a user