Skip to content

Commit

Permalink
Merge pull request #742 from mixpanel/airship-upgrade
Browse files Browse the repository at this point in the history
migrate to Airship 12.x for the integration
  • Loading branch information
zihejia committed May 18, 2021
2 parents 1e7fec8 + 8cb1db2 commit 6ed0aad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ private void setAirshipPeopleProp() {
try {
Class urbanAirshipClass = Class.forName(urbanAirshipClassName);
Object sharedUAirship = urbanAirshipClass.getMethod("shared").invoke(null);
Object pushManager = sharedUAirship.getClass().getMethod("getPushManager").invoke(sharedUAirship);
String channelID = (String)pushManager.getClass().getMethod("getChannelId").invoke(pushManager);
Object channel = sharedUAirship.getClass().getMethod("getChannel").invoke(sharedUAirship);
String channelID = (String)channel.getClass().getMethod("getId").invoke(channel);
if (channelID != null && !channelID.isEmpty()) {
mUrbanAirshipRetries = 0;
if (mSavedUrbanAirshipChannelID == null || !mSavedUrbanAirshipChannelID.equals(channelID)) {
Expand Down

0 comments on commit 6ed0aad

Please sign in to comment.