@@ -15,7 +15,7 @@ import org.unifiedpush.android.connector.MessagingReceiverHandler
1515
1616val handler = object : MessagingReceiverHandler {
1717
18- override fun onMessage (context : Context ? , message : String ) {
18+ override fun onMessage (context : Context ? , message : String , instance : String ) {
1919 Log .d(" Receiver" ," OnMessage" )
2020 FlutterMain .startInitialization(context!! )
2121 FlutterMain .ensureInitializationComplete(context, null )
@@ -31,7 +31,7 @@ val handler = object : MessagingReceiverHandler {
3131 }
3232 }
3333
34- override fun onNewEndpoint (context : Context ? , endpoint : String ) {
34+ override fun onNewEndpoint (context : Context ? , endpoint : String , instance : String ) {
3535 Log .d(" Receiver" ," OnNewEndpoint" )
3636 FlutterMain .startInitialization(context!! )
3737 FlutterMain .ensureInitializationComplete(context, null )
@@ -45,17 +45,17 @@ val handler = object : MessagingReceiverHandler {
4545 }
4646 }
4747
48- override fun onRegistrationFailed (context : Context ? ) {
48+ override fun onRegistrationFailed (context : Context ? , instance : String ) {
4949 Log .d(" Receiver" ," OnRegistrationFailed" )
5050 Plugin .withCallbackChannel?.invokeMethod(" onRegistrationFailed" , null )
5151 }
5252
53- override fun onRegistrationRefused (context : Context ? ) {
53+ override fun onRegistrationRefused (context : Context ? , instance : String ) {
5454 Log .d(" Receiver" ," OnRegistrationRefused" )
5555 Plugin .withCallbackChannel?.invokeMethod(" onRegistrationRefused" , null )
5656 }
5757
58- override fun onUnregistered (context : Context ? ) {
58+ override fun onUnregistered (context : Context ? , instance : String ) {
5959 Log .d(" Receiver" ," OnUnregistered" )
6060 FlutterMain .startInitialization(context!! )
6161 FlutterMain .ensureInitializationComplete(context, null )
@@ -96,34 +96,34 @@ abstract class UnifiedPushHandler : MessagingReceiverHandler {
9696 return plugin;
9797 }
9898
99- override fun onMessage (context : Context ? , message : String ) {
99+ override fun onMessage (context : Context ? , message : String , instance : String ) {
100100 Log .d(" Receiver" ," OnMessage" )
101101 handler.post {
102102 getPlugin(context!! ).withReceiverChannel?.invokeMethod(" onMessage" , message)
103103 }
104104 }
105105
106- override fun onNewEndpoint (context : Context ? , endpoint : String ) {
106+ override fun onNewEndpoint (context : Context ? , endpoint : String , instance : String ) {
107107 Log .d(" Receiver" ," OnNewEndpoint" )
108108 handler.post {
109109 getPlugin(context!! ).withReceiverChannel?.invokeMethod(" onNewEndpoint" , endpoint)
110110 }
111111 }
112112
113- override fun onRegistrationFailed (context : Context ? ) {
113+ override fun onRegistrationFailed (context : Context ? , instance : String ) {
114114 handler.post {
115115 getPlugin(context!! ).withReceiverChannel?.invokeMethod(" onRegistrationFailed" , null )
116116 }
117117 }
118118
119- override fun onRegistrationRefused (context : Context ? ) {
119+ override fun onRegistrationRefused (context : Context ? , instance : String ) {
120120 Log .d(" Receiver" ," OnRegistrationRefused" )
121121 handler.post {
122122 getPlugin(context!! ).withReceiverChannel?.invokeMethod(" onRegistrationRefused" , null )
123123 }
124124 }
125125
126- override fun onUnregistered (context : Context ? ) {
126+ override fun onUnregistered (context : Context ? , instance : String ) {
127127 Log .d(" Receiver" ," OnUnregistered" )
128128 handler.post {
129129 getPlugin(context!! ).withReceiverChannel?.invokeMethod(" onUnregistered" , null )
0 commit comments