Next Hour App
  • Introduction
    • Introduction
    • Key Features
    • Flutter
  • Installation
    • Flutter Installation
    • App Secret Key
  • project setup
    • App Deployment
      • Firebase
    • iOS Setup Instructions
    • Google Drive Key
    • OneSignal
    • Images
    • Reskinning
  • Publish your app
    • Requirements to Publish App
  • FAQ
    • Installation FAQ's
    • Access Denied
    • General Setting
    • Disclaimer
    • Regular & Extended Licenses
    • Privacy Policy
  • Troubleshoot
    • Troubleshoot
    • Changelogs
  • Source & credit
    • Source & Credit
  • Support
    • Support
  • conclution
    • Conclusion
  • our products
    • Next Hour Addons
    • Our Products
  • Api Document
    • Getting Started
  • Get secret key
  • Auth Api
    • Login
  • Home Page Api
  • Actor detail page
  • Payment Api
    • Payment Method List
    • Manual payment list
    • Subscribed with manual payment
    • Subscribed with free subscription
    • Subscription Stop and Resume
    • Invoice
  • Player Setting Api
    • Player Setting
    • Advertise
  • User Api
    • View User profile
    • Wishlist
    • Watch History
    • User Profile Update
    • Manage Profile
    • Notification
  • Coupon Api
  • Other Api
    • List of Contents
    • Menu
    • Slider
    • Package
    • List of all movies
    • List of all tvseries
    • List of all movies, tveries and top movie and tvseries
    • Recent Movies and Tvseries
    • List of menu by movies and tvseries
    • Language by movies and tvseries
Powered by GitBook
On this page
  • Android App Installation
  1. project setup

App Deployment

You will get a project of app after extracting downloaded files

PreviousApp Secret KeyNextFirebase

Last updated 3 months ago

Android App Installation

  1. You have to install Android Studio or VS code.

  2. Than make sure you have installed in your system.

  3. Import project in Android Studio or VS Code

  4. Run command "flutter pub get"

  5. Run command "flutter clean"

  6. Make sure you have connected to android device or AVD.

  7. Than go to inside project directory\lib\common\apipath.dart

  8. Enter your domain url eg: https://example.com/public/

  9. Click Play button or run command "flutter run"

  10. You can change your app icon from directory android\app\src\main\res

  11. For generate these icons of different size use website For this you need to upload you icon of size 1536 X 1536

  12. Your project is running now

  13. To change your app package name

    • Run this command to change the package name.

      flutter pub run change_app_package_name:main com.new.package.name
    • Where com.new.package.name is the new package name that you want for your app. replace it with any name you want

  14. Change your app name ctrl+shift+F to find nexthour than ctrl+shift+R to replace it with your app name

  15. Add your Admob API key at the path android/app/src/main/AndroidManifest.xml

  16. Create a API key for .

  17. Create a text file located at {project_root}/android/app/main/assets/api_key.txt

  18. Copy-paste the contents of the API key from the console into the file {project_root}/android/app/main/assets/api_key.txt

To Change Your Domain Link

Go to lib -> common -> apipath.dart

class APIData {
// Replace with your domain link
 static const String domainLink = "YOUR_DOMIAN_LINK/public";
 static const String domainApiLink = domainLink+"api/";    

To Add Secret key in APP

Go to lib -> common -> apipath.dart static const String secretKey = "ENTER_API_SECRET_KEY";

Next Hour App Deploy Video :

To Change Your Launcher icon

Go to android-> app-> src-> main ->res

One Signal APP Id

Go to lib -> common -> apipath.dart

// For notifications
  static const String onSignalAppId = "ENTER_ONESIGNAL_APP_ID";    

Play Google Drive Video

Go to lib -> common -> apipath.dart


// To play google drive video
  static const String googleDriveApi = 'ENTER_GOOGLE_DRIVE_API';

Facebook APP ID

Go to android -> app -> src -> main -> res -> values -> strings.xml

<string name="app_name">APP_NAME</string>
<string name="facebook_app_id">ENTER_YOUR_FACEBOOK_APP_ID</string>
<string name="fb_login_protocol_scheme">FB_ENTER_YOUR_FACEBOOK_APP_ID</string>

Admob API KEY

Go to android -> app -> src -> main -> AndroidManifest.xml

<meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ENTER YOUR ADMOB API ID "/>

better_player isssue

Package better_player: 0.0.83 had some issues and we have fixed the issues so that we could use the package in our Flutter Projects. This is why, it is must to follow and apply the given steps -

  1. Extract zip file named local.zip inside project root directory (Nexthour Mobile App Flutter Files),

  2. Open pubspec.yaml file,

  3. Replace better_player: 0.0.83 with better_player: path: local/better_player-0.0.83

  4. Now you may run App Project.

Download local.zip

NOTE : If you get any problem after deploying your app , must read

flutter sdk
https://makeappicon.com/
Login with Amazon
Android
Login with Amazon
https://drive.google.com/file/d/1C_P5ZpkMK306m4ChGeFpLevEiscSmcsc/view?usp=sharing
TROUBLESHOOT
Change your Domain Link
App Icon