Hype is an SDK for cross-platform peer-to-peer communication with mesh networking. Hype works even without Internet access, connecting devices via other communication channels such as Bluetooth, Wi-Fi direct, and Infrastructural Wi-Fi.
The Hype SDK has been designed by Hype Labs. It is currently available for multiple platforms.
You can start using Hype today.
This project consists of a chat app sketch using the Hype SDK. The app displays a list of devices in proximity, which can be tapped for exchanging text content. The SDK itself allows sending other kinds of media, such as pictures, or video, but the demo is limited for simplicity purposes.
This demo does not serve the purpose of documenting how to use the SDK. In case you're looking for documentation, check our quickstart guides and project templates on the apps page, or our documentation page.
This demo does not work out of the box. The following are the necessary steps to configure it:
- Download the SDK binary for Android.
- Extract it, and drag it to the project root folder
- Access the apps page and create a new app
- Name the app and press "Create new app"
- Go to the app settings
- Copy the identifier under
App ID
- With the project open on Android Studio, in the file
ChatApplication.java
, find the line that readsHype.setAppIdentifier("{{app_identifier}}");
- Replace
{{app_identifier}}
by the App ID you just copied - Go back to the app settings
- This time, copy the
Access Token
, under the Authorization group - Open the same file,
ChatApplication.java
, and find the method declaration forpublic String onHypeRequestAccessToken
- Where that method returns
{{access_token}}
, have it return the token you just copied instead
You should be ready to go! If you run into trouble, feel free to reach out to our community or browse our other support options. Also keep in mind our project templates on the apps page for demos working out of the box.
Most of the action takes place in ChatApplication
class. This class manages Hype's lifecycle and network activity. Another interesting class is ChatActivity
, as this is where messages are sent. Other classes are mostly accessories.
This project is MIT-licensed.
Follow us on twitter and facebook. We promise to keep you up to date!