Skip to content

Chat app demo for the Hype framework written for the Windows Universal Platform

License

Notifications You must be signed in to change notification settings

Hype-Labs/HypeChatDemo.uwp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alt tag alt tag

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 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.

What does it do?

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.

Setup

This demo does not work out of the box. The following are the necessary steps to configure it:

  1. Download the SDK binary for Windows.
  2. Double click the Hype.vsix binary, which should trigger an installation wizard. Follow the instructions given. If necessary, restart Visual Studio afterwards.
  3. Access the apps page and create a new app
  4. Name the app and press "Create new app"
  5. Go to the app settings
  6. Copy the identifier under App ID
  7. With the project open on Visual Studio, in the file App.xaml.cs, find the line that reads Hype.SetAppIdentifier("{{app_identifier}}");
  8. Replace {{app_identifier}} by the App ID you just copied
  9. Go back to the app settings
  10. This time, copy the Access Token, under the Authorization group
  11. Open the same file, App.xaml.cs, and find the method declaration for string IStateObserver.OnHypeRequestAccessToken
  12. Where that method returns {{access_token}}, have it return the token you just copied instead

After creating the project of your choice, access References and then Add Reference. On the Universal Windows menu, under Extensions select the option for Hype and click OK. You'll also need to access your Package.appxmanifest and under the Capabilities separator select Internet(Client & Server), Internet(Client), Bluetooth, and Private Networks(Client & Server). These are required by the Hype SDK in order to manage Infrastructual Wi-Fi networks.

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.

Overview

Most of the action takes place in App.xaml.cs class. This class manages Hype's lifecycle and network activity.

License

This project is MIT-licensed.

Follow us

Follow us on twitter and facebook. We promise to keep you up to date!

About

Chat app demo for the Hype framework written for the Windows Universal Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages