This PR implements the latest configurations in the APN sample app. Sample app users can now modify settings such as cdpApiKey and track lifecycle events directly from the settings screen.
Solution/Changes
New configurations added : cdpApiKey, app lifecycle event tracking
UI has been made similar to what Scott's loom suggested.
Though out of scope but to save time & efforts later I have added configurations such as CDN Host, API Host, Flush At and Flush interval with a save button. There is no action on save button yet, will create another ticket for this acceptance criteria.
The device token isn’t displayed yet because the feature hasn’t been added to the package, and in the sample app, it has been commented out to avoid unnecessary app crashes.
Note:
Since the APN sample app was failing to build and compile, partly due to the need for a React Native version upgrade (to match the version of the FCM sample app), I have fixed all of that in this PR.
Also, this PR only caters iOS sample app, Android package and sample app will be catered separately
Linear ticket : https://linear.app/customerio/issue/MBL-445/update-setting-screen-to-use-latest-configurations
Problem/Context
This PR implements the latest configurations in the APN sample app. Sample app users can now modify settings such as
cdpApiKey
and track lifecycle events directly from the settings screen.Solution/Changes
cdpApiKey
, app lifecycle event trackingNote:
Since the APN sample app was failing to build and compile, partly due to the need for a React Native version upgrade (to match the version of the FCM sample app), I have fixed all of that in this PR.