Instant hotfix
Devices normally pick up updates on their next launch. With Firebase Cloud Messaging connected, Healkite sends one silent message and open or backgrounded apps update within seconds.
Connect Firebase
- In Firebase: Project settings → Service accounts → Generate new private key.
- In Healkite: Settings → Instant updates, paste the JSON. It's encrypted at rest.
Handle the message
js
import messaging from "@react-native-firebase/messaging";
import Healkite from "@healkite/react-native";
messaging().subscribeToTopic(Healkite.getPushTopic());
messaging().setBackgroundMessageHandler((m) => Healkite.handlePush(m.data));
messaging().onMessage((m) => Healkite.handlePush(m.data));handlePush returns false for other messages, so it can sit in front of your own handlers. On iOS enable
Background Modes → Remote notifications.
Send
sh
npx healkite release … --hotfix # mandatory + push: devices restart into the fix
npx healkite release … --push # push only: devices download now, apply on next launch
npx healkite push rel_… --immediate # an existing releaseOr Push now on a release in the dashboard. Pushes also go out with kill switch changes if you choose.