• Latest
  • Trending
  • All
Documentation for Travelpayouts Travel App For Android

Documentation for Travelpayouts Travel App For Android

December 6, 2023
🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

May 8, 2025
How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

April 6, 2025
Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

February 28, 2025
How to Connect WooSMS API with OTP Login Woocommerce Plugin

How to Connect WooSMS API with OTP Login Woocommerce Plugin

February 1, 2025
How to Launch Your Own Flight and Hotel Booking Website with a Ready-Made Script

How to Launch Your Own Flight and Hotel Booking Website with a Ready-Made Script

January 27, 2025
How to Add WhatsApp as a Payment Gateway in WooCommerce | Order on WhatsApp for WooCommerce

How to Add WhatsApp as a Payment Gateway in WooCommerce | Order on WhatsApp for WooCommerce

December 21, 2024
Shipment Tracker for WooCommerce: Simplify Your Shipping Process

Shipment Tracker for WooCommerce: Simplify Your Shipping Process

December 16, 2024
How to Get Your WhatsApp Business Display Name Approved: WhatsApp branding guidelines

How to Get Your WhatsApp Business Display Name Approved: WhatsApp branding guidelines

November 14, 2024
The Core Principles of SEO: A Comprehensive Guide

The Core Principles of SEO: A Comprehensive Guide

October 18, 2024
How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

November 14, 2024
How to Get and Integrate Flight & Hotel Booking APIs: The Ultimate Guide for Travel Businesses

How to Get and Integrate Flight & Hotel Booking APIs: The Ultimate Guide for Travel Businesses

September 10, 2024
How to Convert Your WooCommerce Website into an Android App in Just a Few Minutes – No Coding Required!

How to Convert Your WooCommerce Website into an Android App in Just a Few Minutes – No Coding Required!

August 29, 2024
  • Home
  • Contact us
  • Domain Checker
  • Portfolio
  • Privacy Policy
Saturday, May 31, 2025
  • Login
Wp Hacks4u
  • Home
  • Domain Checker
  • wordpress
    • woocommerce
    • SSL
    • Google Map
  • Tech
  • Portfolio
  • CargoHub
No Result
View All Result
Wp Hacks4u
No Result
View All Result
Home Android

Documentation for Travelpayouts Travel App For Android

by RAHUL
December 6, 2023
in Android, Travelpayouts
0
Documentation for Travelpayouts Travel App For Android
797
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter

Welcome to the comprehensive documentation for the TravelPayouts Travel App for Android – your go-to resource for understanding and maximizing the potential of our cutting-edge travel companion. This documentation provides detailed insights into the app’s features, functionalities, and customization options, ensuring that users and developers alike can navigate the app seamlessly. From step-by-step guides on setting up personalized preferences to in-depth explanations of real-time updates and streamlined booking processes, this documentation is designed to empower users to make the most of their travel planning experience. Whether you’re a frequent traveler or a developer looking to integrate our app into your platform, explore this documentation to unlock the full potential of the TravelPayouts Travel App for Android.

  • Privacy Policy
  • SDK initialization
  • Application id
  • Application name
  • Google maps initialization
  • App icons creation
  • Colors customization
  • Firebase integration
  • Tabs customization
  • Template features
  • Template app screenshots

Travelpayouts Travel App is a application using flight and hotel search engines. When your customer books a flight or hotel, we pay you a commission fee. Framework is based on leading flight search engines Aviasales, JetRadar and hotel search engine Hotellook.

Travelpayouts Travel App supports all Android devices with Android API 21 and higher.

To get your API key, track statistics and payments please sign up to Travelpayouts Travel Affiliate Network.
Learn more about earnings in Travelpayouts FAQ.
Video instruction

How to create your own Travel App for Android

Privacy Policy

Privacy Policy is REQUIRED for your app. If it is missing, your app may be removed from the Google Play at anytime.
We’ve included a default Privacy Policy in the template app, but you should create YOUR OWN.

