Skip to content

Before you release

NearIT Version

We encourage you to use the latest SDK version for all your supported platforms. If you are using a deprecated method from our library, search in the documentation for the suggested method. We only support the latest major release with bug fixes.

Switch environment

As a general practice, we encourage the use of different environments (eg. staging and production). With that comes the managing of different api keys and certificates. If you are preparing your build for production, be sure to switch the NearIT API key to the one for your production NearIT app. Also switch the CFBundleURLSchemes for the test device feature in the Info.plist file. Your NearIT production app should also have the push certificate set to Production, even if your app is distributed with TestFlight.

You can check that everything is setup correctly by trying the test device feature on your production build, distributed with the store or TestFlight. Install the app, enroll your device to the test devices, and send a test push from the “Settings> Push Settings” section of the panel, directly to your device. If your app receives a notification, you have your certificates and API key correctly setup.

Before you submit your app

As you are probably aware of, preparing your app submission can be tricky and minor mistakes can cause your app to be rejected. We strongly encourage you to follow these tips to avoid some of Apple most common rejection problems:

  • Always include permission description keys in your Info.plist. They are:
    • NSLocationAlwaysUsageDescription
    • NSLocationWhenInUseUsageDescription
    • NSBluetoothPeripheralUsageDescription
    • NSLocationAlwaysAndWhenInUseUsageDescription
  • While those descriptions are for the users of your app, you should give the reviewer more specific information about the reasons for asking location and bluetooth permissions. During the submission preparation, you can write in the App Review Information -> Notes box. You should state that the app uses geofence and Beacon technology to reach the user even when the app is not in use to give them an unique experience. If you are using NearIT notification to send coupons, that would be a very good opportunity to justify your requirements.
  • It is strongly encouraged that you mention the use of geofence and Beacon technology in the app description too.