GithubHelp home page GithubHelp logo

isabella232 / platform-friends-hybrid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from telerik-boneyard/platform-friends-hybrid

0.0 0.0 0.0 54.67 MB

A full-featured social demo app that shows how to integrate a wide range of Telerik Platform services into a Hybrid mobile application.

Home Page: http://platform.telerik.com

License: BSD 2-Clause "Simplified" License

JavaScript 89.04% CSS 4.54% HTML 6.42%

platform-friends-hybrid's Introduction

Telerik Friends Sample App for PhoneGap/Cordova

Try in AppBuilder

Overview

This repository contains the Telerik Friends app for PhoneGap/Cordova. It is a sample mobile app demonstrating how to integrate a wide range of Telerik Platform services into a hybrid mobile application.

The Telerik Friends sample app showcases these features and SDKs:

To implement all the features listed above, the sample app utilizes the following Telerik products and SDKs:

Screenshots

Login Screen Activity Stream Activity Details
Login Screen Activities stream view Activity details view

Requirements

Before you begin, you need to ensure that you have the following:

  • An active Telerik Platform account Ensure that you can log in to a Telerik Platform account. This can be a free trial account. Depending on your license you may not be able to use all app features. For more information on what is included in the different editions, check out the pricing page. All features included in the sample app work during the free trial period.
  • Telerik AppBuilder The sample app requires Telerik AppBuilder to run. This can be the in-browser client, the desktop client, or the extension for Visual Studio.

Configuration

To set up Friends in your Telerik Platform account, click the Run in Telerik Platform button.

This creates a new Telerik Platform app for you and clones the repository in AppBuilder. All required content types with data, users, and files are also automatically created.

You can view the app's source code on the Code tab.

If you happen to break the structure of the automatically generated Friends data, you can delete the app and start over.

(Optional) Enable Telerik Analytics

If you want to collect analytics data from your Friends sample app, you need to enable the Analytics service.

  1. In the Telerik Platform portal, go to your app.
  2. Click the Analytics tab and then click Enable.
  3. In the Configure tracking settings dialog box that appears, select these check-boxes before clicking Done:
    • Automatic exceptions tracking
    • Automatic app feature tracking
  • Analytics only works on physical devices or emulators. It does not work in the AppBuilder simulator.
  • If you are working in the Universal, Windows, or Visual Studio AppBuilder client, you need to restart it for the setting to be reflected.

(Optional) Facebook App ID

To demonstrate social login, we have preinitialized the sample to use a purpose-built Facebook app by Telerik. However, you still need to enable Facebook integration in the Telerik Platform portal:

  1. In the Telerik Platform portal, go to your app.
  2. Navigate to Users > Authentication.
  3. Ensure that the Facebook box is checked.

Note that if you intend to use the sample app code for a production app you need to set up your own Facebook application and adjust the Facebook app ID as follows:

  1. In the Telerik Platform portal, go to your app.
  2. Click the Code tab.
  3. In the Project Navigator, double-click Plugins.
  4. Under Other Plugins, find the Facebook plugin.
  5. Click the expand arrow in front of the plugin and then click Configuration Variables.
  6. In the APP_ID text box, enter your Facebook app ID.
  7. In the APP_NAME text box, enter you Facebook app name.
  8. Click Done.
  • Facebook integration only works on physical devices or emulators. It does not work in the AppBuilder simulator.
  • The Facebook Cordova plugin is not supported on Windows Phone.

(Optional) Active Directory Federation Services (AD FS)

The sample app allows users to register using AD FS. To try this integration, configure the following:

  1. Replace the default setting in friends-hybrid/common/settings.js:

    endpoint: '$ADFS_ENDPOINT$',
    realm: '$ADFS_REALM$'
    
  2. In the Telerik Platform portal, go to your app.

  3. Navigate to Users > Authentication.

  4. Ensure that the Active Directory box is checked.

  5. Fill in ADFS metadata URL with your AD FS server's metadata URL.

AD FS authentication can only be accomplished over HTTPS.

(Optional) Enable Telerik Feedback

If you want to solicit app feedback from your users, you need to enable the Feedback service.

  1. In the Telerik Platform portal, go to your app.
  2. Click the Feedback tab and then click Enable.
  3. Click the Code tab.
  4. In the Project Navigator, double-click Plugins.
  5. Under Other Plugins, find the Telerik AppFeedback plugin.
  6. Click the expand arrow in front of the plugin and then click Configuration Variables.
  7. In the API_KEY text box, enter the App ID of your Telerik Platform app.
  8. Click Done.
  • Feedback only works on physical devices or emulators. It does not work in the AppBuilder simulator.
  • The Telerik AppFeedback plugin is not supported on Windows Phone.
  • If you are working in the Universal, Windows, or Visual Studio AppBuilder client, you need to restart it for the setting to be reflected.

HTTPS Connections

By default the Friends Sample is configured to use HTTP. If you want to switch to HTTPS, update the app.settings.scheme setting in friends-hybrid/common/settings.js to https.

Running the Sample

Once the app is configured, you can run it either on a real device or in the Telerik AppBuilder simulator.

To run it, follow the steps in the product's documentation: Running Apps on Devices.

  • Ensure that the emulator or the device that you are using has Internet connectivity when running the sample.
  • Image uploading only works on physical devices. It does not work in the AppBuilder simulator or in emulators.

platform-friends-hybrid's People

Contributors

gngeorgiev avatar antondobrev avatar boevski avatar tsvetomir-nedyalkov avatar stoyanvi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.