You can use online services like privacypolicytemplate.net or App Privacy Policy Generator.

When you have created own Privacy Policy upload it to your website and copy the link to it.

Use this link for a Privacy Policy field in Google Play Console.

Put the Policy link to strings.xml file.

<string name="com_travelpayouts_privacy_policy" tools:ignore="MissingTranslation">Put policy link here</string>

SDK initialization

Change com_travelpayouts_marker and com_travelpayouts_api_token in strings.xml file to your marker and api token params. You can find them at Travelpayouts.com.

<string name="com_travelpayouts_marker" tools:ignore="MissingTranslation">put marker here</string>
<string name="com_travelpayouts_api_token" tools:ignore="MissingTranslation">put api token here</string>

Application id

To publish your application on Google Play you must set unique application id. All you need to do is change applicationId in app/build.gradle file.

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
  compileSdkVersion versions.compileSdk
  
    defaultConfig {
        applicationId "com.example.myapp"
        
        minSdkVersion 26
        targetSdkVersion versions.targetSdk
        
        versionCode 1
        versionName "1.0"
        ...
    }
    ...
}

Application name

Change the application name in strings.xml file.

<string name="app_name" tools:ignore="MissingTranslation">Put appname here</string>

White label

com_travelpayouts_flight_engine_host is the main endpoint of Travelpayouts flight SDK. You can use https://www.travel-api.pw as your default endpoint, but we strongly recommend to change it to your WhiteLabel host. You can change com_travelpayouts_flight_engine_host in strings.xml file.

<string name="com_travelpayouts_flight_engine_host" tools:ignore="MissingTranslation">https://www.travel-api.pw</string>

Google maps initialization

Google maps is necessary for your app. To initialize Google maps you need to:

  1. Go to the Google Cloud Platform Console.
  2. From the Project drop-down menu, select or create the project for which you want to add an API key.
  3. From the Navigation menu, select APIs & Services > Credentials.
  4. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key (an encrypted string).
  5. Copy your API key and click Close.
  6. Put API Key to manifestPlaceholders in app/build.gradle file.
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
    compileSdkVersion versions.compileSdk

    defaultConfig {
       ...
        manifestPlaceholders = [
            GOOGLE_API_KEY: "Put API key here"
        ]
        ...
    }
   ...
}

App icons creation

Best way to create the application icon is using Asset Studio tool:

  1. In the Project window, select the Android view.
  2. Right-click the res folder and select New > Image Asset.
  3. Set up foreground and background layers. IMPORTANT! Do not change icon name.
  4. Click Next > Finish.

For more information – Create app icons with Image Asset Studio

Colors customization (OPTIONAL)

To customize colors of your app change primary, primaryButton, positiveButton and primary_dark in colors.xml. This is main Travelpayouts Travel App colors

<color name="primary">#5A6D87</color>
<color name="primary_dark">#475972</color>
<color name="primaryButton">#F48C6B</color>
<color name="positiveButton">#35C772</color>

Firebase integration (OPTIONAL)

To track events and log crashes you need to add Firebase integration:

  1. Create a new or open existing Firebase project in the Firebase console
  2. Add the new Android applicaton (Add app -> Android)
  3. Download google-services.json and place it into the app folder
  4. Uncomment //apply plugin: 'com.google.gms.google-services' and //apply plugin: 'com.google.firebase.crashlytics' in app/build.gradle
  5. Uncomment //classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0 and //classpath 'com.google.gms:google-services:4.3.3' in build.gradle
  6. Go to the console Crashlytics section
  7. Click Set up Crashlytics
  8. Select “No, this app does not have any version of the Crashlytics SDK installed” and click Next
  9. Run your app to receive analytics

Tabs customization (OPTIONAL)

If you want to add a rental cars tab go to the App class, uncomment tab and add your program affiliate link.

//            Tab.RentalCars("Cars program link"),

