Android
ActivityLifecycleCallbacks は Activity のライフサイクルを監視して、処理を挟み込める機構です。 使い方は至って単純で、Application.ActivityLifecycleCallbacks を implement し、Application のインスタンスメソッド registerActivityLifecycleCallbac…
前書いたので RegistrationIdSender (registrationId: String をサーバに送るメソッドだけ) を実装して渡すことでよしなにやる Helper です。 gist.github.com