|
@@ -12,11 +12,6 @@ import org.json.JSONObject
|
|
|
|
|
|
class FirebaseService : FirebaseMessagingService() {
|
|
class FirebaseService : FirebaseMessagingService() {
|
|
|
|
|
|
- private val entryPoint = EntryPointAccessors.fromApplication(
|
|
|
|
- applicationContext,
|
|
|
|
- IncomingInterface::class.java
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
override fun onNewToken(token: String) {
|
|
override fun onNewToken(token: String) {
|
|
super.onNewToken(token)
|
|
super.onNewToken(token)
|
|
Log.d(tag, "onNewToken:$token")
|
|
Log.d(tag, "onNewToken:$token")
|
|
@@ -48,6 +43,10 @@ class FirebaseService : FirebaseMessagingService() {
|
|
if (data.isNotEmpty()) {
|
|
if (data.isNotEmpty()) {
|
|
val d = Data()
|
|
val d = Data()
|
|
if (d.parse(data)) {
|
|
if (d.parse(data)) {
|
|
|
|
+ val entryPoint = EntryPointAccessors.fromApplication(
|
|
|
|
+ applicationContext,
|
|
|
|
+ IncomingInterface::class.java
|
|
|
|
+ )
|
|
entryPoint.incoming().process(d) {
|
|
entryPoint.incoming().process(d) {
|
|
if (it) {
|
|
if (it) {
|
|
Network().post(
|
|
Network().post(
|