File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 41
41
// when "proguard-android-optimize.txt" is used.
42
42
public class ADMMessageHandler extends ADMMessageHandlerBase {
43
43
44
+ private static final int JOB_ID = 123891 ;
45
+
44
46
public static class Receiver extends ADMMessageReceiver {
45
47
public Receiver () {
46
48
super (ADMMessageHandler .class );
47
49
boolean ADMLatestAvailable = false ;
48
- try {
50
+ try {
49
51
Class .forName ( "com.amazon.device.messaging.ADMMessageHandlerJobBase" );
50
52
ADMLatestAvailable = true ;
51
53
}
@@ -54,8 +56,9 @@ public Receiver() {
54
56
// Handle the exception.
55
57
}
56
58
if (ADMLatestAvailable ) {
57
- registerJobServiceClass (ADMMessageHandlerJob .class , 123891 );
59
+ registerJobServiceClass (ADMMessageHandlerJob .class , JOB_ID );
58
60
}
61
+ OneSignal .Log (OneSignal .LOG_LEVEL .DEBUG , "ADM latest available: " + ADMLatestAvailable );
59
62
}
60
63
}
61
64
You can’t perform that action at this time.
0 commit comments