diff --git a/app.json b/app.json index 330ff47fd..f5238da15 100644 --- a/app.json +++ b/app.json @@ -2,5 +2,6 @@ "name": "RocketChatRN", "share": "ShareRocketChatRN", "displayName": "RocketChatRN", - "server": "https://open.rocket.chat" + "server": "https://open.rocket.chat", + "appGroup": "group.ios.chat.rocket" } \ No newline at end of file diff --git a/app/lib/database/index.js b/app/lib/database/index.js index 7745eb5b1..b1a5dbb08 100644 --- a/app/lib/database/index.js +++ b/app/lib/database/index.js @@ -24,8 +24,9 @@ import appSchema from './schema/app'; import migrations from './model/migrations'; import { isIOS } from '../../utils/deviceInfo'; +import appConfig from '../../../app.json'; -const appGroupPath = isIOS ? `${ RNFetchBlob.fs.syncPathAppGroup('group.ios.chat.rocket') }/` : ''; +const appGroupPath = isIOS ? `${ RNFetchBlob.fs.syncPathAppGroup(appConfig.appGroup) }/` : ''; if (__DEV__ && isIOS) { console.log(appGroupPath);