Skip to main content
Confirm that google-services.json belongs to the app package and the Google Services plugin runs for the app module. The SDK reuses the default Firebase app when one exists.
Call Pushctl.initialize from Application.onCreate, confirm internet access, verify that the embedded token uses the Client preset, and call waitForRegistration to receive the exact failure.
Confirm Firebase initializes with the app’s google-services.json and that the device can reach Firebase and the Pushctl API.
Inspect the error from waitForRegistration or onRegistrationFailed. Verify network access, the Client token, and the Android platform configuration in Pushctl.
Call requestPermission from a visible Activity. Do not call it only during background startup.
Initialize with PushctlConfiguration and set notificationIcon, notificationChannelId, and notificationChannelName. Existing channel properties may need to be changed by the user in system settings.
Register the click listener early, or forward a custom activity intent through handleNotificationOpen.
Wait for confirmed registration, then call login after authentication and handle its callback. A later successful login replaces the previous ID, and a successful logout makes the installation anonymous.
Identity methods report an error when the installation is not registered or the Pushctl API rejects the update. Do not treat invocation alone as success.
Check registrationStatus, registrationError, and isRegistered in Pushctl.subscriptionState() before comparing the installation ID with the dashboard.