I'm developing an app in swift for iOS devices. I use monitoring for background and ranging for foreground, 50 beacons with diferent messages that refresh via API. But I have 2 main problems:
Apple rejects my app. Actually I desactivated all beacons features to confirm beacons are the problem. Apple says:
"Guideline 2.3.1 - Performance
We discovered that your app contains hidden features.
It would be appropriate to remove all code obfuscation and selector mangling from this app before resubmitting for review
The next submission of this app may require a longer review time."
Is it probable I have a method for beacons feature that causes the problem? I launch monitoring on AppDelegate, ranging on viewWillAppear (mainView) and stop ranging on viewDidDisappear (mainView too).
Due to I have 50 beacons, I can't create 50 regions for monitoring. I created 1 region in base of UUID like this:
let id = UUID.init(uuidString: "B9407F30-F5F8-466E-AFF9-25556B57FE6D")
let region = CLBeaconRegion(proximityUUID: id!, identifier: "FDM")
region.notifyEntryStateOnDisplay = true
region.notifyOnEntry = true
In didEnter function, I try to extract major and minor to show a different notification, but doesn't work:
print(region.major.description) prints nothing. I think is due to I created region without major and minor. Can I extract this information in
Thank you very much