Skip to content

Commit 515600f

Browse files
committed
proguard rule OSRemoteNotificationReceivedHandler
* Added OSRemoteNotificationReceivedHandler to consumer-proguard-rules.pro with a comment on why.
1 parent 96058ed commit 515600f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

OneSignalSDK/onesignal/consumer-proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@
6565

6666
-keep public class com.onesignal.ADMMessageHandlerJob {*;}
6767

68+
# OSRemoteNotificationReceivedHandler is an interface designed to be extend then referenced in the
69+
# app's AndroidManifest.xml as a meta-data tag.
70+
# This doesn't count as a hard reference so this entry is required.
71+
-keep class ** implements com.onesignal.OneSignal$OSRemoteNotificationReceivedHandler {
72+
void remoteNotificationReceived(android.content.Context, com.onesignal.OSNotificationReceivedEvent);
73+
}
74+
6875
-keep class com.onesignal.JobIntentService$* {*;}
6976

7077
-keep class com.onesignal.OneSignalUnityProxy {*;}

0 commit comments

Comments
 (0)