diff --git a/mobile-config.js b/mobile-config.js index ff5ae8401aef..472e740af6ac 100644 --- a/mobile-config.js +++ b/mobile-config.js @@ -46,6 +46,7 @@ App.launchScreens({ // Set PhoneGap/Cordova preferences App.setPreference('HideKeyboardFormAccessoryBar', true); App.setPreference('StatusBarStyle', 'default'); +App.accessRule('*'); // // Pass preferences for a particular PhoneGap/Cordova plugin // App.configurePlugin('com.phonegap.plugins.facebookconnect', { diff --git a/public/images/logo/apple-touch-icon-1024x1024.png b/public/images/logo/apple-touch-icon-1024x1024.png new file mode 100644 index 000000000000..4711b6b57703 Binary files /dev/null and b/public/images/logo/apple-touch-icon-1024x1024.png differ diff --git a/server/lib/cordova.coffee b/server/lib/cordova.coffee index 92bb24fec753..92f80b839955 100644 --- a/server/lib/cordova.coffee +++ b/server/lib/cordova.coffee @@ -7,6 +7,10 @@ Meteor.startup -> Push.debug = RocketChat.settings.get 'Push_debug' if RocketChat.settings.get('Push_enable') is true + Push.allow + send: (userId, notification) -> + return Meteor.users.findOne({_id: userId})?.admin is true + Push.Configure apn: passphrase: RocketChat.settings.get 'Push_apn_passphrase'