Skip to content

Commit 4399131

Browse files
authored
Migs647/mixpanel (#21)
* Added Mixpanel Destination * Updated Destinations Example to use Amplitude Session and Mixpanel * Cleaned up code organization in Mixpanel and Amplitude * Fixed remote notification registration on Mixpanel
1 parent 542689c commit 4399131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/destination_plugins/MixpanelDestination.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import Foundation
3838
import Mixpanel
3939
import Segment
4040

41-
class MixpanelDestination: DestinationPlugin {
41+
class MixpanelDestination: DestinationPlugin, RemoteNotifications {
4242

4343
var type: PluginType
4444
var name: String
@@ -206,7 +206,7 @@ class MixpanelDestination: DestinationPlugin {
206206
return event
207207
}
208208

209-
func registeredForRemoteNotificationsWithDeviceToken(_ deviceToken: Data) {
209+
func registeredForRemoteNotifications(deviceToken: Data) {
210210
mixpanel?.people.addPushDeviceToken(deviceToken)
211211
analytics?.log(message: "Mixpanel people addPushDeviceToken \(deviceToken.toString())")
212212
}

0 commit comments

Comments
 (0)