Embedding Firebase + Amplitude(iOS)
K
Written by Kirill Slobodianiuk
Updated over a week ago

Firebase (Notification Service)

  1. Make sure that you’ve implemented Firebase Cloud Messaging SDK according to this instruction.

  2. Pay your attention and implement the first three paragraphs of this part of the instruction (in case you disable the method swizzling, the paragraph about disabled method swizzling is also mandatory).

  3. Make sure that the app resolves images in push notifications.

Amplitude (Integrate Analytics)

  1. There are 2 ways to send a push_token to Amplitude: via event + event_property, or via user_property:

    1. [Recommended]. Implement setting a user_property push_token using the identify method

    2. Implement sending event push_token with custom event property push_token in Amplitude.

  2. We strongly recommend triggering the push_token event logging on EVERY app start

    NOTE. In case you use Firebase Push SDK, make sure that you send Firebase registration id (which is also referred to as fcmToken in code examples). Do not confuse it with the APNS push token. The one we need looks like this:

    fVB5-GsfONYTmjsOX6POeS:APA91bGOokpBTI_aAO_JybIMfJ8WCPX_77EWVqzOlmsTm6GaUngqRf-hu_ZMXS9JptSOqBJ0YxOGIhnUwZAetYELraJkvzGOJxQCksefcJLsg_1zPi7LYKWqfQ35qLc2CNwb6TFddGv9
Did this answer your question?