Git Product home page Git Product logo

sortiz32233 / platform-friends-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teststudio/platform-friends-ios

0.0 0.0 0.0 76.93 MB

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

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

License: BSD 2-Clause "Simplified" License

Objective-C 99.59% C 0.35% C++ 0.06%

platform-friends-ios's Introduction

Telerik Friends Sample App for iOS

Overview

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

The Telerik Friends sample app showcases these features and SDKs:

  • Cloud data access (Telerik Backend Services)
  • Working with files (Telerik Backend Services)
  • User registration and authentication (Telerik Backend Services)
  • Authentication with social login providers (Facebook, Google, etc.) (Telerik Backend Services)
  • Using custom user account fields (Telerik Backend Services)
  • Basic app analytics (Telerik Analytics)
  • Tracking feature use (Telerik Analytics)

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.

  • A Compatible XCode version
    XCode 5 or or later must be installed on your Mac.

Configuration

The Friends sample app comes fully functional, but to see it in action you must link it to your own Telerik Platform account.

  1. Log in to the Telerik Platform portal.
  2. Create a new Hybrid or NativeScript app.
    You will only use the backend of the app.
  3. Click the Data tab and then click Enable and populate with sample data.
    Sample content types with data required for the app to run is automatically created for you. The button also enables the Users service where user accounts for the app are precreated.
  4. Click the Settings tab.
  5. Take note of your App ID.

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

App ID for Telerik Platform

This is a unique string that links the sample mobile app to your Telerik Platform account where all the data is read from/saved. To set it in the app code:

  1. Open the EverliveSDKSample-Info.plist file.
  2. Find the EverliveAppId key and set its value to the App ID of your Telerik Platform app.

(Optional) Project Key for Telerik Analytics

This is a unique string that links the sample mobile app to the Analytics part of your Telerik Platform app. If you do not set this the sample will still work, but no analytics data will be collected.

  1. In the Telerik Platform portal, go to your app.
  2. Click the Analytics tab and then click Enable.
  3. Go to Analytics > Settings > Options and take note of your Project Key.
  4. Open the EverliveSDKSample-Info.plist file.
  5. Find the analyticsProductID key and set its value to the Project Key that you acquired earlier.

(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 code for a production app you need to set up your own Facebook application and adjust the Facebook app ID as follows:

  1. Open the EverliveSDKSample-Info.plist file.
  2. Find the FacebookAppID key and set its value to your Facebook app ID.

(Optional) Google Client ID

To demonstrate social login, we have preinitialized the sample to use a Google Client ID owned by Telerik. However, you still need to enable Google 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 Google box is checked.

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

  1. Open the EverliveSDKSample-Info.plist file.
  2. Find the GoogleClientID key and set its value to your Google Client ID.

(Optional) Microsoft Account

To demonstrate social login, we have preinitialized the sample to use a Microsoft Account Client ID owned by Telerik. However, you still need to enable Microsoft Account 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 Windows Live box is checked.

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

  1. Open the EverliveSDKSample-Info.plist file.
  2. Find the LiveIDClientID key and set its value to your Microsoft Account app ID.

Running the Sample

Once the app is configured as described in the previous section, you can run it either on a real device or in the simulator from within Xcode.

Ensure that the emulator or the device that you are using has Internet connectivity when running the sample.

platform-friends-ios's People

Contributors

pspavlov avatar shoerob avatar boevski avatar mitkodev avatar dokov 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.