umair13adil / simple_beacons_flutter

A flutter plugin project to range & monitor iBeacons.
Apache License 2.0
35 stars 42 forks source link

App Rejection - iOS #29

Closed dariocavada closed 3 years ago

dariocavada commented 3 years ago

If you don't use the background mode (scanning beacons), you must remove the following lines from Info.plist:

<key>UIBackgroundModes</key>
<string>location</string>

The apple team rejected my app because of this.

You could put this advice in your documentation.

Guideline 2.5.4 - Performance - Software Requirements

Your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not have any features that require persistent location. Apps that declare support for location in the UIBackgroundModes key in your Info.plist file must have features that require persistent location.

Next Steps

To resolve this issue, please revise your app to include features that require the persistent use of real-time location updates while the app is in the background.

If your app does not require persistent real-time location updates, please remove the "location" setting from the UIBackgroundModes key. You may wish to use the significant-change location service or the region monitoring location service if persistent real-time location updates are not required for your app features.

Resources

For more information, please review the Starting the Significant-Change Location Service and Monitoring Geographical Regions.

yossefEl commented 3 years ago

@dariocavada Thanks for sharing this advice! Does this plugin works well on is for you?? it stuck in Stop Scanning for me and the scan is not working!

dariocavada commented 3 years ago

Yes it works, if you want to share your code, beacon used, phone, ... etc.

yossefEl commented 3 years ago

@dariocavada thank you, unfortunately, it is not working on iOS for me, I used the example provided by the owner this is my issue #27

umair13adil commented 3 years ago

@dariocavada 'UIBackgroundModes' is removed from the plugin project to prevent App rejection. It can be added by the developers in their code.