Important reminder: use the link generator to make click-through and bookings fall into the statistics of the affiliate program.

How to change About text

You can change the text in the About tab. For this you should add to the strings.xml next code:

<string name="about_information_text">Custom about text</string>

If you need translations for this text, you should do it with standard Android tools (create an alternative folder with resources, for example values-ge and put the translation there).

If you are migrating from 1.1.6:

Add the application class with overridden config and use it in AndroidManifest.xml.

Example:

Our sample package is com.travelpayouts.travel.app

To migrate we should add /app/src/main/java/com/travelpayouts/travel/app/App.kt

package com.travelpayouts.travel.app

import com.travelpayouts.travel.sdk.Config
import com.travelpayouts.travel.sdk.Config.Tab
import com.travelpayouts.travel.sdk.TravelApp


class App : TravelApp() {

    override val config: Config = Config(
        tabs = setOf(
            Tab.Flights,
            Tab.Hotels,
//            Tab.RentalCars("Cars program link"),
            Tab.AppInfo
        )
    )

}

In AndroidManifest.xml replace:

           android:name="com.travelpayouts.travel.sdk.TravelApp"

with:

           android:name=".App"

The tabs order depends on their position in the code:

         tabs = setOf (
             Tab.Flights,
             Tab.RentalCars ("Cars program link"),
             Tab.Hotels,
             Tab.AppInfo
         )

In this example, the first will be the Flights tab, then the RentalCars, then the Hotels and at the end the application information tab.

Template features

The template consists of the following:

  • A search API library to integrate with the search engine server. The library have included real-time flight search update – the user can see the list of available tickets as they are downloaded, there’s no need to wait for all results.
  • Flights tags – special tags, such as “cheapest”, “fastest”, etc. Tickets with these tags are always displayed at the top of the search results.
  • Direct flights widget – all non-stop tickets, sorted by increasing price, will automatically appear at the top of the search results screen.
  • Direct flights filter – allows you to leave only non-stop flights in the search results.
  • Price chart – a chart with the prices of flights on upcoming dates.
Tags: #DigitalTransformation#ResponsiveTheme#TravelPayoutsApp#TravelWebsiteDesign#UserExperience
Share319Tweet199
RAHUL

RAHUL

  • Trending
  • Comments
  • Latest
How to make fake WooCommerce reviews? | Automatically generate reviews for your WooCommerce product

How to make fake WooCommerce reviews? | Automatically generate reviews for your WooCommerce product

June 18, 2022
How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

November 14, 2024
How to convert a WordPress or Woocommerce website into an App for Free

How to convert a WordPress or Woocommerce website into an App for Free

June 30, 2023
How to Buy a Domain & Hosting in Hostinger And install WordPress in 5 Minute

How to Buy a Domain & Hosting in Hostinger And install WordPress in 5 Minute

4
HOW TO CREATE A CAKE ORDERING WEBSITE | ONLINE CAKE SHOP | TUTORIAL

HOW TO CREATE A CAKE ORDERING WEBSITE | ONLINE CAKE SHOP | TUTORIAL

1
HOW TO MAKE WOOCOMMERCE FOOD ORDERING WEBSITE LIKE ZOMATO&SWIGGY

HOW TO MAKE WOOCOMMERCE FOOD ORDERING WEBSITE LIKE ZOMATO&SWIGGY

1
🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

May 8, 2025
How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

April 6, 2025
Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

February 28, 2025
Wp Hacks4u

Copyright © 2025 Wphacks4u.com

Navigate Site

  • Home
  • Contact us
  • Domain Checker
  • Portfolio
  • Privacy Policy

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now
This is a test site
Build with Digits
Protected by   
No Result
View All Result
  • Home
  • Domain Checker
  • wordpress
    • woocommerce
    • SSL
    • Google Map
  • Tech
  • Portfolio
  • CargoHub

Copyright © 2025 Wphacks4u.com

Enable Notifications OK No thanks