We are getting the following crash when targeting Android O (Oreo) when using the Marketing Cloud Mobile Push Android SDK v5.2.x and initializing with:
MarketingCloudSdk.init(this, MarketingCloudConfig.builder()
.setApplicationId("OUR ID")
.setAccessToken("OUR TOKEN")
.setGcmSenderId("OUR GCM SENDER ID")
.setAnalyticsEnabled(true)
.build(), new MarketingCloudSdk.InitializationListener() {
@Override public void complete(InitializationStatus status) {
//no-op
}
});
We get the following error:
java.lang.IllegalStateException: A channel name must be provided when target SDK version is at least Android O.
at com.salesforce.marketingcloud.notifications.NotificationManager.a(Unknown Source:19)
at com.salesforce.marketingcloud.notifications.NotificationManager.a(Unknown Source:4)
at com.salesforce.marketingcloud.MarketingCloudSdk.f(Unknown Source:309)
at com.salesforce.marketingcloud.MarketingCloudSdk.b(Unknown Source:43)
at com.salesforce.marketingcloud.MarketingCloudSdk.a(Unknown Source:0)
at com.salesforce.marketingcloud.MarketingCloudSdk$1.run(Unknown Source:38)
at java.lang.Thread.run(Thread.java:764)