はじめに 前回に引き続き Unity での Android ネイティブプラグインの実装 今回は、アプリ起動後に非アクティブにしたまま一定時間が経過したら、ローカル通知を出して呼び戻す機能の実装。 プラグイン側の実装 バックグラウンドで実行される Service を実装 バックグラウンドで実行される処理は IntentService の拡張クラスとして実装する 以下は実行後一定時間がたったらローカル通知を送信する Service の実装 package info.nirasan.notifytest; import android.app.IntentService; import android.content.Intent; import android.util.Log; public class NotifyIntentService extends IntentService {