メッセージング サービスのセットアップ

提供: RAD Studio
移動先: 案内検索

プッシュ通知 への移動

You can send Remote Notifications to your Android or iOS devices from one of the cloud service providers available (Kinvey or Parse) or from the backend service EMS.

アプリケーションがリモート通知を受信できるようにするには、以下が必要です。

  • Android アプリケーションの場合は、Google Developer Console での新規プロジェクト。
  • iOS アプリケーションの場合は、Apple デベロッパ プログラムでの新規アプリケーション ID。

Android アプリケーションおよび iOS アプリケーション用のメッセージング サービスをセットアップするには、以下の手順に従います。

Google への登録

  1. Google Developer Console にアクセスします。
  2. Click the drop-down list labeled as Select a project, choose Create a project and define a name for your project:
    ProjectName.png

    Once you create a project, you can access the settings information of this project. To this end, click the drop-down list next to Google APIs logo and select IAM & Admin. Choose a project from the combobox and click Settings to find the Project name, the Project ID and the Project number.
    ProjectPage.png
    You will need the Project number to configure the TEMSProvider (see step 3 on section Design and Set Up the User Interface from page マルチデバイス アプリケーションでのプッシュ通知の受信).
  3. Click Google APIs, search the Google Cloud Messaging API and click the Enable button.
  4. Once it is enabled, click the Go to Credentials button. Choose Android from the combo box and click What Credentials do I need?.
    Credentials.png
  5. Name your API Key and click Create API Key.
    NameAPIKey.png
    Now, you have created the API Key. You will need the API Key for configuring the EMS Google Cloud Messaging settings on the EMSServer.ini file.
    APIKey.png

Apple への登録

メモ: Apple デベロッパ プログラム上で次のタスクを実行するには、チーム エージェントまたは管理者になる必要があります。

Apple デベロッパ プログラムで iOS アプリケーション ID を作成する

  1. [iOS Developer Program|Certificates, Identifiers & Profiles|Identifiers|App IDs]ページにアクセスします。
    NewAppid.png

  2. 右上の[+]ボタンをクリックして、新規アプリケーション ID を定義します。 [App ID Description][App ID Prefix][App ID Suffix]の各フィールドに入力します。また、[App Services]セクションの[Push Notifications]もオンにします。
    AppName.png

  3. [Continue]をクリックしたあと、[Submit]をクリックしてアプリケーション ID を確定します。
    Submit.png
    これで、アプリケーションが登録されました。

アプリケーションの証明書を作成する

  1. [Certificates, Identifiers & Profiles]ページで、アプリケーションを選択し[Edit]をクリックします。
    AppEdit.png
  2. [Development SSL Certificate]セクションの[Create Certificate...]をクリックします。
    CreateCert.png

  3. [About Creating a Certificate Signing Request (CSR)]ページで、[Continue]をクリックします。
  4. Mac で、[キーチェーンアクセス|証明書アシスタント|認証局に証明書を要求...]を選択します。
    Keychain.png
  5. [証明書アシスタント]ページで以下を行います。
    • ご自分の電子メール アドレスと名前を入力します。
    • [ディスクに保存]オプションをオンにします。
    • [続ける]をクリックします。
    CertInfo.png
  6. ファイル名を指定して保存します。 これで、CSR がファイルとして保存されました。
  7. Apple デベロッパ プログラムの Web ページで、CSR を指定します。
    GenerateCert.png
  8. [Generate]をクリックすると、証明書ができあがります。その証明書をダウンロードし、システムにインストールします。
    CertReady.png
  9. これで、証明書がシステムにインストールされました。
    AppleDev.png

プロビジョニング プロファイルを作成する

  1. [iOS Provisioning Profiles]ページで、右上の[+]をクリックします。
    Profile.png

  2. [Add iOS Provisioning Profile]ページで以下を行います。
    • プロファイルの種類として[iOS App Development]を選択します。[Continue]をクリックします。
      Profiletype.png

    • 前のステップで作成したアプリケーション ID を選択します。
      SelectAppID.png



  3. このプロファイルを使用できるユーザーのリストを選択し、[Continue]をクリックします。
  4. このプロファイルのデバイスのリストを選択し、[Continue]をクリックします。
  5. プロファイルの名前を指定し、[Generate]をクリックします。
    Nameprofile.png

  6. できあがったプロファイルをダウンロードします。
    Profileready.png

  7. このプロファイルをダブルクリックします。お使いの Mac の Xcode に、それが新規プロファイルとして表示されるはずです。
    Xcode.png

.p12 証明書をエクスポートする

  1. お使いの Mac のキーチェーンアクセスで、証明書を選択して右クリックし、["<証明書名>"を書き出す...]を選択します。
    Export.png

  2. 名前を入力し、[保存]をクリックします。
    SaveCert.png

    メモ: Kinvey または EMS をサービス プロバイダとして使用する場合は、パスワードのみ選択できます。

関連項目