I need to create a custom Mobile device groups so I copied /etc/mobile/groups to /etc/mobile/my-groups
But when trying to configure mobile template (/libs/wcm/mobile) to fetch this new mobile group (by changing /libs/wcm/mobile/components/page/tab_mobile/items/basic/deviceGroups/fieldConfig->options )
existing value: /bin/wcm/mobile/groups.json
I am getting 404 error (for URL /bin/wcm/mobile/mygroups.json), is there anything additional I need to do to allow a new /etc path to be assessed with /bin url?
Hope my question makes sense!
The com.day.cq.wcm.mobile.core.impl.device.MobileListServlet is responsible to fetch the device group option from location "/etc/mobile/groups" and this servlet has been mapped with these paths [/bin/wcm/mobile/groups, /bin/wcm/mobile/emulators, /bin/wcm/mobile/filters, /bin/wcm/mobile/capabilities] so you can not invoke the list from anyother custom path.
Now you have two option either add your new device group under "/etc/mobile/groups"
create a new servlet which will response in similar way by extending com.day.cq.wcm.mobile.core.impl.device.MobileListServlet or configure the selection option /libs/wcm/mobile/components/page/tab_mobile/items/basic/items/deviceGroups/fieldConfig using manual configuration via setting all the nodes manually.
I hope above helps you to proceed. For more information let me know.