# Check that your mobile app is connected

> Confirm in the Releva admin that your Firebase credentials are saved, that the app's push token registrations arrive as Push Notification Subscribe events, and that the shopper's profile shows App push Subscribed with an IOS or ANDROID badge.

Run your app once on a device or simulator with the SDK set up, accept the notification permission, and open a screen that sends a page token. Then check the four screens below. They are the same for every mobile SDK.

## Before you start

* The SDK is initialised with your shop’s **Access Token**, a `deviceId` and a `profileId`, and `registerPushToken` has run at least once. Use a profile id you can type, for example `demo-app-user-1001`, while testing.
* Firebase credentials are saved: [Add your Firebase credentials for app push](https://releva.ai/documentation/integrations/mobile/add-firebase-credentials-for-app-push/). Skip steps 1 and 2 if you do not use app push.
* The app’s log shows the SDK’s own request lines, for example `[Releva] POST /api/v0/appPush/tokens -> 202` in React Native, or `RelevaSDK: ✓ Successfully registered push token for ios` in Swift with `RelevaConfig.debug()`.

## Steps

1. Go to **Settings › Messaging › Push Notifications** and check that the service account’s e-mail address shows above the upload field. If the field is empty, the credentials were not saved

   The screenshot shows a fictional service account on the demo shop.

   ![Step 1](https://releva.ai/documentation/_astro/step-1.BOT_Iq5t_2Lf3i.webp)

2. Go to **Marketing Channels › Push Notifications**, select **New push Notification** and check that **Android** and **IOS** can be selected under **Channels**. Without Firebase credentials they are greyed out

   ![Step 2](https://releva.ai/documentation/_astro/step-2.Dxdx7RPn_2aGBHW.webp)

3. Go to **Data Platform › Events**

   ![Step 3](https://releva.ai/documentation/_astro/step-3.0I59DD-l_1NMwKK.webp)

4. In **Filter by event action…**, type **Push Notification Subscribe**

   ![Step 4](https://releva.ai/documentation/_astro/step-4.BjeGfzIa_ITBeD.webp)

5. Each time your app registers a push token, Releva records a **Push Notification Subscribe** event for that profile

   The **Profile** column shows the profile id the app set, or the device id when the app set none. The event is written on every registration, so one row per app start is normal for SDKs that re-register on launch.

   ![Step 5](https://releva.ai/documentation/_astro/step-5.BIpIBInT_247JER.webp)

6. In **Raw Data**, expand **tags** to see the device type the app sent, for example **device_ios** or **device_android**

   ![Step 6](https://releva.ai/documentation/_astro/step-6.DiJk8E3T_1AqpgF.webp)

7. Go to **Data Platform › Profiles**

   ![Step 7](https://releva.ai/documentation/_astro/step-7.CoVlvsXE_Sesn3.webp)

8. In **Profile Id**, enter the profile id your app sets with setProfileId, and select **Include Anonymous Profiles** if the user has not given an e-mail address or phone number

   A profile that exists only because the app registered a token has no e-mail or phone, so it is listed only with **Include Anonymous Profiles** ticked. The filter is an exact match.

   ![Step 8](https://releva.ai/documentation/_astro/step-8.CrDzyhvK_ZLbkvp.webp)

9. Select the profile to open it

   ![Step 9](https://releva.ai/documentation/_astro/step-9.B9M-XxlW_2p5pQx.webp)

10. Under **Subscription status**, **App push** shows **Subscribed** with the date of the first registration and a badge for each platform (**IOS**, **ANDROID**)

    The header still reads **NOT SUBSCRIBED**: app push is a per-device status, separate from marketing consent, as the card says.

    ![Step 10](https://releva.ai/documentation/_astro/step-10.Cdw8pPbw_280c1A.webp)

## Check it worked

* One **Push Notification Subscribe** row per registration, tagged with the device type your app sent.
* **Viewed Page** rows for the screens that send a page token. On **Data Platform › Events** filter by **Viewed Page**; the row names the Releva page that matched the token. See [Check that an event reached Releva](https://releva.ai/documentation/guides/events/check-that-an-event-reached-releva/).
* **App push: Subscribed** on the profile, with a badge for each platform that registered.

## Troubleshooting

**No Push Notification Subscribe event.** The call never left the app or was rejected. Check the app log for the request line and its status. `202` means accepted. A `400` body names the problem: `Please provide deviceId before using the client!` is thrown by the SDK before any request when `setDeviceId` has not run. Backend `400` messages are listed in the [push notifications reference](https://releva.ai/documentation/reference/push-notifications/overview/#register-a-mobile-app-push-token).

**The profile is not found.** Tick **Include Anonymous Profiles**. The **Profile Id** filter is an exact match. If your app sets no profile id, the profile is listed under the device id.

**A screen view records no Viewed Page.** The `screenToken` is not a token of a page on **Personalization › Product Blocks**, or the screen was sent without one. Releva answers `200` either way and stores nothing, so the app log looks fine. Copy the token from the **Token:** bar. If you test the API by hand, send a real device user agent: requests from `curl` and other bot user agents are dropped as bots.

**App push shows Not subscribed although events arrived.** The token row was marked deleted after Firebase rejected it at send time (a bounce), or the registration went to a different profile id than the one you opened. Register again from the app and reload the profile.

**Android and IOS stay greyed out on the push form.** Reload the form after saving credentials. With **Separate**, each platform needs its own file; the form says which one is missing.

## Next steps

* [Mobile SDKs overview](https://releva.ai/documentation/integrations/mobile/mobile-sdks-overview/): See what every SDK sends and what still has to come from your backend.
* [Add your Firebase credentials for app push](https://releva.ai/documentation/integrations/mobile/add-firebase-credentials-for-app-push/): Upload the credentials Releva sends app push through.
* [Check that an event reached Releva](https://releva.ai/documentation/guides/events/check-that-an-event-reached-releva/): Read a raw event to confirm it arrived with the right data.
* [Push notifications API overview](https://releva.ai/documentation/reference/push-notifications/overview/): See the endpoints that register your app for push.