April 2023 Summaries
2 posts from Firebase
Filter
Month:
Year:
Post Summaries
Back to Blog
Firebase Cloud Messaging registration tokens identify individual app instances and should be generated, retrieved, stored, refreshed, and removed carefully to support reliable targeted notifications and accurate delivery reporting. On Android, apps can handle newly generated or changed tokens through `onNewToken()`, retrieve the current token through the FCM SDK at startup, and store the token with a server-side timestamp, using Firestore or a custom backend, typically keyed to an authenticated user. Tokens can change after reinstalls, restored devices, cleared app data, hardware failures, or FCM security operations, so the app should compare and update stored values when opened and periodically refresh them, such as monthly, with WorkManager. Server-side message sends should delete tokens when valid requests return invalid-token errors such as `UNREGISTERED` or, when the payload is known to be valid, `INVALID_ARGUMENT`. Finally, scheduled backend jobs can prune tokens whose timestamps exceed a chosen staleness period, with roughly 60 days suggested, helping ensure messages target active devices while limiting obsolete token records.
Apr 13, 2023
1,712 words in the original blog post.
Firebase Remote Config personalization uses Google machine learning and Analytics event data to dynamically tailor app parameters for individual users without requiring app releases or ML expertise, helping developers optimize revenue-related outcomes such as ad income, in-app purchases, and campaign return on ad spend. Developers can configure alternative parameter values, such as different ad-display frequencies, then select an objective event and optimize either its count or the summed value of a revenue parameter, while monitoring additional metrics such as engagement time. Setup and validation occur through the Firebase Console and Google Analytics Debug View, and results compare personalized experiences against a smaller baseline group. Effective implementations target broad audiences, use frequently occurring objective events, select meaningfully different alternatives, and verify event and assignment logging before evaluating results.
Apr 11, 2023
1,089 words in the original blog post.