Getting started

MegaGeneral is created using many sofwares and SDK. To start building your own application you have to install all the appropriate softwares.

Xcode

Xcode is an integrated development environment (IDE) for macOS containing a suite of software development tools developed by Apple for developing software for macOS, iOS, watchOS, and tvOS. The latest stable release is version 10.2 and is available via the Mac App Store free of charge for macOS High Sierra and macOS Mojave users. To download Xcode:

  1. Go to App Store from your Mac
  2. Search for Xcode in the search field
  3. Click download button and wait until finish

Firebase

Firebase is a cloud platform by Google with completed services like Analytics, Authentication, Realtime Database, Cloud Firestore, Advertising, Hosting and many other services. MegaGeneral use Firebase to manage and create Cloud Messaging, Ads, Interstitial Ads, RewardBasedVideo Ads and RemoteConfig. To setup Firebase in MegaGeneral:

  1. Create an project on Firebase
  2. Extract the API Key from Firebase project
  3. Download the file GoogleService-Info.plist from Firebase

AdMob

Google AdMob makes it easy for developers to earn money from their mobile apps with high-quality ads. AdMob maximizes the value of every impression by combining global advertiser demand, innovative ad formats, and advanced app monetization technology.

  1. Create an AdMob account if you don’t have one
  2. Create a project on AdMob
  3. Sign in to Firebase
  4. Click on Project Settings icon
  5. Click on Integrations tab
  6. On the AdMob card, click iOS.

OneSignal

OneSignal is a free push notification service for mobile apps. OneSignal sends high volumes of notifications on the mobile, web and via email. This is the difference with Firebase Cloud Messaging.

  1. Create an OneSignal account if you don’t have one
  2. Create a project
  3. Get the API Key and save it

MegaGeneral

Extract MegaGeneral template folder and click on MGProject.xcworkspace to open the project. Once you have all the API Key, is time to use them on the application:

  1. Drag and drop GoogleService-Info.plist to the project
  2. Change ADMOB_APP_ID with your AdMob
  3. Add GADApplicationIdentifier key in Info.plist with value of AdMob