

@MiaoMiaoai it should fixed by https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/1322 .
Can you confirm?
@djorkaeffalexandre If I change my Bundle ID run on a real machine , I will report an error.
App can't open.



@djorkaeffalexandre What do I need to do to run
You need to change here to your App Group Identifier: https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/lib/database/index.js#L28
@djorkaeffalexandre Thank you very much for solving my problem.
@djorkaeffalexandre Can you explain your solution more, why doesn't it work without this modification? Can we include the fix into the base code? Can we add this to whitelabeling documentation?
You need to change here to your App Group Identifier: https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/lib/database/index.js#L28
Hi can you help me with this?
Do I have to change this
const appGroupPath = isIOS ? appGroup.path : '';
to
const appGroupPath = isIOS ? appGroup.path : 'group.com.example.app';
something like that?
@bradroid @zeeshanwarriach93, not exactly, if you don't have an App Group configured you'll need to set App Group Path as an empty string.
Check these steps and make sure you've followed this things on the right way, so you don't need to change anything into the code.
https://docs.rocket.chat/guides/developer/mobile-apps/whitelabeling-mobile-apps#general-setup
We're reading the App Group identifier from each target Info.plist and generating the app group folder path based on it, this is need to the database be shared between our targets/extensions (Share Extension, Notification Extension, Main App).
@djorkaeffalexandre I have followed whitelabeling guide and have app groups setup. Does that mean that I don't need to modify app/lib/database/index.js?
I'm getting this error:
Fatal error: Failed to open the database. unable to open database file: file WatermelonDB/Database.swift, line 19
The issue is I think that your link points to line 19 in a file that changed in the meantime, and now it's not clear what needs to be changed to fix this.
same problem here
You need to change here to your App Group Identifier: https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/lib/database/index.js#L28
@djorkaeffalexandre i having same isssue, can you show me example code for this issue ?
I fixed the issue on my side. The problem for me was that my App Group Identifier definition in "Signing & Capabilities" got out of sync from the one defined in Info.plist. Make sure both are using the same value.
Most helpful comment
You need to change here to your App Group Identifier: https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/lib/database/index.js#L28