AppMySite
Website
  • Introduction
  • Getting started
    • Create an app
    • Initial requirements
  • App
    • Design
      • App icon
      • Splash screen
        • Design Splash screen
        • Splash screen not appearing
      • Theme
        • Design theme
        • Upload icons
    • Access
      • Consent
        • Add consent screen
        • Control access to app
      • Login
        • Design login screen
        • Web-to-app login
        • Custom app login
        • Prompt user login
        • Apple login requirement
        • Login settings
        • WordPress
          • WordPress login
          • WordPress member login
          • WP Social login issue
          • User registration issue
          • Missing cart button
        • Social login configuration
          • Android build for social login
          • iOS build for social login
    • Connectivity
      • WordPress to app connectivity
      • Install WordPress plugin
      • WP Application-Password
      • WooCommerce REST API
      • Troubleshoot connectivity
      • How to track connectivity
      • Configure Solid Security
      • Whitelist IP Addresses
        • Whitelist in CloudFlare
        • Whitelist in All In One WP Security
        • Whitelist in Wordfence
        • Whitelist in Solid Security
        • Whitelist in Jetpack
      • Website-to-app sync
      • Website-to-app changes
      • Plugin conflict
    • Navigation
      • Home Screen
        • Design main banner
        • Mark blogs sticky
        • Mark products featured
      • Bottom bar
        • WordPress bottom bar
        • Web-to-app bottom bar
        • Custom app bottom bar
        • Bottom bar settings
      • Menu
        • WordPress menu
        • Custom app menu
        • Web to App menu
        • Menu settings
    • Web view
      • Advanced web-view settings
      • Web view checkout
      • Web-view for WordPress
      • Web-view for Custom app
      • Intercept web traffic
      • Internal URL Handling
    • Pages
      • Custom app
        • Custom app pages
        • Individual page settings
        • Bulk page settings
        • Page layout
        • Page Settings
      • WordPress
    • Posts
      • Custom app
        • Custom app posts
        • Individual post settings
        • Bulk post settings
        • Post settings
      • WordPress
        • WordPress posts settings
        • Custom post types
        • Forum plugins
    • Product
      • WordPress product settings
      • Remove product reviews
      • Payment gateway support
      • Shipping plugins support
    • Settings
      • General
        • Change app product
        • Change app name
        • Change domain
        • Offline mode
        • Delete App
      • Social
        • Connect social media
    • Preview
      • Preview app
      • Test APK on real device
      • Test IPA on real device
      • Screenshots from Preview
      • Preview not working
    • Download
      • iOS
        • Create Apple Developer Account
        • Generate iOS app
        • iPad support
        • App permissions
        • Certifications
          • Apple Team ID
          • App identifier
          • Certificate signing request
          • iPhone distribution certificate
          • iPhone provisioning profile
      • Android
        • Create Google Developer Account
        • Generate Android app
        • App publishing time
        • Android app visibility
      • Migrate live app
        • Migrate existing app
        • User impact after replacing app
        • Change bundle ID
    • Upload
      • iOS
        • Prepare for iOS submission
        • Upload iOS app
        • Submit new iOS version
        • Grant Apple developer access
        • Artwork for iOS app
        • Screenshot guidelines
        • iPad screenshots
        • Transfer iOS app
        • Distribution certificate error
      • Android
        • Prepare for Android submission
        • Upload Android app
        • Submit new Android version
        • Grant Google developer access
        • Artwork for Android app
        • Tablet screenshots
        • Transfer Android app
      • App Stores
        • Developer account ownership
        • Need for developer account
        • Support for app stores
        • Update notification
        • App store publishing policies
        • App Store compliance
        • Rejection due to Guideline 4.3(a)
        • Distribute app without publishing
        • Choosing Apple developer program
        • Minimum functionality rejection
        • Unpublish Android app
        • Remove app store listing
    • Publish
      • Prerequisites to publish
      • Publish app directly
      • Publish feature importance
    • Analytics
      • Access analytics data
      • Tracks events in GA4
    • Notifications
      • Advanced notifications
        • Create advanced notifications
        • Add images to notification
        • Audience segmentation
        • Users log
      • Basic Notifications
        • Create push notification
        • Schedule notifications
        • Push notifications issue
        • Create Firebase project
        • Add Firebase user
      • Notification configuration
        • iOS configuration for basic notifications
        • iOS configuration for advanced notifications
        • Android build configuration
        • Update Firebase Settings
        • Push Notification Permission
    • Chat
      • Integrate chat
      • Third-party chat integration
    • Merge Apps
      • Merge apps
    • Add-ons
      • App Store Artwork
      • Mobile App Design
      • Upload to app stores
      • Build & Upload
      • Dedicated server
      • Translate app
      • Languages support
    • Monetization
      • Advertisement
        • Configure AdMob
        • AdMob issue - Android
        • Ad options
      • In-App Purchases
        • Configure In-App Purchases
    • Performance
      • App speed
      • WordPress plugin effects
      • WordPress plugin support
    • Team
      • Manage team members
      • Team roles
  • Unlimited Workspace
    • Create workspace
    • Create app in workspace
    • Find apps under workspace
    • Invite team on workspace
    • Assign roles to team
    • Workspace benefits
    • Transfer app to Workspace
    • AppSumo - Unlimited Workspace
    • Delete workspace
  • Agency White- Label
    • Apps
      • Agency product overview
      • Create app in Agency
      • Find clients' apps
      • Add a DNS record
      • Migrate live apps agency
      • Client's app success
      • Personalize white-label
    • Subscriptions
      • Manage client's subscriptions
      • Monthly subscription for Agency
      • Manage customer’s subscription
      • Unlimited agency offerings
    • Customers
      • Access clients' information
      • Customer onboarding limit
      • Features for customers
      • Charge customers
    • Domain
      • Connect agency to website
      • Connect subdomain
    • Email
      • Connect email server
    • Authentication
    • Support
      • Support for agency’s customers
    • Team
      • Add team members
    • Settings
      • Delete agency
  • Account
    • Security
      • Activate 2FA
      • Deactivate 2FA
      • Secure account
      • Account compromised
      • Data security
      • Account hacked
      • Personal information security
    • Delete account
    • Change account email
    • Reset account password
    • Transfer account ownership
    • App ownership
    • Transfer subscription
    • Login history
    • Login disabled
    • Unknown login session
    • Account locked
    • Brute force attacks
    • Find my app
    • Source code
    • Transfer app from AppMySite
  • Billing
    • Subscriptions
      • Subscription fee
      • Apps per subscription
      • Upgrade subscription
      • Downgrade subscription
      • Charge after downgrade
      • Change subscription
      • Recurring subscription payment
      • Prorated credits
    • Invoices
      • Find invoices
      • Invoice details issue
    • Billing details
      • Change billing details
      • Pre-payment process
      • Cancellation policy
      • Automatic charge
      • Failed payment
      • Card details security
      • Refund policy
      • Change payment method
    • Deals
      • Activate AppSumo deal
      • AppSumo white-label
      • AppSumo features & addons
      • Apply deal license
      • Apply deal on preview app
      • Apply deal to workspace
  • General
    • Remove AppMySite branding
    • Support for file uploads
    • App creation time
    • WooCommerce vs WordPress
    • Why choose WordPress
    • Custom development services
    • Feature request
    • Affiliate program
    • Reseller program
    • Support for all websites
    • Android TV support
    • Web app support
    • Explain native app
    • Native vs hybrid app
    • GDPR compliance
    • GDPR importance
    • Distribute apps
    • Distribution License
    • Web-to-app for WordPress
    • Multimedia in custom app
    • Code snippets in custom app
  • Pricing
    • Pricing plan suitability
    • Free plan
    • Custom plan features
    • Free plan features
    • Reasons to buy premium plan
    • One-time payment
    • Payment failure
    • Hidden charges
    • Tax inclusions
    • Developer accounts cost
    • Access to extra features
  • Support
    • Support plans guide
    • Scope of assistance
    • Contact support
    • Support for issues
    • Critical issues
    • General vs. technical guidance
    • Community
    • Scam by impersonator
