This is a PoC-implementation of the RSub1-App using the Nearby Messages library. It shares your presence (as an anonymous name) with nearby devices, and displays names from nearby devices. It continues to work in the background using BLE; it uses audio only in the foreground.
The repo is a fork of this googlesamples repo.
Xcode is the IDE of choice for most iOS developers, and the only one officially supported by Apple. There are some alternatives, of which AppCode is arguably the most famous, but unless you're already a seasoned iOS person, go with Xcode. Despite its shortcomings, it's actually quite usable nowadays!
To install, simply download Xcode on the Mac App Store. It comes with the newest SDK and simulators, and you can install more stuff under Preferences > Downloads.
This workspace includes external dependencies, so in order to install them [CocoaPods][cocoapods] offers easy and fast integration. Install it like so:
sudo gem install cocoapods
After installing cocoapods, you run
pod install
to retrieve the external dependencies.
After this step you can open the Xcode workspace. Make sure to always open the Xcode workspace instead of the project file when building your project.
open App.xcworkspace
To use the Nearby Messages API you need a Google Nearby Messages API Key.
- In your Google Developers Console,
- Enable the Google Nearby Messages API.
- Create an API key for iOS, and enter your app's bundle ID.
- Insert your API key into
AppDelegate.m.
In order to build and run the app on a test device you need to do some extra things:
- Insert a bundle ID into your target's settings (select the project in the Project Navigator, select the target, select the General tab, and insert your bundle ID into the Bundle Identifier field).
- Select a developer certificate (select the project in the Project Navigator, select the target, select the General tab, and select a certificate from your developer account. Maybe you need a paid developer account for this to work).