Newsfreak Doc
Product LinkInstallation PlansSupport
  • Introduction
  • Changelogs
  • Getting Started
  • 🌐WordPress Setup
    • 1. Install Plugins
      • 1.1 JWT Authentication Setup
    • 2. Import Newsfreak Assets
  • 📱App Setup
    • 1. Flutter Installation
    • 2. Code Setup
    • 3. Push Notification Setup
      • 3.1 Android Notification Setup
      • 3.2 iOS Notification Setup
      • 3.3 OneSignal Setup
    • 4. App Information Setup
      • 4.1 Change Package Name
      • 4.2 Change App Name
      • 4.3 Change App Icon
      • 4.4 Change Splash Icon
      • 4.5 Change Logo
      • 4.6 Change App Theme Color
      • 4.7 On-Boarding Setup
      • 4.8 Update Website URL
    • 5. Run the App
    • 6. Releasing the Android App
      • 6.1 Generate Keystore File
      • 6.2 Uploading At Google Play
    • 7. Releasing the iOS App
  • ⚒️Additional Setup
    • 8. Multi-Language Setup
    • 9. Ads Setup
      • 9.1 Admob Setup
        • 9.1.1 Admob Setup for Android
        • 9.1.2 Admob Setup for iOS
      • 9.2 Custom Ads Setup
    • 10. Social Logins Setup
      • 10.1 Google Login
      • 10.2 Facebook Login
      • 10.3 Apple Login
    • 11. Deep/App Links Setup
      • 11.1 WordPress Setup
      • 11.2 Android Setup
      • 11.3 iOS Setup
    • 12. Featured Posts Setup
    • 13. Video Posts Setup
    • 14. Home Categories Setup
  • ✨Updates
    • Migrate to v2.2
    • Migrate to v2.1
    • Migrate to v2.0
  • 🎇Issues & Fixes
    • 1. No Internet Issue
Powered by GitBook
On this page
  • 3.1.1 Android Setup for Onesignal
  • 3.1.2 iOS Setup for Onesignal
  • 3.1.3 WordPress Setup for Onesignal
  • 3.1.4 Update OneSignal App ID in the code
  1. App Setup
  2. 3. Push Notification Setup

3.3 OneSignal Setup

Last updated 9 months ago

3.1.1 Android Setup for Onesignal

  1. Create your Onesignal account from or use your existing Onesignal account and create an app.

  1. Enter your app name select Google Android FCM and click on Next.

  1. In the next step, select Flutter as your target SDK.

  1. Click Save and Done to complete the Android setup.

3.1.2 iOS Setup for Onesignal

  1. From Onesignal > Your app > Settings > Platforms, Select Apple iOS.

  1. Now, upload your key, Key ID, Team ID, and iOS package name.

  1. Select Flutter as Your SDK if you get any sdk steps after this.

  2. Save and activate this configuration.

3.1.3 WordPress Setup for Onesignal

  1. From your WordPress Dashboard > Onesignal Push > Configuration, Add your Onesignal App ID, and Rest API key.

You can get both the Onesignal App ID and Rest API key from your Onesignal Account > Your app > Settings > Keys & IDs.

  1. Enable Send notifications additionally to iOS & Android Platforms.

  2. Save the configurations.

After this setup, you will get an option in your editor to send notifications on post updates.

3.1.4 Update OneSignal App ID in the code

From Onesignal > Your app > Settings > Keys & IDs, You will get your Onesignal App ID. Copy this and update the ID in the lib/config/config.dart file.

For the next step, you need to download your Firebase Admin SDK from your Firebase project. Follow to download the file and upload the JSON file here.

From 3.2, you will get your key (.p8 file) from your Apple developer account. For more details, you can check out.

📱
this (2 & 3)
this
here