Skip to content

Commit

Permalink
feat: Update External iD on Initialization (#166)
Browse files Browse the repository at this point in the history
* feat: Update External iD on Initialization

* Update src/main/kotlin/com/mparticle/kits/AppboyKit.kt

Co-authored-by: Ben Baron <[email protected]>
Signed-off-by: Brandon Stalnaker <[email protected]>

---------

Signed-off-by: Brandon Stalnaker <[email protected]>
Co-authored-by: Ben Baron <[email protected]>
  • Loading branch information
BrandonStalnaker and einsteinx2 authored Jun 11, 2024
1 parent a040f97 commit 664c19d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/kotlin/com/mparticle/kits/AppboyKit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.braze.push.BrazeFirebaseMessagingService
import com.braze.push.BrazeNotificationUtils.isBrazePushMessage
import com.google.firebase.messaging.RemoteMessage
import com.mparticle.MPEvent
import com.mparticle.MParticle
import com.mparticle.MParticle.IdentityType
import com.mparticle.MParticle.UserAttributes
import com.mparticle.commerce.CommerceEvent
Expand Down Expand Up @@ -97,6 +98,12 @@ open class AppboyKit : KitIntegration(), AttributeListener, CommerceListener,
)
}
setIdentityType(settings)

val user = MParticle.getInstance()?.Identity()?.currentUser
if (user != null) {
updateUser(user)
}

return null
}

Expand Down

0 comments on commit 664c19d

Please sign in to comment.