Enabling Service on Native Platform

Note: If you want only Local Notifications, you can skip this setup. Below instructions are only for Remote/Push Notifications.

Enable APNS on iOS

Notification Service on iOS rely on Game Center. You can enable it from iOS developer portal. In-case you didn't enroll as an iOS developer, enroll here.

  1. Log in to iOS Dev Portal
  2. Under Identifiers -> App IDs section, select your app's build identifier entry.
  3. If Push notifications are not enabled under Application Services, click on Edit and enable it.

You can do the above from your Xcode -> Capabilities section as well.

For more information, please refer Push Notifications Setup Guide.

Enable GCM on Android (Deprecated in 1.5.7)

Notification Services on Android rely on Firebase Cloud Messaging (FCM). You can enable FCM by following below steps.

  1. Open Firebase Console.
  2. Select your Application or import your existing project.
  3. Under Project Overview, click on Project Settings .
  4. Link your android bundle identifier as mentioned.
  5. From General tab, download google-services.json file and copy it to your Assets folder of Unity project.
  6. You can check the keys under Project Settings -> Cloud Messaging section which needs to be used on your backend.

Enable GCM on Android (Deprecated in 1.5.7)

Notification Services on Android rely on Google Cloud Messaging (GCM). You can enable GCM by following below steps.

  1. Open Google Developer Console.
  2. Select your Application.
  3. In Overview tab, select "Google Cloud Messaging" under Mobile APIs .
  4. Enable the service.
  5. Select Credentials tab and create API key. Fill in the SHA key you got from keystore.
  6. Click on create API key.
  7. Save the Project number listed near the project name at top. This is used as Sender ID in NPSettings.

For more information, please refer this post.

results matching ""

    No results matching ""