Powered by GitBook
On this page

Was this helpful?

  1. App
  2. Notifications
  3. Notification configuration

Android build configuration

PreviousiOS configuration for advanced notificationsNextUpdate Firebase Settings

Last updated 18 days ago

Was this helpful?

How to configure your Android build for push notification?

Send push notifications from within your app dashboard. To send notifications for your app, it is mandatory to configure your app build. Here’s a step-by-step guide on how to set it up for Android:

Step 1: Enable notification settings

  • Navigate to the Notification Build Settings screen in your AppMySite dashboard.

  • Turn on the toggle for the type of notifications you want to configure:

    • Basic notifications

    • Advanced notifications

    • Both

  • Click on Generate in the SHA-1 key field.

If you’re configuring basic notifications, you do not need to generate an SHA-1 key.

Step 2: Set up Google Firebase

  • Navigate to Google Firebase and create a new project if you haven’t already set one up during the iOS build configuration.

If you have already set up a Firebase project for iOS notifications, you must use the same project for Android.

Refer to the guide to learn how to create a Firebase project.

  • On the Project Overview screen, click on Add app and select Android.

  • Next, you’re required to enter your app package name. Navigate back to your AppMySite app dashboard and copy your Android app’s package name.

  • After adding your package name, enter a nickname for your app.

  • Paste the SHA-1 key you generated earlier on the Build Settings screen on AppMySite.

  • After proceeding to the next step, download the google-services.json file. Click on next again to complete the process.

  • Next, click on the gear icon next to Project Overview and select Project settings.

  • Navigate to the “Service accounts” tab.

  • Click on Generate new private key. Make sure node.js is selected. The key would be downloaded as a json file.

Your google-services.json file is essential for Firebase integration. Keep it safe, as you will need it for the next step.

Step 3: Upload Firebase configuration files

  • Return to the Notification Build Settings screen in your AppMySite account.

  • In the Google Firebase Configuration field, upload the google-services.json file.

  • In the Google Firebase Service Account field, upload the .json key file.

  • Click Save to complete the setup.

Make sure you upload the correct Firebase configuration files to avoid connectivity issues.

Step 4: Generate a new Android app build

  • Once the configuration is complete, create a new build of your Android app.

If you are enabling only basic notifications, you do not need to generate the SHA-1 key.

  • Download and install the new build on a test device to verify that push notifications work correctly.

Important

  • Once your new build is live, notifications will start working automatically.

  • If you face any issues, verify that you have uploaded the correct Firebase configuration files.

  • You must rebuild and submit a new version of your app every time you modify notification settings.

This setup ensures that your app is configured to send push notifications efficiently using Firebase.

Create Firebase project