Configuration

3. Push Notifications

For Push Notifications we use the free service OneSignal. It's great, because it won't produce any costs on your site and it's also trusted by many companies around the globe.

3.1 Create Account

Head over to the OneSignal website and create your account. After that create an app on OneSignal and name it however you like.

➡️ OneSignal Website

3.2 Android Setup

Follow OneSignal's instructions on generating a Google Server API Key:

➡️ https://documentation.onesignal.com/docs/generate-a-google-server-api-key

3.3 iOS Setup

Follow OneSignal's instructions on generating an iOS Push Certificate:

➡️ https://documentation.onesignal.com/docs/generate-an-ios-push-certificate

3.4 Connect the app with OneSignal

Open the file android/app/build.gradle in your code editor. Searchfor onesignal_app_id and replace the app id with your app id.

        manifestPlaceholders = [onesignal_app_id: "YOUR_ONESIGNAL_APP_ID",
                                onesignal_google_project_number: "REMOTE"]

Now open the file ios/moconference/AppDelegate.m directly in XCode or in your code editor and replace the app id with your app id again.

self.oneSignal = [[RCTOneSignal alloc] initWithLaunchOptions:launchOptions
                                                       appId:@"YOUR_ONESIGNAL_APP_ID"];

results matching ""

    No results matching ""