GithubHelp home page GithubHelp logo

androiddeeplink's Introduction

Android DeepLink

Twnel integration example using App Links.

Dependences

App Links SDK for Android

http://boltsframework.github.io/docs/android/

  1. Add the following line to your 'build.gradle' file
compile 'com.parse.bolts:bolts-android:1.2.0'

or if you are using eclipse download the .jar and copy to the "libs" folder http://search.maven.org/#browse%7C1700048106

  1. Copy TwnelUtils.java to your project

  2. Call navigateToChat method from your activity or fragment

    /**
     * Navigate to the chat room inside Twnel.
     * @param context
     * @param companyId: The company identifier inside Twnel.
     * @param originPackageName: A fully-qualified package name for intent generation (used to return to your app).
     * @param originActivityClassName: A fully-qualified Activity class name for intent generation (used to return to your app).
     * @param showAlertDialog: True if you want to show an alert dialog before navigating to the Play Store to download Twnel, when the app is not installed.
     * @param alertTitle: The title of the alert dialog displayed when "showAlertDialog" is true.
     * @param alertSubject: The subject of the alert dialog displayed when "showAlertDialog" is true.
     * @param nextButtonText: The text for the "next" button used in the alert dialog when "showAlertDialog" is true.
     */
      public static void navigateToChat(Context context,String companyId, String originPackageName, String originActivityClassName,  boolean showAlertDialog, String alertTitle,String alertSubject,String nextButtonText) {
 	
 	//example 
 	
 	 TwnelUtils.navigateToChat(MainActivity.this, "easytaxi", "com.twnel.easylink", "com.twnel.easylink.MainActivity",true,"Chatea gratis descargando Twnel","1.) Da click en \"Siguiente\".\n" +
                "2.) Inicia Descarga Twnel en PlayStore\n" +
                "3.) Comunicate gratis con la central Easy Taxi 24 horas al dias 7 dias a la semana.","Siguiente");
  1. add android:exported="true" to your activity (originActivityClassName) in the AndroidManifest.xml About App Links ================== http://applinks.org/

androiddeeplink's People

Contributors

dscastillo171 avatar ingyesid avatar santiago-twnel avatar yesidlazaro avatar

Stargazers

 avatar

Watchers

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